[Bug c/18656] New: [4.0 regression]: alias attribute stops working with -O2 and above

hjl at lucon dot org gcc-bugzilla@gcc.gnu.org
Wed Nov 24 20:24:00 GMT 2004


On Linux/ia32, Linux/x86_64 and Linux/ia64, I got

[hjl@gnu-10 alias]$ cat foo.c
static void
foo_internal ()
{
}
extern __typeof (foo_internal) foo __attribute__ ((alias ("foo_internal")));
void
bar ()
{
  foo_internal ();
}
[hjl@gnu-10 alias]$ /usr/gcc-4.0/bin/gcc -c foo.c -O2
[hjl@gnu-10 alias]$ nm foo.o
00000000 T bar
         U foo_internal

-- 
           Summary: [4.0 regression]: alias attribute stops working with -O2
                    and above
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl at lucon dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18656



More information about the Gcc-bugs mailing list