[Bug target/83100] [8 Regression] powerpc: internal compiler error: in get_variable_section, at varasm.c:1150 with -fdata-sections

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Nov 24 20:41:00 GMT 2017


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

           What    |Removed                     |Added
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |law at gcc dot gnu.org

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
That change looks wrong to me.
Previously the variable was common and thus if you e.g. mixed it with some
other TU that has const int a = 5; then you could link the two together and the
value of the variable would be 5.  But with the changes, that is no longer the
case (if it doesn't ICE), the variable is put into .rodata section.

More information about the Gcc-bugs mailing list