[LLVMbugs] [Bug 15332] New: PPC32 SVR4 ABI has no Red Zone

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Feb 22 05:05:35 PST 2013


            Bug ID: 15332
           Summary: PPC32 SVR4 ABI has no Red Zone
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: florob at babelmonkeys.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10054
  --> http://llvm.org/bugs/attachment.cgi?id=10054&action=edit
Patch to avoid generating stackless code on PPC32

As has been noted in a fixme for a while the PPC32 SVR4 ABI has no Red Zone.
LLVM currently still generates stackless code for it though.

The attached patch attempts to fix this, by only generating stackless code
* The system is PPC64 (all supported PPC64 ABIs appear to have a red zone)
* The SVR4 ABI isn't used
* There are no stack allocated variables (FrameSize == 0)

This appears to work fine in my tests (freestanding code on a e300 based
Freescale, previously broken since system calls share the stack).

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130222/928ae03a/attachment.html>

More information about the llvm-bugs mailing list