From: Tom de Vries Date: Wed, 8 Nov 2017 08:51:52 +0000 (+0000) Subject: [mips] Wrap ASM_OUTPUT_LABELREF in do {} while (0) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=66d4b7331f6b178f3eeb5f4315c6c596733d9da4;p=gcc.git [mips] Wrap ASM_OUTPUT_LABELREF in do {} while (0) 2017-11-07 Tom de Vries * config/mips/mips.h (ASM_OUTPUT_LABELREF): Wrap in "do {} while (0)". From-SVN: r254521 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b2aa4498703..ed9a1306370 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-11-07 Tom de Vries + + * config/mips/mips.h (ASM_OUTPUT_LABELREF): Wrap in "do {} while (0)". + 2017-11-07 Tom de Vries * config/mips/mips.h (ASM_OUTPUT_CASE_END): Remove semicolon after diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index c1fcb863134..bea2ce844ce 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -2566,12 +2566,15 @@ typedef struct mips_args { /* This handles the magic '..CURRENT_FUNCTION' symbol, which means 'the start of the function that this code is output in'. */ -#define ASM_OUTPUT_LABELREF(FILE,NAME) \ - if (strcmp (NAME, "..CURRENT_FUNCTION") == 0) \ - asm_fprintf ((FILE), "%U%s", \ - XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0)); \ - else \ - asm_fprintf ((FILE), "%U%s", (NAME)) +#define ASM_OUTPUT_LABELREF(FILE,NAME) \ + do { \ + if (strcmp (NAME, "..CURRENT_FUNCTION") == 0) \ + asm_fprintf ((FILE), "%U%s", \ + XSTR (XEXP (DECL_RTL (current_function_decl), \ + 0), 0)); \ + else \ + asm_fprintf ((FILE), "%U%s", (NAME)); \ + } while (0) /* Flag to mark a function decl symbol that requires a long call. */ #define SYMBOL_FLAG_LONG_CALL (SYMBOL_FLAG_MACH_DEP << 0)