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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs