http://llvm.org/bugs/show_bug.cgi?id=15332

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

Reply via email to