This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/19346] New: Wrong warnings about undefined aliases
- From: "aj at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jan 2005 10:11:50 -0000
- Subject: [Bug c/19346] New: Wrong warnings about undefined aliases
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
With current GCC CVS I get lots of warnings when compiling glibc
about aliases to undefined symbols:
aj@gromit:~/tmp> /opt/gcc/4.0-devel/bin/gcc -O2 -c test.i
test.i:2: warning: ?__libc_errno? aliased to undefined symbol ?errno?
aj@gromit:~/tmp> nm test.o
0000000000000004 C errno
One testcase is:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int errno;
extern int __libc_errno __attribute__ ((alias ("errno")));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
Summary: Wrong warnings about undefined aliases
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: aj at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: x86_64-linux-gnu
GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19346