glibc/iconv
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
..
dummy-repertoire.c
gconv_builtin.c
gconv_builtin.h
gconv_cache.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
gconv_charset.h
gconv_close.c Complete the removal of __gconv_translit_find 2014-09-12 09:17:32 +02:00
gconv_conf.c
gconv_db.c
gconv_dl.c
gconv_int.h Complete the removal of __gconv_translit_find 2014-09-12 09:17:32 +02:00
gconv_open.c Complete the removal of __gconv_translit_find 2014-09-12 09:17:32 +02:00
gconv_simple.c 2014-05-01 Steve Ellcey <sellcey@mips.com> 2014-05-01 10:22:35 -07:00
gconv_trans.c Complete the removal of __gconv_translit_find 2014-09-12 09:17:32 +02:00
gconv.c
gconv.h Complete the removal of __gconv_translit_find 2014-09-12 09:17:32 +02:00
iconv_charmap.c Clean up wchar_t conversion code in iconv program. 2014-10-30 12:56:51 -07:00
iconv_close.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
iconv_open.c
iconv_prog.c Update remaining copyright dates 2014-01-01 22:02:55 +10:00
iconv_prog.h
iconv.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
iconv.h
iconvconfig.c Update remaining copyright dates 2014-01-01 22:02:55 +10:00
iconvconfig.h
loop.c Complete the removal of __gconv_translit_find 2014-09-12 09:17:32 +02:00
Makefile Add new macro IN_MODULE to identify module in which source is built 2014-11-19 12:13:54 +05:30
skeleton.c Complete the removal of __gconv_translit_find 2014-09-12 09:17:32 +02:00
strtab.c
tst-iconv1.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-iconv2.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-iconv3.c
tst-iconv4.c
tst-iconv5.c
Versions Complete the removal of __gconv_translit_find 2014-09-12 09:17:32 +02:00