[LLVMbugs] [Bug 6190] New: [mips] insufficient stack space reserved

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Jan 31 17:54:57 PST 2010


           Summary: [mips] insufficient stack space reserved
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: ASSIGNED
          Keywords: ABI
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: bruno.cardoso at gmail.com
        ReportedBy: zhou_shuchang at sina.com
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=4154)
 --> (http://llvm.org/bugs/attachment.cgi?id=4154)
will report "Illegal instruction"

The file below will report "Illegal instruction", the ll file is attached.

void f(){
        printf("Hi in f\n");
int main()

Examine the assembly, we see 

        .frame  $fp,8,$ra
                    ~~ O32 ABI requires at least 16 bytes reserved for outgoing
        .mask   0xC0000000,-4
        .fmask  0x00000000,0
        .set    noreorder
        .cpload $25
        .set    nomacro
        addiu   $sp, $sp, -8
        sw      $ra, 4($sp)
        sw      $fp, 0($sp)
        addu    $fp, $sp, $zero
        .cprestore      16
         ~~~~~~~~~~~~~~~~~~ this accesses 16($sp), which is out of range.

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