]> git.ipfire.org Git - thirdparty/gcc.git/commit
IBM Z: Define NO_PROFILE_COUNTERS
authorIlya Leoshkevich <iii@linux.ibm.com>
Thu, 17 Jun 2021 12:18:17 +0000 (14:18 +0200)
committerIlya Leoshkevich <iii@linux.ibm.com>
Thu, 24 Jun 2021 09:53:21 +0000 (11:53 +0200)
commita1c1b7a888ade6f21bc7c7f05a2cbff290273fcc
treefa70429eb41636ccfd4dcc6ba42222d36dd32fb7
parent82ab14927651e0eaf0f6d6964396048bb5471f23
IBM Z: Define NO_PROFILE_COUNTERS

s390 glibc does not need counters in the .data section, since it stores
edge hits in its own data structure.  Therefore counters only waste
space and confuse diffing tools (e.g. kpatch), so don't generate them.

gcc/ChangeLog:

* config/s390/s390.c (s390_function_profiler): Ignore labelno
parameter.
* config/s390/s390.h (NO_PROFILE_COUNTERS): Define.

gcc/testsuite/ChangeLog:

* gcc.target/s390/mnop-mcount-m31-mzarch.c: Adapt to the new
prologue size.
* gcc.target/s390/mnop-mcount-m64.c: Likewise.
gcc/config/s390/s390.c
gcc/config/s390/s390.h
gcc/testsuite/gcc.target/s390/mnop-mcount-m31-mzarch.c
gcc/testsuite/gcc.target/s390/mnop-mcount-m64.c