From 9739c3d303bcf12aaa762062c1352717260f5ccb Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Sun, 5 Nov 2017 09:58:05 +0000 Subject: [PATCH] Remove semicolon after ASM_OUTPUT_BEFORE_CASE_LABEL macro body 2017-11-05 Tom de Vries PR other/82784 * config/elfos.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove semicolon after macro body. (ASM_OUTPUT_CASE_LABEL): Add semicolon after ASM_OUTPUT_BEFORE_CASE_LABEL call. * config/arc/arc.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove semicolon after macro body. * config/m68k/m68kelf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Same. * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Same. * config/v850/v850.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Same. From-SVN: r254423 --- gcc/ChangeLog | 13 +++++++++++++ gcc/config/arc/arc.h | 2 +- gcc/config/elfos.h | 6 +++--- gcc/config/m68k/m68kelf.h | 2 +- gcc/config/mips/mips.h | 2 +- gcc/config/v850/v850.h | 2 +- 6 files changed, 20 insertions(+), 7 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6930b6c8ac7..0fba069a711 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,16 @@ +2017-11-05 Tom de Vries + + PR other/82784 + * config/elfos.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove semicolon after + macro body. + (ASM_OUTPUT_CASE_LABEL): Add semicolon after + ASM_OUTPUT_BEFORE_CASE_LABEL call. + * config/arc/arc.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove semicolon + after macro body. + * config/m68k/m68kelf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Same. + * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Same. + * config/v850/v850.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Same. + 2017-11-05 Tom de Vries PR other/82784 diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h index 1d9063ad74a..ec28d619d7c 100644 --- a/gcc/config/arc/arc.h +++ b/gcc/config/arc/arc.h @@ -1405,7 +1405,7 @@ do { \ (exact_log2 (GET_MODE_SIZE (GET_MODE (PATTERN (VEC_INSN))))) #undef ASM_OUTPUT_BEFORE_CASE_LABEL #define ASM_OUTPUT_BEFORE_CASE_LABEL(FILE, PREFIX, NUM, TABLE) \ - ASM_OUTPUT_ALIGN ((FILE), ADDR_VEC_ALIGN (TABLE)); + ASM_OUTPUT_ALIGN ((FILE), ADDR_VEC_ALIGN (TABLE)) #define INSN_LENGTH_ALIGNMENT(INSN) \ ((JUMP_TABLE_DATA_P (INSN) \ diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h index 47a07115e32..0f79de7f882 100644 --- a/gcc/config/elfos.h +++ b/gcc/config/elfos.h @@ -135,15 +135,15 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #ifndef ASM_OUTPUT_BEFORE_CASE_LABEL #define ASM_OUTPUT_BEFORE_CASE_LABEL(FILE, PREFIX, NUM, TABLE) \ - ASM_OUTPUT_ALIGN ((FILE), 2); + ASM_OUTPUT_ALIGN ((FILE), 2) #endif #undef ASM_OUTPUT_CASE_LABEL #define ASM_OUTPUT_CASE_LABEL(FILE, PREFIX, NUM, JUMPTABLE) \ do \ { \ - ASM_OUTPUT_BEFORE_CASE_LABEL (FILE, PREFIX, NUM, JUMPTABLE) \ - (*targetm.asm_out.internal_label) (FILE, PREFIX, NUM); \ + ASM_OUTPUT_BEFORE_CASE_LABEL (FILE, PREFIX, NUM, JUMPTABLE); \ + (*targetm.asm_out.internal_label) (FILE, PREFIX, NUM); \ } \ while (0) diff --git a/gcc/config/m68k/m68kelf.h b/gcc/config/m68k/m68kelf.h index 159223f64c7..408eec89548 100644 --- a/gcc/config/m68k/m68kelf.h +++ b/gcc/config/m68k/m68kelf.h @@ -133,7 +133,7 @@ do { \ table. */ #undef ASM_OUTPUT_BEFORE_CASE_LABEL #define ASM_OUTPUT_BEFORE_CASE_LABEL(FILE,PREFIX,NUM,TABLE) \ - fprintf ((FILE), "%s&%d\n", SWBEG_ASM_OP, XVECLEN (PATTERN (TABLE), 1)); + fprintf ((FILE), "%s&%d\n", SWBEG_ASM_OP, XVECLEN (PATTERN (TABLE), 1)) /* end of stuff from m68kv4.h */ #undef ENDFILE_SPEC diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index f5c28bf70e3..d7f86b64ed2 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -2953,7 +2953,7 @@ do { \ if (JUMP_TABLES_IN_TEXT_SECTION) \ mips_set_text_contents_type (STREAM, "__jump_", NUM, FALSE); \ } \ - while (0); + while (0) /* Reset text marking to code after an inline jump table. Like with the beginning of a jump table use the label number to keep symbols diff --git a/gcc/config/v850/v850.h b/gcc/config/v850/v850.h index 5eb2e8828fa..54dcc097bc4 100644 --- a/gcc/config/v850/v850.h +++ b/gcc/config/v850/v850.h @@ -743,7 +743,7 @@ typedef enum #undef ASM_OUTPUT_BEFORE_CASE_LABEL #define ASM_OUTPUT_BEFORE_CASE_LABEL(FILE,PREFIX,NUM,TABLE) \ - ASM_OUTPUT_ALIGN ((FILE), (TARGET_BIG_SWITCH ? 2 : 1)); + ASM_OUTPUT_ALIGN ((FILE), (TARGET_BIG_SWITCH ? 2 : 1)) #define WORD_REGISTER_OPERATIONS 1 -- 2.30.2