[ARC] Add support for profiling in glibc

Programming / Compilers / GCC - claziss [138bc75d-0d04-0410-961f-82ee72b054a4] - 13 November 2018 12:51 EST

Use PROFILE_HOOK to add mcount library calls in each toolchain.

gcc/ xxxx-xx-xx Claudiu Zissulescu

- config/arc/arc.h (FUNCTION_PROFILER): Redefine to empty.
- config/arc/elf.h (PROFILE_HOOK): Define.
- config/arc/linux.h (PROFILE_HOOK): Likewise.

dc27c1f28ae [ARC] Add support for profiling in glibc.
gcc/ChangeLog | 6 ++++++
gcc/config/arc/arc.h | 12 +++---------
gcc/config/arc/elf.h | 9 +++++++++
gcc/config/arc/linux.h | 10 ++++++++++
4 files changed, 28 insertions(+), 9 deletions(-)

Upstream: gcc.gnu.org


  • Share