Hi,
this patch removes a semicolon after "do {} while (0)" in MCORE_EXPORT_NAME.
This allows the macro to be used in if-then-elses without curly braces.
Did mcore-unknown-elf build.
Committed as obvious.
Thanks,
- Tom
[mcore] Remove semicolon after do {} while (0) in MCORE_EXPORT_NAME
2017-11-14 Tom de Vries <[email protected]>
* config/mcore/mcore-elf.h (MCORE_EXPORT_NAME): Remove semicolon after
"do {} while (0)".
* config/mcore/mcore.h (ASM_OUTPUT_ALIGNED_COMMON): After missing
semicolon after MCORE_EXPORT_NAME call.
---
gcc/config/mcore/mcore-elf.h | 2 +-
gcc/config/mcore/mcore.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/config/mcore/mcore-elf.h b/gcc/config/mcore/mcore-elf.h
index 9688a48..c0880c2 100644
--- a/gcc/config/mcore/mcore-elf.h
+++ b/gcc/config/mcore/mcore-elf.h
@@ -35,7 +35,7 @@ along with GCC; see the file COPYING3. If not see
(* targetm.strip_name_encoding) (NAME)); \
in_section = NULL; \
} \
- while (0);
+ while (0)
/* Write the extra assembler code needed to declare a function properly.
Some svr4 assemblers need to also have something extra said about the
diff --git a/gcc/config/mcore/mcore.h b/gcc/config/mcore/mcore.h
index 50d087c..06a9fa6 100644
--- a/gcc/config/mcore/mcore.h
+++ b/gcc/config/mcore/mcore.h
@@ -684,7 +684,7 @@ extern long mcore_current_compilation_timestamp;
do \
{ \
if (mcore_dllexport_name_p (NAME)) \
- MCORE_EXPORT_NAME (FILE, NAME) \
+ MCORE_EXPORT_NAME (FILE, NAME); \
if (! mcore_dllimport_name_p (NAME)) \
{ \
fputs ("\t.comm\t", FILE); \