+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
}
/* Output an absolute table element. */
-#define ASM_OUTPUT_ADDR_VEC_ELT(STREAM,VALUE) \
- if (! optimize || TARGET_BIGTABLE) \
- asm_fprintf ((STREAM), "\t.long\t%LL%d\n", (VALUE)); \
- else \
- asm_fprintf ((STREAM), "\t.word\t%LL%d\n", (VALUE));
-
+#define ASM_OUTPUT_ADDR_VEC_ELT(STREAM,VALUE) \
+ do { \
+ if (! optimize || TARGET_BIGTABLE) \
+ asm_fprintf ((STREAM), "\t.long\t%LL%d\n", (VALUE)); \
+ else \
+ asm_fprintf ((STREAM), "\t.word\t%LL%d\n", (VALUE)); \
+ } while (0)
\f
/* A C statement to be executed just prior to the output of
assembler code for INSN, to modify the extracted operands so