[LLVMbugs] [Bug 1047] NEW: String litteral being optimized away to nothing
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Dec 12 15:07:34 PST 2006
http://llvm.org/bugs/show_bug.cgi?id=1047
Summary: String litteral being optimized away to nothing
Product: libraries
Version: 1.9
Platform: Macintosh
URL: http://gendou.com/crap/temp/llvm-bug.zip
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jww132 at hotmail.com
To reproduce the bug:
1. unzip llvm-bug.zip
2. cd into the directory
3. run make
you will see the diff of hello1.ll and hello2.ll
hello1.c and hello2.c are similar hello world examples using our custom libc
the makefile should compile them without using the default system libraries
notice that the string literal "Hello World!\n" is not an argument to printf in hello1.
instead, int 0 is the only argument.
it looks like it has been optimized to nothing.
rather than being a bug in my library, i believe this is an optimizer problem, because you can edit the
Makefile, removing the -O3 optimization argument, and the problem seems to disappear.
this is my first bugzilla report, pardon me if my n00bness is apparent! :P
thanks!
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the llvm-bugs
mailing list