glibc/sysdeps
Siddhesh Poyarekar 130ac68ca2 Auto-generate libc-modules.h
Remove libc-modules.h from the tree and auto-generate it from
soversions.i and the list of modules in the built-modules variable
defined in Makeconfig.  Macros generated have increasing numbered
values, with built-modules having lower values starting from 1,
following which a separator value LIBS_BEGIN is added and then finally
the library names from soversions.i are appended to the list.  This
allows us to conveniently differentiate between the versioned
libraries and other built modules, which is needed in errno.h and
netdb.h to decide whether to use an internal symbol or an external
one.

Verified that generated code remains unchanged on x86_64.

	* Makeconfig (built-modules): List non-library modules to be
	built.
	(module-cppflags): Include libc-modules.h for
	everything except shlib-versions.v.i.
	(CPPFLAGS): Use it.
	(before-compile): Add libc-modules.h.
	($(common-objpfx)libc-modules.h,
	$(common-objpfx)libc-modules.stmp): New targets.
	(common-generated): Add libc-modules.h and libc-modules.stmp.
	($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
	* include/libc-symbols.h: Don't include libc-modules.h.
	* include/libc-modules.h: Remove file.
	* scripts/gen-libc-modules.awk: New script to generate
	libc-modules.h.
	* sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
	Depend on libc-modules.stmp.
2014-11-19 12:16:00 +05:30
..
aarch64 [AArch64] End frame record chain correctly. 2014-11-11 15:02:02 +00:00
alpha alpha: Fix soft-fp breakage 2014-11-17 09:20:02 -08:00
arm Remove ARM __GNUC_PREREQ(4,4) conditionals. 2014-11-14 18:39:33 +00:00
generic Run check-localpltk/textrel/execstack over ld.so. 2014-11-06 15:48:44 -05:00
gnu Add new macro IN_MODULE to identify module in which source is built 2014-11-19 12:13:54 +05:30
hppa Don't use INTDEF/INTUSE with _dl_init (bug 14132). 2014-11-04 23:26:39 +00:00
i386 Don't use INTDEF/INTUSE with _dl_init (bug 14132). 2014-11-04 23:26:39 +00:00
ia64 Don't use INTDEF/INTUSE with _dl_init (bug 14132). 2014-11-04 23:26:39 +00:00
ieee754 Fix libm mpone, mptwo namespace (bug 17616). 2014-11-18 15:40:56 +00:00
init_array Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
m68k Don't use INTDEF/INTUSE with _dl_init (bug 14132). 2014-11-04 23:26:39 +00:00
mach Fix __getcwd rewinddir namespace (bug 17584). 2014-11-12 16:24:16 +00:00
microblaze Don't use INTDEF/INTUSE with _dl_init (bug 14132). 2014-11-04 23:26:39 +00:00
mips Don't use INTDEF/INTUSE with _dl_init (bug 14132). 2014-11-04 23:26:39 +00:00
nptl Make internal lock-init macros return void. 2014-10-20 14:13:14 -07:00
posix Remove sigvec. 2014-11-14 11:06:08 -08:00
powerpc Fix build of C mempcpy and stpcpy. 2014-11-14 13:48:39 +00:00
pthread Restore subdir conditional for tst-timer dependency. 2014-07-03 18:52:51 -07:00
s390 Add new macro IN_MODULE to identify module in which source is built 2014-11-19 12:13:54 +05:30
sh Don't use INTDEF/INTUSE with _dl_init (bug 14132). 2014-11-04 23:26:39 +00:00
sparc Fix sparc build. 2014-11-14 10:32:52 -08:00
tile Don't use INTDEF/INTUSE with _dl_init (bug 14132). 2014-11-04 23:26:39 +00:00
unix Auto-generate libc-modules.h 2014-11-19 12:16:00 +05:30
wordsize-32 Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
wordsize-64 Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
x86 Run tst-ld-sse-use.sh with bash. 2014-09-29 23:24:37 +00:00
x86_64 Remove x86_64 __GNUC_PREREQ (4, 6) conditional. 2014-11-14 18:53:07 +00:00