[LLVMbugs] [Bug 11640] New: clang optimization changes the linkage type of string constant
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Dec 22 04:24:33 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=11640
Bug #: 11640
Summary: clang optimization changes the linkage type of string
constant
Product: clang
Version: 3.0
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: writalnaie at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
For compiling with -O2 option:
$ cat gig.c
#include <stdio.h>
void go() {
printf("gig!\n");
}
int main() {
go();
return 0;
}
$ ../clang gig.c -o gig.o -c -O2
$ nm gig.o
00000000 T go
00000020 T main
U puts
00000000 r str
The extra "str" is exported which does not occur in orignal source file
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list