diff mbox series

[arc] Remove semicolon after do while (0) in FUNCTION_PROFILER

Message ID 85d2fd42-d25d-d271-a697-1998edf17d77@mentor.com
State New
Headers show
Series [arc] Remove semicolon after do while (0) in FUNCTION_PROFILER | expand

Commit Message

Tom de Vries Nov. 19, 2017, 12:27 p.m. UTC
Hi,

this patch removes a semicolon after "do while (0)" in 
FUNCTION_PROFILER. This allows the macro to be used in if-then-elses 
without curly braces.

Build arc-unkown-elf as far as that goes atm (fails somewhere in libgcc).

Committed as trivial.

Thanks,
- Tom

Comments

Claudiu Zissulescu Nov. 20, 2017, 9:48 a.m. UTC | #1
Thanks Tom,
Claudiu
diff mbox series

Patch

[arc] Remove semicolon after do while (0) in FUNCTION_PROFILER

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

	* config/arc/arc.h (FUNCTION_PROFILER): Remove semicolon after
	"do while (0)".

---
 gcc/config/arc/arc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h
index ec28d61..1511949 100644
--- a/gcc/config/arc/arc.h
+++ b/gcc/config/arc/arc.h
@@ -822,7 +822,7 @@  extern int arc_initial_elimination_offset(int from, int to);
     fprintf (FILE, "\tbl\t__mcount@plt\n");			\
   else								\
     fprintf (FILE, "\tbl\t__mcount\n");				\
-  } while (0);
+  } while (0)
 
 #define NO_PROFILE_COUNTERS  1