]> granicus.if.org Git - clang/commit
[PowerPC] Make -pg generate calls to _mcount not mcount
authorHal Finkel <hfinkel@anl.gov>
Sun, 30 Mar 2014 13:00:06 +0000 (13:00 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sun, 30 Mar 2014 13:00:06 +0000 (13:00 +0000)
commitb23fde6184034f196e94984ef94dcbfc87a8b826
tree51b7a7cb22bafec2de59beb93e4a8d9bf545414e
parent476dc338d930acc8b52af88b3cf5272762b88033
[PowerPC] Make -pg generate calls to _mcount not mcount

At least on REL6 (Linux/glibc 2.12), the proper symbol for generating gprof
data is _mcount, not mcount. Prior to this change, compiling with -pg would
generate linking errors (because of unresolved references to mcount), after
this change -pg seems at least minimally functional.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205144 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/CodeGen/mcount.c