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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs