mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 11:20:07 +00:00
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
fbdc1e3e8d
(i386: Do not set
internal_function).
This commit is contained in:
parent
e9f57484aa
commit
4ebf934e34
@ -1,3 +1,9 @@
|
||||
2017-08-15 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
* sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
|
||||
regparm (2) instead of internal_function.
|
||||
(_MCOUNT_DECL): Adjust.
|
||||
|
||||
2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
|
||||
|
||||
* sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
|
||||
|
@ -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)
|
||||
__attribute__ ((regparm (2))) \
|
||||
void mcount_internal (u_long frompc, u_long selfpc)
|
||||
|
||||
|
||||
/* Define MCOUNT as empty since we have the implementation in another
|
||||
|
Loading…
Reference in New Issue
Block a user