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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=92860

--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #5)
> Martin, you've been fixing Optimization option processing lately, your
> thoughts on that?

There was quite nice discussion here:
https://gcc.gnu.org/pipermail/gcc-patches/2020-May/545916.html

I like what Richi suggested:

"""
I think the only sensible way is to save the original decoded options
from the gcc invocation (and have #pragma optimize push/pop append
accordingly) and append the current attribute/pragmas optimization
string to them and run that whole thing on a default option state.

That makes semantics equivalent to appending more options to the
command-line.  Well, hopefully.  Interaction with the target attribute
might be interesting (that likely also needs to append to that
"current decoded options" set).
"""

Anyway, it's a quite complicated topic. I may take a look at this in Fall this
year.

Reply via email to