[Bug ipa/100491] [11/12 Regression] IPA-SRA is not happening any more

jamborm at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed May 12 13:31:31 GMT 2021


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

Martin Jambor <jamborm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-05-12
             Status|UNCONFIRMED                 |NEW

--- Comment #6 from Martin Jambor <jamborm at gcc dot gnu.org> ---
It is the char[] part of the declaration that causes this, changing it
to a pointer also avoids the issue.

In GCC 11, functions with parameters which are these length-less
arrays automagically receive an access function type attribute and
IPA-SRA does not understand them and so punts.

Understanding some attributes, eventually including access, is on my
TODO list, meanwhile please use a pointer type.


More information about the Gcc-bugs mailing list