[Bug fortran/95106] Bogus warning from module with long name and an equivalence

anlauf at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu May 21 20:15:24 GMT 2020


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

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gcc dot gnu.org
   Last reconfirmed|                            |2020-05-21
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
           Keywords|                            |wrong-code
           Priority|P3                          |P4

--- Comment #1 from anlauf at gcc dot gnu.org ---
The warning is not only bogus, but indicates that something goes wrong.

Doing an "nm" on the resulting object files, it seems one equivalence is
missing for names of length 60+.

For z1_59.o:

0000000000000020 C
m2345678901234567890123456789012345678901234567890123456789.eq.0_
0000000000000018 C
m2345678901234567890123456789012345678901234567890123456789.eq.1_

For z1_60.o:

0000000000000020 C
m23456789012345678901234567890123456789012345678901234567890.eq._

It seems it cannot disambiguate the two equivalences any more,
and treat them as a single common.


More information about the Gcc-bugs mailing list