Fix all warnings

This commit is contained in:
Colton G. Rushton 2022-06-18 17:18:42 -03:00
parent d4cf8e02d1
commit a6fc728b1b
7 changed files with 9 additions and 5 deletions

3
clean.sh Normal file
View File

@ -0,0 +1,3 @@
make -C gcc clean
make -C libgcc clean
make -C libc clean

View File

@ -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;
}

View File

@ -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}},

View File

@ -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;
}

View File

@ -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)

View File

@ -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. */

View File

@ -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);