mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 22:40:05 +00:00
5a664d7ae8
The elision interfaces are closely aligned between the targets that implement them, so declare them in the generic <lowlevellock.h> file. Empty .c stubs are provided, so that fewer makefile updates under sysdeps are needed. Also simplify initialization via __libc_early_init. The symbols __lll_clocklock_elision, __lll_lock_elision, __lll_trylock_elision, __lll_unlock_elision, __pthread_force_elision move into libc. For the time being, non-hidden references are used from libpthread to access them, but once that part of libpthread is moved into libc, hidden symbols will be used again. (Hidden references seem desirable to reduce the likelihood of transactions aborts.)
25 lines
561 B
Makefile
25 lines
561 B
Makefile
abi-variants := 32 64
|
|
abi-32-condition := __WORDSIZE == 32
|
|
abi-64-condition := __WORDSIZE == 64
|
|
|
|
ifeq ($(subdir),rt)
|
|
librt-routines += rt-sysdep
|
|
librt-shared-only-routines += rt-sysdep
|
|
endif
|
|
|
|
ifeq ($(subdir),stdlib)
|
|
gen-as-const-headers += ucontext_i.sym
|
|
endif
|
|
|
|
ifeq ($(subdir),nptl)
|
|
elision-CFLAGS = -mhtm -msoft-float
|
|
CFLAGS-elision-lock.c = $(elision-CFLAGS)
|
|
CFLAGS-elision-timed.c = $(elision-CFLAGS)
|
|
CFLAGS-elision-trylock.c = $(elision-CFLAGS)
|
|
CFLAGS-elision-unlock.c = $(elision-CFLAGS)
|
|
endif
|
|
|
|
ifeq ($(subdir),misc)
|
|
tests += tst-ptrace-singleblock
|
|
endif
|