From b603a3129ef49e7b4951858e6b218b0024dad18e Mon Sep 17 00:00:00 2001 From: "Colton G. Rushton" Date: Sat, 18 Jun 2022 17:28:04 -0300 Subject: [PATCH] two warnings still exist augh --- gcc/thumb.h | 2 +- gcc_arm/toplev.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/thumb.h b/gcc/thumb.h index b3e4012..3fca1c0 100755 --- a/gcc/thumb.h +++ b/gcc/thumb.h @@ -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%ld", (LOCAL_LABEL_PREFIX), (PREFIX+2), (long unsigned int) (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. */ diff --git a/gcc_arm/toplev.c b/gcc_arm/toplev.c index 29833da..c16480e 100755 --- a/gcc_arm/toplev.c +++ b/gcc_arm/toplev.c @@ -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);