On 6/24/21 12:42 AM, Ilya Leoshkevich wrote: > Bootstrapped and regtested on s390x-redhat-linux. Ok for master? > > v1: https://gcc.gnu.org/pipermail/gcc-patches/2021-June/573348.html > v1 -> v2: Use ATTRIBUTE_UNUSED, compact op[] array (Andreas). > I've also noticed that one of the nops that we generate for > -mnop-mcount is not needed now and removed it. A couple > tests needed to be adjusted after that. > > > > > 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.
Ok. Thanks! Andreas