Hi,
this patch removes a semicolon after "do {} while (0)" in
UPDATE_FS_FOR_CFA_GR. This allows the macro to be used in if-then-elses
without curly braces.
I don't manage to build alpha-dec-vms far enough to trigger this patch.
Can somebody with a proper setup build and test this patch, or approve
as trivial?
Thanks,
- Tom
[libgcc, alpha, vms] Remove semicolon after do {} while (0) in UPDATE_FS_FOR_CFA_GR
2017-11-19 Tom de Vries <t...@codesourcery.com>
* config/alpha/vms-unwind.h (UPDATE_FS_FOR_CFA_GR): Remove semicolon after
"do {} while (0)".
---
libgcc/config/alpha/vms-unwind.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libgcc/config/alpha/vms-unwind.h b/libgcc/config/alpha/vms-unwind.h
index e44b402..78f5cad 100644
--- a/libgcc/config/alpha/vms-unwind.h
+++ b/libgcc/config/alpha/vms-unwind.h
@@ -52,7 +52,7 @@ extern int SYS$GL_CALL_HANDL;
do { \
(FS)->regs.reg[GRN].how = REG_SAVED_OFFSET; \
(FS)->regs.reg[GRN].loc.offset = (_Unwind_Sword) ((REG) (LOC) - (REG) (CFA)); \
-} while (0);
+} while (0)
#define GIVEUP_ON_FAILURE(STATUS) \
{ if ((((STATUS) & 1) != 1)) return _URC_END_OF_STACK; }