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 other/28917] try/catch block removed. too optimistic optimization?



------- Comment #2 from pluto at agmk dot net  2006-08-31 19:13 -------
it doesn't help. `jmp .L2` skips catch block :)

main:
        pushq   %rbx
        movl    $_Z13signalHandleri, %esi
        movl    $11, %edi
        call    signal
        movl    $0, 0
        jmp     .L2
.L8:
        cmpq    $1, %rdx
        je      .L3
        movq    %rax, %rdi
        call    _Unwind_Resume
.L3:
        movq    %rax, %rdi
        call    __cxa_begin_catch
        movl    (%rax), %eax
        call    __cxa_end_catch
        jmp     .L2
.L7:
        movq    %rax, %rbx
.L4:
        call    __cxa_end_catch
        movq    %rbx, %rdi
        call    _Unwind_Resume
.L2:
        movl    $0, %eax
        popq    %rbx
        ret


-- 


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


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