[LLVMbugs] [Bug 8152] New: LLVM stack alignment doesn't match gcc's requirements on Linux32

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 15 02:41:28 PDT 2010


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: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu


... 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.



More information about the llvm-bugs mailing list