This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/25957] -fstack-protector code on i386/x86_64 can be improved.


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

--- Comment #11 from Andi Kleen <andi-gcc at firstfloor dot org> 2011-10-08 23:27:02 UTC ---
I just checked and the problem is still there with

 4.7.0 20111002

       xorq    %fs:40, %rax
        jne     .L4
        addq    $120, %rsp
        .cfi_remember_state
        .cfi_def_cfa_offset 8
        ret
.L4:
        .cfi_restore_state
        .p2align 4,,6
        call    __stack_chk_fail
        .cfi_endproc
.LFE0:


unnecessary wasteful alignment for the call to
abort. The basic block should be marked cold.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]