diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-08-15 14:46:19 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-08-15 14:51:55 +0200 |
commit | 4ebf934e34c947ed50d0a3ff68c40bc72e50ecc9 (patch) | |
tree | f150a13f161032ddc897d50997ea2c22a712a4d8 /sysdeps/i386 | |
parent | e9f57484aa18dff76dcad7a3943f08bb7affb840 (diff) | |
download | glibc-4ebf934e34c947ed50d0a3ff68c40bc72e50ecc9.tar.gz glibc-4ebf934e34c947ed50d0a3ff68c40bc72e50ecc9.tar.xz glibc-4ebf934e34c947ed50d0a3ff68c40bc72e50ecc9.zip |
i386: Replace internal_function attribute for __mcount_internal
__mcount_internal is called from assembler code. Use an explicit regparm attribute to pass both arguments in registers, to match what used to happen with internal_function before commit fbdc1e3e8de7f49e439b6e274d3e7e07da78416e (i386: Do not set internal_function).
Diffstat (limited to 'sysdeps/i386')
-rw-r--r-- | sysdeps/i386/machine-gmon.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sysdeps/i386/machine-gmon.h b/sysdeps/i386/machine-gmon.h index d5d8cdf7c6..3e90b8c0c7 100644 --- a/sysdeps/i386/machine-gmon.h +++ b/sysdeps/i386/machine-gmon.h @@ -29,10 +29,12 @@ /* We must not pollute the global namespace. */ #define mcount_internal __mcount_internal -extern void mcount_internal (u_long frompc, u_long selfpc) internal_function; +extern void mcount_internal (u_long frompc, u_long selfpc) + __attribute__ ((regparm (2))); -#define _MCOUNT_DECL(frompc, selfpc) \ -void internal_function mcount_internal (u_long frompc, u_long selfpc) +#define _MCOUNT_DECL(frompc, selfpc) \ + __attribute__ ((regparm (2))) \ +void mcount_internal (u_long frompc, u_long selfpc) /* Define MCOUNT as empty since we have the implementation in another |