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 <t...@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