glibc/malloc
Siddhesh Poyarekar 9cd4747089 Add new macro IN_MODULE to identify module in which source is built
The current scheme to identify which module a translation unit is
built in depends on defining multiple macros IS_IN_* and also defining
NOT_IN_libc if we're building a non-libc module.  In addition, there
is an IN_LIB macro that does effectively the same thing, but for
different modules (notably the systemtap probes).  This macro scheme
unifies both ideas to use just one macro IN_MODULE and assign it a
value depending on the module it is being built into.  If the module
is not defined, it defaults to MODULE_libc.

Patches that follow will replace uses of IS_IN_* variables with the
IS_IN() macro.  libc-symbols.h has been converted already to give an
example of how such a transition will look.

Verified that there are no relevant binary changes.  One source change
that will crop up repeatedly is that of nscd_stat, since it uses the
build timestamp as a constant in its logic.

	* Makeconfig (in-module): Get value of libof set for the
	translation unit.
	(CPPFLAGS): Use $(in-module).
	* Makerules: Don't suffix routine names for nonlib.
	* include/libc-modules.h: New file.
	* include/libc-symbols.h: Include libc-modules.h
	(IS_IN): New macro to replace IS_IN_* macros.
	* elf/Makefile: Set libof-* for each routine.
	* elf/rtld-Rules: Likewise.
	* extra-modules.mk: Likewise.
	* iconv/Makefile: Likewise.
	* iconvdata/Makefile: Likewise.
	* locale/Makefile: Likewise.
	* malloc/Makefile: Likewise.
	* nss/Makefile: Likewise.
	* sysdeps/gnu/Makefile: Likewise.
	* sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
	* sysdeps/unix/sysv/linux/Makefile: Likewise.
	* sysdeps/s390/s390-64/Makefile: Likewise.
	* nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
	CPPFLAGS for nscd instead of nonlib.
2014-11-19 12:13:54 +05:30
..
arena.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
Depend Update. 1999-10-04 22:59:43 +00:00
hooks.c Reformat malloc to gnu style. 2014-01-02 09:40:10 +01:00
Makefile Add new macro IN_MODULE to identify module in which source is built 2014-11-19 12:13:54 +05:30
malloc.c Fix malloc_info namespace (bug 17570). 2014-11-12 22:31:38 +00:00
malloc.h Reformat malloc to gnu style. 2014-01-02 09:40:10 +01:00
mallocbug.c Reformat malloc to gnu style. 2014-01-02 09:40:10 +01:00
mcheck-init.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
mcheck.c Reformat malloc to gnu style. 2014-01-02 09:40:10 +01:00
mcheck.h Reformat malloc to gnu style. 2014-01-02 09:40:10 +01:00
memusage.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
memusage.sh Update remaining copyright dates 2014-01-01 22:02:55 +10:00
memusagestat.c Fix gettext call formatting 2014-01-05 17:39:45 +10:00
morecore.c Reformat malloc to gnu style. 2014-01-02 09:40:10 +01:00
mtrace.c malloc/mtrace.c: Cosmetic cleanup. 2014-02-11 10:02:57 +00:00
mtrace.pl Update remaining copyright dates 2014-01-01 22:02:55 +10:00
obstack.c malloc/obstack: Merge from gnulib 2014-07-02 10:31:43 +01:00
obstack.h malloc/obstack: Merge from gnulib 2014-07-02 10:31:43 +01:00
set-freeres.c Reformat malloc to gnu style. 2014-01-02 09:40:10 +01:00
thread-freeres.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-calloc.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-malloc-usable.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-malloc.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-mallocfork.c * malloc/tst-mallocfork.c (do_test): Make sure sa_flags is 2005-12-06 00:50:15 +00:00
tst-mallocstate.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-mallopt.c malloc: Add mallopt test. 2014-05-12 12:48:41 +01:00
tst-mcheck.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-memalign.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-mtrace.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-mtrace.sh Don't require test wrappers to preserve environment variables, use more consistent environment. 2014-06-06 22:19:27 +00:00
tst-obstack.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-posix_memalign.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-pvalloc.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-realloc.c Reformat malloc to gnu style. 2014-01-02 09:40:10 +01:00
tst-trim1.c * malloc/tst-trim1.c: New file. 2007-12-16 22:57:57 +00:00
tst-valloc.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
Versions Implement aligned_alloc 2012-01-01 07:17:21 -05:00