[LLVMbugs] [Bug 14560] New: clang++ emits wrong asm as compared to clang for same source
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Dec 10 04:38:10 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=14560
Bug #: 14560
Summary: clang++ emits wrong asm as compared to clang for same
source
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: naveen.c at samsung.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 9667
--> http://llvm.org/bugs/attachment.cgi?id=9667
The reduced TC
Please find the reduced TC attached.
clang emits proper code and runs fine.
clang++ however
a) check1644va - Emits spurious code for bitcast and memcpy and causes runtime
failure when passing variable arg
b) check2210va, check2605va - Almost similar case where the bitcast and memcpy
is missing as compared to clang, hence again run time failure when passing
variable arg.
The diff between the clang++ and clang llvm assembly output shows the
spurious/missing code.
Command used :
clang++ 16-25-27.c
PS: Observed on 32-bit machine, so you can use -m32 additionally.
--
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