https://llvm.org/bugs/show_bug.cgi?id=26160

Reid Kleckner <r...@google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |r...@google.com
         Resolution|---                         |WORKSFORME

--- Comment #1 from Reid Kleckner <r...@google.com> ---
Add -fomit-frame-pointer to get this behavior:

$ clang --target=x86_64-darwin -fomit-frame-pointer -O2 t.c  -S -o -
        .section        __TEXT,__text,regular,pure_instructions
        .macosx_version_min 10, 4
        .globl  _bar
        .align  4, 0x90
_bar:                                   ## @bar
        .cfi_startproc
## BB#0:                                ## %entry
        movl    %edi, %eax
        retq
        .cfi_endproc

Darwin defaults to -fno-omit-frame-pointer because Apple has decided that they
want it to.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to