This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/18656] New: [4.0 regression]: alias attribute stops working with -O2 and above
- From: "hjl at lucon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Nov 2004 20:24:03 -0000
- Subject: [Bug c/18656] New: [4.0 regression]: alias attribute stops working with -O2 and above
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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