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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot 
gnu.org
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2021-05-20

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #1)
> IIRC we changed behavior so that optimize appends to the global options,
> thus optimize("no-tree-pre") gives you -O2 -fno-tree-pre instead of
> -O0 -fno-tree-pre.

Not yet, the patch was sent but then I decided to postpone it for GCC 12.

> 
> But -O2 -O1 should still get you -O1 and thus the same as -O1 stand-alone.
> So sth is broken it seems?
> 
> push_options simply haves the old state for restore, it does not stash
> away previous applied options.

I'll investigate what has changed in GCC 11.

Reply via email to