I do not know if
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23477
  should be fixed in this release, but I am sure
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23631
  which was marked as duplicate is not fixed:

[EMAIL PROTECTED]:~/projet/gujin$ cat > tmp.c
int
sub (int i)
{
  int array[1000000] = { 0 };

  sub2 (&array[i]);
}

[EMAIL PROTECTED]:~/projet/gujin$ ~/projet/toolchain/bin/gcc -S -Os tmp.c -o
tmp.s
[EMAIL PROTECTED]:~/projet/gujin$ cat tmp.s
        .file   "tmp.c"
        .section        .rodata
        .align 32
        .type   C.0.1134, @object
        .size   C.0.1134, 4000000
C.0.1134:
        .zero   4000000
        .text
.globl sub
        .type   sub, @function
sub:
        pushl   %ebp
        movl    %esp, %ebp
        pushl   %ebx
        subl    $4000000, %esp
        pushl   $4000000
        pushl   $C.0.1134
        leal    -4000004(%ebp), %ebx
        pushl   %ebx
        call    memcpy
        movl    8(%ebp), %eax
        leal    (%ebx,%eax,4), %eax
        pushl   %eax
        call    sub2
        addl    $16, %esp
        movl    -4(%ebp), %ebx
        leave
        ret
        .size   sub, .-sub
        .ident  "GCC: (GNU) 4.0.2 20050908 (prerelease)"
        .section        .note.GNU-stack,"",@progbits
[EMAIL PROTECTED]:~/projet/gujin$



        

        
                
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

Reply via email to