[LLVMbugs] [Bug 14453] New: Complex data-members passed as variable arg gets broken when compiled with -fpic
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Nov 28 21:18:20 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=14453
Bug #: 14453
Summary: Complex data-members passed as variable arg gets
broken when compiled with -fpic
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: naveen.c at samsung.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 9604
--> http://llvm.org/bugs/attachment.cgi?id=9604
Reduced code which reproduces the problem
When compiling the attached file with -fpic causes this problem.
It happens only for 32-bit compilation, 64-bit executables are fine.
Furthermore if we raise the optimation level to O1 or O2 it removes the
redundant assembly and works just fine.
Steps:
clang -m32 -fpic Complex-fpic.c
./a.out
--
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