On Tue, Nov 05, 2024 at 10:47:28AM -0600, Peter Bergner wrote:
> The test safe-indirect-jump-3.c FAILs on powerpc64le-linux with the change
> in jump table generation behavior with commit r15-4756-g06bc3a734e8890,
> since it is compiled without optimization and expects jump tables to be
> generated.  Add an explicit -fjump-tables to dg-options to get the old
> behavior back.
> 
> Tested on powerpc64le-linux and verified it's fixed.
> 
> I pushed this as obvious, since it gives us back the old behavior the
> test case was expecting and the test case is now immune from any future
> changes in jump table generation behavior.  

Please don't do such things.

Would it not have been better to not use -O0 at all here?  -O0 is
not realistic if you expect any reasonable optimisation!


Segher

Reply via email to