------- Comment #4 from howarth at nitro dot med dot uc dot edu  2009-12-08 
14:13 -------
Mike Stump says that the frame can be optimized away on darwin.  However,
Apple's 4.2.1 compiler in darwin10 also appears to leave the stack frame...

 [MacPro:~/bug] howarth% gcc-4.2 -O2 -fomit-frame-pointer -m32 --save-temps -c
builtin-unreachable.c
 [MacPro:~/bug] howarth% more builtin-unreachable.s
        .text
        .align 4,0x90
 .globl _h
 _h:
        subl    $12, %esp
        movl    16(%esp), %eax
         cmpb    $0, (%eax)
        je      L2
        call    ___builtin_unreachable
 L2:
        movl    $1, %eax
        addl    $12, %esp
        ret
        .subsections_via_symbols      



-- 


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

Reply via email to