http://llvm.org/bugs/show_bug.cgi?id=8152
Summary: LLVM stack alignment doesn't match gcc's requirements
on Linux32
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
... which causes the gcc compiled function to crash because it expects 16-byte
aligned stack (in gcc 4.4 at least with -fpmath=sse).
I'm told that older gcc's don't require (or set) 16, so just setting 16-byte
would break older ones.
This seems to be a good solution:
richi: well, just make sure outgoing stack boundary is always 16-byte and do
not assume anything about incoming stack alignemnt
Idea from aKor:
(12:37:18 PM) aKor: [13:32] aKor: edwin: but maintaining outgoing stack
boundary is certainly possible in "common cases"
(12:37:18 PM) aKor: [13:32] aKor: (without dynamic allocas)
(12:37:34 PM) aKor: this seems to be the best way wrt backward compatibility
stuff
--
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