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

            Bug ID: 33845
           Summary: clang calls __gnu_mcount_nc with the wrong calling
                    convention
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: efrie...@codeaurora.org
                CC: compn...@compnerd.org, llvm-bugs@lists.llvm.org,
                    renato.go...@linaro.org

__gnu_mcount_nc works differently from _mcount.  The caller is supposed to pass
its return address on the stack ("push {lr}"), and the stack pointer is
callee-pop.  This means that passing "-pg -meabi gnu" to clang will generate
code which corrupts the stack pointer.

Apparently nobody tested r265899.

-- 
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