Patch for bugzilla ticket 117366

2025-06-11 Thread Matt Parks
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117366 where it was suggested I send this bug fix as a patch to gcc-patches. I have never submitted to this alias so I apologize if I am not "doing it right", but here is the diff, and the Bugzilla ticket has an example written up with good/bad as

[PATCH] config/arm/arm.cc thumbv1 fixes - Patch for bugzilla tickets 117366 and 117468

2025-06-12 Thread Matt Parks
d_or_fixed_reg_p (reg_base + n_free) && !fixed_reg[reg_base + n_free]))) { live_regs_mask >>= 1; n_free++; > On 06/11/2025 7:13 PM EDT Matt Parks wrote: > > > See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117366 where it was > suggested I s

[PATCH v2][PR117366] arm.cc: fix thumb1 size-optimized function prolog violates -ffixed-rX

2025-06-25 Thread Matt Parks
Trying again, hopefully formatted correctly this time, and now including a test case. Test case fails with original code, passes with patch. Command to execute test case: make check-c RUNTESTFLAGS="--target-board='arm-sim/-march=armv5t' arm.exp=pr117366.c" gcc/ChangeLog: * arm.cc: fix

[PATCH][PR117468] arm.cc: fix thumb1 prologue high reg restore violates -ffixed-rX

2025-06-25 Thread Matt Parks
Fixing issue with thumb1 code generation clobbering register. Detailed in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117468 Test case included; run with: make check-c RUNTESTFLAGS="--target-board='arm-sim/-march=armv5t' arm.exp=pr117468.c" gcc/ChangeLog: * arm.cc: fix thumb1 prologue