mirror of
https://github.com/pret/agbcc.git
synced 2026-04-24 06:47:44 -05:00
Fix all warnings
This commit is contained in:
parent
d4cf8e02d1
commit
a6fc728b1b
3
clean.sh
Normal file
3
clean.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
make -C gcc clean
|
||||
make -C libgcc clean
|
||||
make -C libc clean
|
||||
|
|
@ -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+2), (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. */
|
||||
|
|
|
|||
|
|
@ -1046,7 +1046,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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user