http://llvm.org/bugs/show_bug.cgi?id=4732
Summary: spurious undefined reference
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Seen on Ubuntu Hardy on x86.
reg...@john-home:~/volatile/tmp181$ clang -O3 small.c -o foo
/tmp/cc-LeSGPe.o: In function `int321':
small.c:(.text+0x8a): undefined reference to `.LBB5_1'
small.c:(.text+0x90): undefined reference to `.LBB5_1'
collect2: ld returned 1 exit status
clang: error: linker command failed with exit code 1 (use -v to see invocation)
reg...@john-home:~/volatile/tmp181$ clang -v
clang version 1.0 (http://llvm.org/svn/llvm-project/cfe/trunk 79189)
Target: i386-pc-linux-gnu
Thread model: posix
reg...@john-home:~/volatile/tmp181$ cat small.c
char foo1 (int _si1, char _si2)
{
return 0 > 1 || _si1 <= 0 && _si1 < _si2 || 0 ? : 1;
}
char foo2 (int _si1, char _si2)
{
return 0;
}
char foo3 (int _si1, char _si2)
{
return 0 && 1 || _si2 > 0 && (-2147483647 - 1 / _si2) ? : _si2;
}
char func_16 (int z, int a)
{
return 0;
}
void int321 (char p_103, int uint8p_104)
{
char l_106;
func_16 (foo1
(p_103 || foo3 (l_106, p_103), 1), 1);
for (; p_103 <= 1; foo2(0,0))
{
}
}
int main (void)
{
}
--
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