https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103465

--- Comment #27 from Tomas Kalibera <tomas.kalibera at gmail dot com> ---

> > should do the job.  Tomas, can you give it a try?
> 
> Thanks, so far I tried it only on predict-22.c and it works (with a fixed
> comma as below), enables the optimization. I will do more testing tomorrow.

I've tested with

gcc12 (6aa0859afaf28f4fb13121352225bc5877e02a44)
gcc11 (a03aae8d9f5dbfe3ca3dbfe7eadc6bbe6fbbe1bc)
gcc10 (48e0da239f65b7cfa0e6f51f266c2e04f5ad9bbd)

I confirm that with the patch applied:

* the original bug report about invalid note about
'-freorder-blocks-and-partition' is fixed

* the optimization is applied by default at -O3, -O2 and can be enabled at -O1
via -f

* the optimization can be disabled via -fno- and via pragma

* -Q --help=optimizers issue for the option goes away, so "fixed" (though as I
understand from Martin other optimizations still disabled by target will
incorrectly appear as enabled)

So with this patch applied, I am happy for this bug report to be closed. Thanks
to both of you.

Reply via email to