Hi Maintainers, The attach patch contains the following for aarch64 backend to enable gprof support.
1. Changes to "aarch64_return_addr" to get return address from a stack frame. 2. Defines macros associated with generating code for profiling. gcc/ChangeLog --------------------- 2013-05-09 Venkataramanan Kumar <venkataramanan.ku...@linaro.org> * config/aarch64/aarch64.h (MCOUNT_NAME): Define. (NO_PROFILE_COUNTERS): Likewise. (PROFILE_HOOK): Likewise. (FUNCTION_PROFILER): Likewise. * config/aarch64/aarch64.c (aarch64_return_addr): Handle returning address from a frame. (aarch64_function_profiler): Remove. (aarch64_frame_pointer_required): Enable frame pointer when profiling. gcc/testsuite/ChangeLog ----------------------------------- 2013-05-09 Venkataramanan Kumar <venkataramanan.ku...@linaro.org> * lib/target-supports.exp (check_profiling_available): Enable aarch64*-linux-* Testing: ----------- gcc regression tests for aarch64-none-elf passed. gcc regression tests for aarch64-linux-none-gnu is underway. With a small change in glibc, gcc now emits gmon.out when compiled with -pg and run on openembedded/V8 model. regards, Venkat.
gcc.profile.diff
Description: Binary data