Skip to content

Commit 249a12b

Browse files
committed
Merge remote-tracking branch 'origin/noregparm' into remove-asm
2 parents a6cc0be + 70aab1f commit 249a12b

File tree

10 files changed

+12
-21
lines changed

10 files changed

+12
-21
lines changed

sysdeps/i386/dl-fixup-attribute.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
/* We cannot use this scheme for profiling because the _mcount call destroys
2323
the passed register information. */
2424
#ifndef PROF
25-
# define DL_ARCH_FIXUP_ATTRIBUTE __attribute__ ((regparm (3), stdcall, unused))
25+
# define DL_ARCH_FIXUP_ATTRIBUTE __attribute__ ((stdcall, unused))
2626
#else
2727
# define DL_ARCH_FIXUP_ATTRIBUTE
2828
#endif

sysdeps/i386/dl-tls.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ typedef struct dl_tls_index
2727

2828
#ifdef SHARED
2929
/* This is the prototype for the GNU version. */
30-
extern void *___tls_get_addr (tls_index *ti)
31-
__attribute__ ((__regparm__ (1)));
32-
extern void *___tls_get_addr_internal (tls_index *ti)
33-
__attribute__ ((__regparm__ (1))) attribute_hidden;
30+
extern void *___tls_get_addr (tls_index *ti);
31+
extern void *___tls_get_addr_internal (tls_index *ti);
3432
rtld_hidden_proto (___tls_get_addr)
3533
rtld_hidden_def (___tls_get_addr)
3634

@@ -50,7 +48,7 @@ __tls_get_addr (tls_index *ti)
5048

5149
/* Prepare using the definition of __tls_get_addr in the generic
5250
version of this file. */
53-
# define __tls_get_addr __attribute__ ((__regparm__ (1))) ___tls_get_addr
51+
# define __tls_get_addr ___tls_get_addr
5452
strong_alias (___tls_get_addr, ___tls_get_addr_internal)
5553
#else
5654

sysdeps/i386/dl-tlsdesc-dynamic.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
C code, hand-optimized a little bit.
6161
6262
ptrdiff_t
63-
__attribute__ ((__regparm__ (1)))
6463
_dl_tlsdesc_dynamic (struct tlsdesc *tdp)
6564
{
6665
struct tlsdesc_dynamic_arg *td = tdp->arg;

sysdeps/i386/dl-tlsdesc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
/* Type used to represent a TLS descriptor in the GOT. */
2424
struct tlsdesc
2525
{
26-
ptrdiff_t __attribute__ ((regparm (1))) (*entry) (struct tlsdesc *);
26+
ptrdiff_t (*entry) (struct tlsdesc *);
2727
void *arg;
2828
};
2929

@@ -41,15 +41,15 @@ struct tlsdesc_dynamic_arg
4141
size_t gen_count;
4242
};
4343

44-
extern ptrdiff_t attribute_hidden __attribute__ ((regparm (1)))
44+
extern ptrdiff_t
4545
_dl_tlsdesc_return (struct tlsdesc *),
4646
_dl_tlsdesc_undefweak (struct tlsdesc *);
4747

4848
# ifdef SHARED
4949
extern void *_dl_make_tlsdesc_dynamic (struct link_map *map,
5050
size_t ti_offset) attribute_hidden;
5151

52-
extern ptrdiff_t attribute_hidden __attribute__ ((regparm (1)))
52+
extern ptrdiff_t
5353
_dl_tlsdesc_dynamic (struct tlsdesc *);
5454
# endif
5555

sysdeps/i386/machine-gmon.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@
2828
/* We must not pollute the global namespace. */
2929
#define mcount_internal __mcount_internal
3030

31-
extern void mcount_internal (u_long frompc, u_long selfpc)
32-
__attribute__ ((regparm (2))) attribute_hidden;
31+
extern void mcount_internal (u_long frompc, u_long selfpc);
3332

3433
#define _MCOUNT_DECL(frompc, selfpc) \
35-
__attribute__ ((regparm (2))) \
3634
void mcount_internal (u_long frompc, u_long selfpc)
3735

3836

sysdeps/i386/tst-audit3.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
License along with the GNU C Library; if not, see
1717
<https://www.gnu.org/licenses/>. */
1818

19-
extern long long audit1_test (int, int, int) __attribute__ ((regparm(3)));
20-
extern float audit2_test (int, int, int) __attribute__ ((regparm(3)));
19+
extern long long audit1_test (int, int, int);
20+
extern float audit2_test (int, int, int);

sysdeps/i386/tst-auditmod3a.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include "tst-audit3.h"
2121

2222
long long
23-
__attribute__ ((regparm(3)))
2423
audit1_test (int i, int j, int k)
2524
{
2625
if (i != 1 || j != 2 || k != 3)
@@ -29,7 +28,6 @@ audit1_test (int i, int j, int k)
2928
}
3029

3130
float
32-
__attribute__ ((regparm(3)))
3331
audit2_test (int i, int j, int k)
3432
{
3533
if (i != 1 || j != 2 || k != 3)

sysdeps/unix/sysv/linux/i386/sysdep.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
an error number into errno. ERROR is the negative error number
2323
returned from the x86 kernel. */
2424
int
25-
__attribute__ ((__regparm__ (1)))
2625
__syscall_error (int error)
2726
{
2827
__set_errno (-error);

sysdeps/unix/sysv/linux/i386/sysdep.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,7 @@
235235

236236
#else /* !__ASSEMBLER__ */
237237

238-
extern int __syscall_error (int)
239-
attribute_hidden __attribute__ ((__regparm__ (1)));
238+
extern int __syscall_error (int);
240239

241240
/* Six-argument syscalls use an out-of-line helper, because an inline
242241
asm using all registers apart from %esp cannot work reliably and

sysdeps/x86/nptl/bits/pthreadtypes-arch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
#ifndef __x86_64__
5151
/* Extra attributes for the cleanup functions. */
52-
# define __cleanup_fct_attribute __attribute__ ((__regparm__ (1)))
52+
# define __cleanup_fct_attribute
5353
#endif
5454

5555
#endif /* bits/pthreadtypes.h */

0 commit comments

Comments
 (0)