[EMAIL PROTECTED] 880]$ cat x.c
extern int foo ();

int main()
{
    return foo();
}
[EMAIL PROTECTED] 880]$ rm x.s
[EMAIL PROTECTED] 880]$ cat x.c
extern int foo ();

int main()
{
    return foo();
}
[EMAIL PROTECTED] 880]$ make
/export/gnu/import/svn/gcc-test/bld/gcc/xgcc
-B/export/gnu/import/svn/gcc-test/bld/gcc/ -O2 -m32 -S -o x.s x.c
[EMAIL PROTECTED] 880]$ cat x.s
        .file   "x.c"
        .text
        .p2align 4,,15
.globl main
        .type   main, @function
main:
        pushl   %ebp
        movl    %esp, %ebp
        subl    $8, %esp
        leave
        jmp     foo

The stack isn't aligned to 16byte.
        .size   main, .-main


-- 
           Summary: [4.4 Regression] unaligned stack in main due to tail
                    call optimization
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl dot tools at gmail dot com
GCC target triplet: i686-*


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37843

Reply via email to