On Tue, Nov 05, 2024 at 04:26:13PM -0600, Peter Bergner wrote: > On 11/5/24 1:16 PM, Segher Boessenkool wrote: > > Would it not have been better to not use -O0 at all here? -O0 is > > not realistic if you expect any reasonable optimisation! > > That's what I first attempted, using -O2, but the test case still FAILed > because we optimized the code too much and failed the asm scan. It worked > with -O1, but that just points to the test case being a little fragile > wrt optimization, so I deemed it safer to go with the -fjump-tables option, > which mimics the old behavior exactly.
Hrm. Still bloody fragile then, obviously. Let's hope it doesn't actually break any time soon then! Thanks, Segher