S/390: Implement -mrecord-mcount
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 16 Jul 2018 14:36:21 +0000 (14:36 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Mon, 16 Jul 2018 14:36:21 +0000 (14:36 +0000)
commit605090dc791ab2495f021908edc4dc03851e06a6
tree724d9d00c9dace40c1244e0aceab8613d42bb52b
parent6902799c8d1470fd8a55754cc1caf0bb442472e9
S/390: Implement -mrecord-mcount

This is the counterpart of the i386 feature introduced by
39a5a6a4: Add direct support for Linux kernel __fentry__ patching.

2018-07-16  Ilya Leoshkevich  <iii@linux.ibm.com>

* config/s390/s390.c (s390_function_profiler): Generate
__mcount_loc section.
* config/s390/s390.opt: Add the new option.

2018-07-16  Ilya Leoshkevich  <iii@linux.ibm.com>

* testsuite/gcc.target/s390/mrecord-mcount.c: New testcase.

From-SVN: r262733
gcc/ChangeLog
gcc/config/s390/s390.c
gcc/config/s390/s390.opt
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/mrecord-mcount.c [new file with mode: 0644]