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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|lto                         |middle-end
            Summary|With `-flto',               |-Wclobbered should be a
                   |`-Wno-clobbered' does not   |common option rather than a
                   |suppress the "might be      |C family specific option
                   |clobbered" warning          |

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So the warning does not happen any more with -flto but does -W does not enable
it either.

c-family/c.opt has:
Wclobbered
C ObjC C++ ObjC++ Var(warn_clobbered) Warning EnabledBy(Wextra)
Warn about variables that might be changed by \"longjmp\" or \"vfork\".

Maybe this should move to common.opt like the other middle-end warnings.

Reply via email to