[LLVMbugs] [Bug 4732] New: spurious undefined reference
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Aug 17 09:32:53 PDT 2009
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: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu
Seen on Ubuntu Hardy on x86.
regehr at 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)
regehr at 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
regehr at 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.
More information about the llvm-bugs
mailing list