glibc/sysdeps/unix/sysv/linux/x86_64
H.J. Lu f5d1f629c6 Define GEN_AS_CONST_HEADERS when generating header files [BZ #22792]
Glibc build generates header files to define constants from special .sym
files.  If a .sym file includes the same header file which it generates,
it leads to circular dependency which may lead to build hang on a
many-core machine.  Define GEN_AS_CONST_HEADERS when generating header
files to avoid circular dependency.

<tcb-offsets.h> is needed for i686 and it isn't needed for x86-64 at
least since glibc 2.23.

Tested on i686 and x86-64.

	[BZ #22792]
	* Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
	to $(CC).
	* sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
	<tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
	* sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
	<tcb-offsets.h>.
2018-02-23 11:29:39 -08:00
..
64 Add narrowing add functions. 2018-02-10 02:08:43 +00:00
x32 Add narrowing add functions. 2018-02-10 02:08:43 +00:00
Implies
Makefile
Versions
____longjmp_chk.S
__start_context.S
arch-fork.h
brk.c
cancellation.S
clone.S
compat-timer.h
configure
configure.ac
dl-cache.h
dl-procinfo.c
dl-procinfo.h
get_clockfreq.c
getcontext.S
init-first.c
ipc_priv.h
kernel-features.h
kernel_stat.h
ldconfig.h
ldd-rewrite.sed
libc-cancellation.S
libc-lowlevellock.S
libmvec.abilist
librt-cancellation.S
lll_timedlock_wait.c
lll_timedwait_tid.c
lowlevellock.S
lowlevellock.h Define GEN_AS_CONST_HEADERS when generating header files [BZ #22792] 2018-02-23 11:29:39 -08:00
makecontext.c
profil-counter.h
pthread_setaffinity.c
readelflib.c
register-dump.h
sched_setaffinity.c
setcontext.S
sigaction.c
sigaltstack-offsets.sym
sigcontextinfo.h
sigprocmask.c
swapcontext.S
syscall.S
syscalls.list
sysdep.S
sysdep.h
timer_create.c
timer_delete.c
timer_getoverr.c
timer_gettime.c
timer_settime.c
ucontext_i.sym
umount.c
vfork.S