This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12324] New: undefined symbols with -O2 with aliased pointers
- From: "bernie at develer dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Sep 2003 04:26:48 -0000
- Subject: [Bug c/12324] New: undefined symbols with -O2 with aliased pointers
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12324
Summary: undefined symbols with -O2 with aliased pointers
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bernie at develer dot com
CC: gcc-bugs at gcc dot gnu dot org
Compiling this code snippet with -O2 or -Os
static void undefined(void) { }
void *bar = (void * []) { undefined };
incorrectly optimizes away undefined(), producing this
nm output:
00000000 D bar
U undefined