diff mbox series

[mcore,committed] Remove semicolon after do {} while (0) in MCORE_EXPORT_NAME

Message ID 5d0fa8c3-d5e3-c8ae-060f-f5d53ec83b78@mentor.com
State New
Headers show
Series [mcore,committed] Remove semicolon after do {} while (0) in MCORE_EXPORT_NAME | expand

Commit Message

Tom de Vries Nov. 19, 2017, 10:55 a.m. UTC
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
diff mbox series

Patch

[mcore] Remove semicolon after do {} while (0) in MCORE_EXPORT_NAME

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

	* 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);				\