Commit 66d4b733 by Tom de Vries Committed by Tom de Vries

[mips] Wrap ASM_OUTPUT_LABELREF in do {} while (0)

2017-11-07  Tom de Vries  <tom@codesourcery.com>

	* config/mips/mips.h (ASM_OUTPUT_LABELREF): Wrap in "do {} while (0)".

From-SVN: r254521
parent 65f371e4
2017-11-07 Tom de Vries <tom@codesourcery.com> 2017-11-07 Tom de Vries <tom@codesourcery.com>
* config/mips/mips.h (ASM_OUTPUT_LABELREF): Wrap in "do {} while (0)".
2017-11-07 Tom de Vries <tom@codesourcery.com>
* config/mips/mips.h (ASM_OUTPUT_CASE_END): Remove semicolon after * config/mips/mips.h (ASM_OUTPUT_CASE_END): Remove semicolon after
"do {} while (0)". "do {} while (0)".
...@@ -2567,11 +2567,14 @@ typedef struct mips_args { ...@@ -2567,11 +2567,14 @@ typedef struct mips_args {
'the start of the function that this code is output in'. */ 'the start of the function that this code is output in'. */
#define ASM_OUTPUT_LABELREF(FILE,NAME) \ #define ASM_OUTPUT_LABELREF(FILE,NAME) \
do { \
if (strcmp (NAME, "..CURRENT_FUNCTION") == 0) \ if (strcmp (NAME, "..CURRENT_FUNCTION") == 0) \
asm_fprintf ((FILE), "%U%s", \ asm_fprintf ((FILE), "%U%s", \
XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0)); \ XSTR (XEXP (DECL_RTL (current_function_decl), \
0), 0)); \
else \ else \
asm_fprintf ((FILE), "%U%s", (NAME)) asm_fprintf ((FILE), "%U%s", (NAME)); \
} while (0)
/* Flag to mark a function decl symbol that requires a long call. */ /* Flag to mark a function decl symbol that requires a long call. */
#define SYMBOL_FLAG_LONG_CALL (SYMBOL_FLAG_MACH_DEP << 0) #define SYMBOL_FLAG_LONG_CALL (SYMBOL_FLAG_MACH_DEP << 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment