This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[arc] Remove semicolon after do while (0) in FUNCTION_PROFILER
- From: Tom de Vries <Tom_deVries at mentor dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Claudiu Zissulescu <Claudiu dot Zissulescu at synopsys dot com>
- Date: Sun, 19 Nov 2017 13:27:35 +0100
- Subject: [arc] Remove semicolon after do while (0) in FUNCTION_PROFILER
- Authentication-results: sourceware.org; auth=none
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
[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