aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/sh
diff options
context:
space:
mode:
authorTom de Vries <tom@codesourcery.com>2017-11-23 15:03:39 +0000
committerTom de Vries <vries@gcc.gnu.org>2017-11-23 15:03:39 +0000
commit356db29280db321ec601dc64740cc2f07b158813 (patch)
tree18a91877f39f8eec494943148399e7a34f53c921 /gcc/config/sh
parent7f339ecbd3d80cad057da964ed9b85430c38cffe (diff)
downloadgcc-356db29280db321ec601dc64740cc2f07b158813.zip
gcc-356db29280db321ec601dc64740cc2f07b158813.tar.gz
gcc-356db29280db321ec601dc64740cc2f07b158813.tar.bz2
[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
Diffstat (limited to 'gcc/config/sh')
-rw-r--r--gcc/config/sh/sh.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h
index f5d80da..82699cd 100644
--- a/gcc/config/sh/sh.h
+++ b/gcc/config/sh/sh.h
@@ -1754,12 +1754,13 @@ extern bool current_function_interrupt;
}
/* 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)
/* A C statement to be executed just prior to the output of
assembler code for INSN, to modify the extracted operands so