mirror of
https://github.com/pret/agbcc.git
synced 2026-04-24 14:59:17 -05:00
Merge 8d7320a307 into c2e57ee044
This commit is contained in:
commit
acab6f27e2
|
|
@ -22,9 +22,9 @@
|
|||
srcdir = .
|
||||
VPATH = $(srcdir)
|
||||
|
||||
CC = gcc
|
||||
CC ?= gcc
|
||||
|
||||
BASE_CFLAGS = -g -std=gnu11 -Werror-implicit-function-declaration
|
||||
BASE_CFLAGS = -g -std=gnu11 -Werror-implicit-function-declaration -Wno-format-overflow
|
||||
|
||||
INCLUDES = -I. -I$(srcdir)
|
||||
|
||||
|
|
|
|||
|
|
@ -3133,7 +3133,7 @@ build_unary_op (code, xarg, noconvert)
|
|||
return fold (build1 (code, argtype, arg));
|
||||
}
|
||||
|
||||
error (errstring);
|
||||
error ("%s", errstring);
|
||||
return error_mark_node;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -151,6 +151,7 @@ static struct pred_table
|
|||
{"address_operand", {CONST_INT, CONST_DOUBLE, CONST, SYMBOL_REF,
|
||||
LABEL_REF, SUBREG, REG, MEM, PLUS, MINUS, MULT}},
|
||||
{"register_operand", {SUBREG, REG}},
|
||||
{"s_register_operand", {SUBREG, REG}},
|
||||
{"scratch_operand", {SCRATCH, REG}},
|
||||
{"immediate_operand", {CONST_INT, CONST_DOUBLE, CONST, SYMBOL_REF,
|
||||
LABEL_REF}},
|
||||
|
|
|
|||
|
|
@ -4068,7 +4068,7 @@ mtherr (name, code)
|
|||
name = "square root";
|
||||
sprintf (errstr, "%s during real %s", ermsg[code], name);
|
||||
if (extra_warnings)
|
||||
warning (errstr);
|
||||
warning ("%s", errstr);
|
||||
/* Set global error message word */
|
||||
merror = code + 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1127,7 +1127,7 @@ extern rtx gen_rtx_MEM (enum machine_mode, rtx);
|
|||
|
||||
/* We need the cast here to ensure that we get the same result both with
|
||||
and without prototypes. */
|
||||
#define GEN_INT(N) gen_rtx_CONST_INT (VOIDmode, (HOST_WIDE_INT) (N))
|
||||
#define GEN_INT(N) gen_rtx_CONST_INT (VOIDmode, (HOST_WIDE_INT) (intptr_t) (N))
|
||||
|
||||
#define arg_pointer_rtx (&global_rtl.arg_pointer_val)
|
||||
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ extern int target_flags;
|
|||
fprintf((STREAM), ", %d\t%s %d\n", (ROUNDED), (ASM_COMMENT_START), (SIZE)))
|
||||
|
||||
#define ASM_GENERATE_INTERNAL_LABEL(STRING,PREFIX,NUM) \
|
||||
sprintf ((STRING), "*%s%s%d", (LOCAL_LABEL_PREFIX), (PREFIX), (NUM))
|
||||
sprintf ((STRING), "*%s%s%ld", (LOCAL_LABEL_PREFIX), (PREFIX), (long unsigned int) (NUM))
|
||||
|
||||
/* This is how to output an internal numbered label where
|
||||
PREFIX is the class of label and NUM is the number within the class. */
|
||||
|
|
|
|||
|
|
@ -1051,7 +1051,7 @@ fatal_io_error(char *name)
|
|||
void
|
||||
fatal_insn(char *message, rtx insn)
|
||||
{
|
||||
error(message);
|
||||
error("%s", message);
|
||||
debug_rtx(insn);
|
||||
if (asm_out_file)
|
||||
fflush(asm_out_file);
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ ALLOCA_FINISH = true
|
|||
XCFLAGS =
|
||||
TCFLAGS =
|
||||
# CYGNUS LOCAL nowarnings/law
|
||||
CFLAGS = -g -Werror-implicit-function-declaration
|
||||
CFLAGS = -g -Werror-implicit-function-declaration -Wno-format-overflow
|
||||
BOOT_CFLAGS = -O2 $(CFLAGS)
|
||||
WARN_CFLAGS =
|
||||
# END CYGNUS LOCAL
|
||||
|
|
|
|||
|
|
@ -1587,7 +1587,7 @@ check_format_info (info, params)
|
|||
++format_chars;
|
||||
if (params == 0)
|
||||
{
|
||||
warning (tfaff);
|
||||
warning ("%s", tfaff);
|
||||
return;
|
||||
}
|
||||
if (info->first_arg_num != 0)
|
||||
|
|
@ -1630,7 +1630,7 @@ check_format_info (info, params)
|
|||
++format_chars;
|
||||
if (params == 0)
|
||||
{
|
||||
warning (tfaff);
|
||||
warning ("%s", tfaff);
|
||||
return;
|
||||
}
|
||||
cur_param = TREE_VALUE (params);
|
||||
|
|
@ -1825,7 +1825,7 @@ check_format_info (info, params)
|
|||
continue;
|
||||
if (params == 0)
|
||||
{
|
||||
warning (tfaff);
|
||||
warning ("%s", tfaff);
|
||||
return;
|
||||
}
|
||||
cur_param = TREE_VALUE (params);
|
||||
|
|
|
|||
|
|
@ -3147,7 +3147,7 @@ build_unary_op (code, xarg, noconvert)
|
|||
return fold (build1 (code, argtype, arg));
|
||||
}
|
||||
|
||||
error (errstring);
|
||||
error ("%s", errstring);
|
||||
return error_mark_node;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ do { \
|
|||
/* Make an internal label into a string. */
|
||||
#ifndef ASM_GENERATE_INTERNAL_LABEL
|
||||
#define ASM_GENERATE_INTERNAL_LABEL(STRING, PREFIX, NUM) \
|
||||
sprintf (STRING, "*%s%s%d", LOCAL_LABEL_PREFIX, PREFIX, NUM)
|
||||
sprintf (STRING, "*%s%s%ld", LOCAL_LABEL_PREFIX, PREFIX, (long int) NUM)
|
||||
#endif
|
||||
|
||||
/* Nothing special is done about jump tables */
|
||||
|
|
|
|||
|
|
@ -5577,7 +5577,7 @@ output_func_epilogue (f, frame_size)
|
|||
else if (lr_save_eliminated)
|
||||
fprintf (f, (TARGET_APCS_32 ? "\tmov\t%spc, %slr\n"
|
||||
: "\tmovs\t%spc, %slr\n"),
|
||||
REGISTER_PREFIX, REGISTER_PREFIX, f);
|
||||
REGISTER_PREFIX, REGISTER_PREFIX);
|
||||
else
|
||||
print_multi_reg (f, "ldmfd\t%ssp!", live_regs_mask | 0x8000,
|
||||
TARGET_APCS_32 ? FALSE : TRUE);
|
||||
|
|
|
|||
|
|
@ -453,41 +453,41 @@ print_blocks_internal (stream, block, level)
|
|||
static char *vars_types_name[] = {"vars: ", "types:"};
|
||||
|
||||
fprintf (stream, "%*sBlock ", level*4, "");
|
||||
fprintf (stream, HOST_WIDE_INT_PRINT_HEX, (HOST_WIDE_INT) block);
|
||||
fprintf (stream, HOST_WIDE_INT_PRINT_HEX, (HOST_WIDE_INT) (intptr_t) block);
|
||||
|
||||
if (BLOCK_CHAIN (block))
|
||||
{
|
||||
fprintf (stream, ", chain ");
|
||||
fprintf (stream, HOST_WIDE_INT_PRINT_HEX,
|
||||
(HOST_WIDE_INT) BLOCK_CHAIN (block));
|
||||
(HOST_WIDE_INT) (intptr_t) BLOCK_CHAIN (block));
|
||||
}
|
||||
|
||||
if (BLOCK_VARS (block))
|
||||
{
|
||||
fprintf (stream, ", vars ");
|
||||
fprintf (stream, HOST_WIDE_INT_PRINT_HEX,
|
||||
(HOST_WIDE_INT) BLOCK_VARS (block));
|
||||
(HOST_WIDE_INT) (intptr_t) BLOCK_VARS (block));
|
||||
}
|
||||
|
||||
if (BLOCK_TYPE_TAGS (block))
|
||||
{
|
||||
fprintf (stream, ", types ");
|
||||
fprintf (stream, HOST_WIDE_INT_PRINT_HEX,
|
||||
(HOST_WIDE_INT) BLOCK_TYPE_TAGS (block));
|
||||
(HOST_WIDE_INT) (intptr_t) BLOCK_TYPE_TAGS (block));
|
||||
}
|
||||
|
||||
if (BLOCK_SUBBLOCKS (block))
|
||||
{
|
||||
fprintf (stream, ", subblocks ");
|
||||
fprintf (stream, HOST_WIDE_INT_PRINT_HEX,
|
||||
(HOST_WIDE_INT) BLOCK_SUBBLOCKS (block));
|
||||
(HOST_WIDE_INT) (intptr_t) BLOCK_SUBBLOCKS (block));
|
||||
}
|
||||
|
||||
if (BLOCK_ABSTRACT_ORIGIN (block))
|
||||
{
|
||||
fprintf (stream, ", abstract origin ");
|
||||
fprintf (stream, HOST_WIDE_INT_PRINT_HEX,
|
||||
(HOST_WIDE_INT) BLOCK_ABSTRACT_ORIGIN (block));
|
||||
(HOST_WIDE_INT) (intptr_t) BLOCK_ABSTRACT_ORIGIN (block));
|
||||
}
|
||||
|
||||
if (BLOCK_ABSTRACT (block))
|
||||
|
|
|
|||
|
|
@ -5729,7 +5729,7 @@ mtherr (name, code)
|
|||
name = "square root";
|
||||
sprintf (errstr, "%s during real %s", ermsg[code], name);
|
||||
if (extra_warnings)
|
||||
warning (errstr);
|
||||
warning ("%s", errstr);
|
||||
/* Set global error message word */
|
||||
merror = code + 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1132,7 +1132,7 @@ extern rtx gen_rtx_MEM PROTO((enum machine_mode, rtx));
|
|||
|
||||
/* We need the cast here to ensure that we get the same result both with
|
||||
and without prototypes. */
|
||||
#define GEN_INT(N) gen_rtx_CONST_INT (VOIDmode, (HOST_WIDE_INT) (N))
|
||||
#define GEN_INT(N) gen_rtx_CONST_INT (VOIDmode, (HOST_WIDE_INT) (intptr_t) (N))
|
||||
|
||||
|
||||
/* If HARD_FRAME_POINTER_REGNUM is defined, then a special dummy reg
|
||||
|
|
|
|||
|
|
@ -1393,7 +1393,7 @@ fatal_insn (message, insn)
|
|||
char *message;
|
||||
rtx insn;
|
||||
{
|
||||
error (message);
|
||||
error ("%s", message);
|
||||
debug_rtx (insn);
|
||||
if (asm_out_file)
|
||||
fflush (asm_out_file);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user