]> 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>
Tue, 5 Oct 2021 12:49:42 +0000 (14:49 +0200)
commit4a62dfbb9a35db3031108db87569955728cc5f65
tree34035a50f0f71029258cbf1d3cd9c1ffe67e2ab9
parentf4c91246fda609f74a3841f9f7c4728b5c1e68a9
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.

(cherry picked from commit a1c1b7a888a)
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