[LLVMbugs] [Bug 21497] New: miscompilation after SVN r220256
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Nov 5 21:09:06 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=21497
Bug ID: 21497
Summary: miscompilation after SVN r220256
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
Assignee: unassignedbugs at nondot.org
Reporter: compnerd at compnerd.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Slightly reduced test case:
// RUN: %clang -fPIC -target i686-windows-itanium -c %s
extern int a();
extern int b();
extern int c();
extern int d();
int test(long long ll, void *pv) {
int result = 1;
switch (ll) {
case 1:
result = a();
break;
case 2:
result = c();
break;
case 3:
result = d();
break;
case 4:
if (pv == 0) {
(void)d();
result = b();
} else {
}
break;
}
return (result);
}
Setting SetDirectiveSuppressesReloc to true corrects the issue.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141106/01fe80e5/attachment.html>
More information about the llvm-bugs
mailing list