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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
           Keywords|                            |lto, wrong-code
   Last reconfirmed|                            |2022-01-01

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.

For what I think should happen is there should be a CONST_DECL which contains
the string and is able to be pulled in and that is the address which gets put
into _ZL12typeDerived2, etc. 

Note even with -fno-merge-constants on elf targets, strings are still put into
the .rodata.str1.1 section so the linker is going to merge them anyways.

Reply via email to