http://llvm.org/bugs/show_bug.cgi?id=18105
Bug ID: 18105
Summary: A label with inline assembly inside a loop might be
duplicated
Product: libraries
Version: 3.3
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Loop Optimizer
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
try to compile the following code with -O2 (or -O3):
#include "stdio.h"
int main() {
for (int i=0; i<3; i++)
asm("x:addl %eax, 0");
return 0;
}
the optimizer duplicates the inline assembly - duplicates the label and so
results in:
error: invalid symbol redefinition
I assume this bug will reproduce in some other optimizations such as function
inlining.
--
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