diff mbox series

[libgcc,alpha,vms] Remove semicolon after do {} while (0) in UPDATE_FS_FOR_CFA_GR

Message ID f3696190-73f3-1e23-20ff-153f2cd38bf3@mentor.com
State New
Headers show
Series [libgcc,alpha,vms] Remove semicolon after do {} while (0) in UPDATE_FS_FOR_CFA_GR | expand

Commit Message

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

Patch

[libgcc, alpha, vms] Remove semicolon after do {} while (0) in UPDATE_FS_FOR_CFA_GR

2017-11-19  Tom de Vries  <tom@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; }