diff mbox series

[libgcc,rs6000] Remove semicolon after do {} while (0) in REGISTER_CFA_OFFSET_FOR

Message ID 861e8744-a134-f4ab-7692-8d7a8b67924f@mentor.com
State New
Headers show
Series [libgcc,rs6000] Remove semicolon after do {} while (0) in REGISTER_CFA_OFFSET_FOR | expand

Commit Message

Tom de Vries Nov. 7, 2017, 8:50 a.m. UTC
Hi,

this patch removes a semicolon after "do {} while (0)" in 
REGISTER_CFA_OFFSET_FOR (no ChangeLog yet).

Can you build & test this patch (or approve as trivial)?

Thanks,
- Tom

Comments

Segher Boessenkool Nov. 7, 2017, 9:01 a.m. UTC | #1
Hi!

On Tue, Nov 07, 2017 at 09:50:45AM +0100, Tom de Vries wrote:
> this patch removes a semicolon after "do {} while (0)" in 
> REGISTER_CFA_OFFSET_FOR (no ChangeLog yet).
> 
> Can you build & test this patch (or approve as trivial)?

It's trivial and obvious; go ahead and commit it.  Thanks,


Segher
diff mbox series

Patch

[libgcc, rs6000] Remove semicolon after do {} while (0) in REGISTER_CFA_OFFSET_FOR

---
 libgcc/config/rs6000/aix-unwind.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgcc/config/rs6000/aix-unwind.h b/libgcc/config/rs6000/aix-unwind.h
index 1561658..9b4ca82 100644
--- a/libgcc/config/rs6000/aix-unwind.h
+++ b/libgcc/config/rs6000/aix-unwind.h
@@ -209,7 +209,7 @@  ucontext_for (struct _Unwind_Context *context)
 do { \
 (FS)->regs.reg[REGNO].how = REG_SAVED_OFFSET; \
 (FS)->regs.reg[REGNO].loc.offset = (long) (ADDR) - (CFA); \
-} while (0);
+} while (0)
 
 static _Unwind_Reason_Code
 ppc_aix_fallback_frame_state (struct _Unwind_Context *context,