[Bug ipa/84628] attribute(warning/error) functions should not be merged together

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 1 06:25:00 GMT 2018


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2018-03-01
                 CC|                            |jakub at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Of course it has to be evaluated after optimization, that is the whole point of
these attributes.  In this case just IPA ICF should not try to fold error1 with
error2 if it can't use aliases and the functions involved have warning or error
attributes.


More information about the Gcc-bugs mailing list