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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|middle-end                  |ipa

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Note we do both promote public vars static and static vars readonly using IPA
(and LTO) analysis.  The issue here is likely that the strcmp call isn't
correctly taken into account in IPA reference which also requires the
variable isn't address-taken (it does not do such analysis itself, the
variable-indexed array address is also a separate stmt, so more complicated
analysis would be required).

Reply via email to