Hi,
this patch removes a semicolon after "do {} while (0)" in
REGISTER_TARGET_PRAGMAS. This allows the macro to be used in
if-then-elses without curly braces.
Build for spu-unknown-elf.
Committed as obvious.
Thanks,
- Tom
[ft32, spu] Remove semicolon after do {} while (0) in REGISTER_TARGET_PRAGMAS
2017-11-14 Tom de Vries <t...@codesourcery.com>
* config/ft32/ft32.h (REGISTER_TARGET_PRAGMAS): Remove semicolon after
"do {} while (0)".
* config/spu/spu.h (REGISTER_TARGET_PRAGMAS): Same.
---
gcc/config/ft32/ft32.h | 2 +-
gcc/config/spu/spu.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/config/ft32/ft32.h b/gcc/config/ft32/ft32.h
index 8bb0d39..b276f25 100644
--- a/gcc/config/ft32/ft32.h
+++ b/gcc/config/ft32/ft32.h
@@ -471,7 +471,7 @@ do { \
#define REGISTER_TARGET_PRAGMAS() do { \
c_register_addr_space ("__flash__", TARGET_NOPM ? 0 : ADDR_SPACE_PM); \
-} while (0);
+} while (0)
extern int ft32_is_mem_pm(rtx o);
diff --git a/gcc/config/spu/spu.h b/gcc/config/spu/spu.h
index cf99b88..efb0464 100644
--- a/gcc/config/spu/spu.h
+++ b/gcc/config/spu/spu.h
@@ -213,7 +213,7 @@ enum reg_class {
#define REGISTER_TARGET_PRAGMAS() do { \
c_register_addr_space ("__ea", ADDR_SPACE_EA); \
targetm.resolve_overloaded_builtin = spu_resolve_overloaded_builtin; \
-}while (0);
+}while (0)
/* Frame Layout */