Commit 356db292 by Tom de Vries Committed by Tom de Vries

[sh] Wrap ASM_OUTPUT_ADDR_VEC_ELT in do {} while (0)

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

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

From-SVN: r255100
parent 7f339ecb
2017-11-23 Tom de Vries <tom@codesourcery.com> 2017-11-23 Tom de Vries <tom@codesourcery.com>
* config/sh/sh.h (ASM_OUTPUT_ADDR_VEC_ELT): Wrap in "do {} while (0)".
2017-11-23 Tom de Vries <tom@codesourcery.com>
* config/ft32/ft32.h (ASM_OUTPUT_ADDR_VEC_ELT): Remove semicolon after * config/ft32/ft32.h (ASM_OUTPUT_ADDR_VEC_ELT): Remove semicolon after
macro. macro.
...@@ -1754,12 +1754,13 @@ extern bool current_function_interrupt; ...@@ -1754,12 +1754,13 @@ extern bool current_function_interrupt;
} }
/* Output an absolute table element. */ /* Output an absolute table element. */
#define ASM_OUTPUT_ADDR_VEC_ELT(STREAM,VALUE) \ #define ASM_OUTPUT_ADDR_VEC_ELT(STREAM,VALUE) \
if (! optimize || TARGET_BIGTABLE) \ do { \
asm_fprintf ((STREAM), "\t.long\t%LL%d\n", (VALUE)); \ if (! optimize || TARGET_BIGTABLE) \
else \ asm_fprintf ((STREAM), "\t.long\t%LL%d\n", (VALUE)); \
asm_fprintf ((STREAM), "\t.word\t%LL%d\n", (VALUE)); else \
asm_fprintf ((STREAM), "\t.word\t%LL%d\n", (VALUE)); \
} while (0)
/* A C statement to be executed just prior to the output of /* A C statement to be executed just prior to the output of
assembler code for INSN, to modify the extracted operands so assembler code for INSN, to modify the extracted operands so
......
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