[Bug c/12324] New: undefined symbols with -O2 with aliased pointers

bernie at develer dot com gcc-bugzilla@gcc.gnu.org
Thu Sep 18 05:09:00 GMT 2003


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



More information about the Gcc-bugs mailing list