Commit 2041a23a by Tom de Vries Committed by Tom de Vries

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

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

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

From-SVN: r254666
parent 180b5580
2017-11-12 Tom de Vries <tom@codesourcery.com> 2017-11-12 Tom de Vries <tom@codesourcery.com>
* config/riscv/riscv.h (ASM_OUTPUT_LABELREF): Wrap in do {} while (0).
2017-11-12 Tom de Vries <tom@codesourcery.com>
* config/elfos.h (ASM_OUTPUT_ASCII): Remove semicolon after macro body. * config/elfos.h (ASM_OUTPUT_ASCII): Remove semicolon after macro body.
2017-11-12 Tom de Vries <tom@codesourcery.com> 2017-11-12 Tom de Vries <tom@codesourcery.com>
...@@ -585,12 +585,15 @@ typedef struct { ...@@ -585,12 +585,15 @@ typedef struct {
/* This handles the magic '..CURRENT_FUNCTION' symbol, which means /* This handles the magic '..CURRENT_FUNCTION' symbol, which means
'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) \
if (strcmp (NAME, "..CURRENT_FUNCTION") == 0) \ do { \
asm_fprintf ((FILE), "%U%s", \ if (strcmp (NAME, "..CURRENT_FUNCTION") == 0) \
XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0)); \ asm_fprintf ((FILE), "%U%s", \
else \ XSTR (XEXP (DECL_RTL (current_function_decl), \
asm_fprintf ((FILE), "%U%s", (NAME)) 0), 0)); \
else \
asm_fprintf ((FILE), "%U%s", (NAME)); \
} while (0)
#define JUMP_TABLES_IN_TEXT_SECTION 0 #define JUMP_TABLES_IN_TEXT_SECTION 0
#define CASE_VECTOR_MODE SImode #define CASE_VECTOR_MODE SImode
......
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