[LLVMbugs] [Bug 636] NEW: PowerPC stack frames must be a minimum of 64 bytes

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Oct 11 17:22:46 PDT 2005


           Summary: PowerPC stack frames must be a minimum of 64 bytes
           Product: libraries
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: major
          Priority: P2
         Component: Backend: PowerPC
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jlaskey at apple.com

The PowerPC ABI requires that a stack frame must be at least 64 bytes and a multiple of 16.

       align(sizeof(Linkage) + 8 * sizeof(long), 16);

The minimum of 8 long is to allow the spilling of args by the callee (in particular var arg case), or any 
intermediary thunk.

Compiling the following example will show il-sized frames.

#include <cstdio>

void printing(int x, int y) {
  printf("%d %d\n", x, y);

int main(int argc, char *argv[]) {
  printing(10, 20);
  return 0;

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list