mirror of git://sourceware.org/git/glibc.git
* Makeconfig (+cflags): Add -fmerge-all-constants by default.
This commit is contained in:
parent
eed38d45aa
commit
dec36b4f0c
|
@ -1,5 +1,7 @@
|
||||||
2005-11-25 Ulrich Drepper <drepper@redhat.com>
|
2005-11-25 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* Makeconfig (+cflags): Add -fmerge-all-constants by default.
|
||||||
|
|
||||||
[BZ #1912]
|
[BZ #1912]
|
||||||
* nss/function.def: Add entry to use gethostbyname2 for files.
|
* nss/function.def: Add entry to use gethostbyname2 for files.
|
||||||
|
|
||||||
|
|
|
@ -557,6 +557,10 @@ else
|
||||||
+gccwarn := -Wall -Wwrite-strings -Winline -Wstrict-prototypes
|
+gccwarn := -Wall -Wwrite-strings -Winline -Wstrict-prototypes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# We do not depend on the address of constants in different files to be
|
||||||
|
# actually different, so allow the compiler to merge them all.
|
||||||
|
+merge-constants = -fmerge-all-constants
|
||||||
|
|
||||||
# This is the program that generates makefile dependencies from C source files.
|
# This is the program that generates makefile dependencies from C source files.
|
||||||
# The -MP flag tells GCC >= 3.2 (which we now require) to produce dummy
|
# The -MP flag tells GCC >= 3.2 (which we now require) to produce dummy
|
||||||
# targets for headers so that removed headers don't break the build.
|
# targets for headers so that removed headers don't break the build.
|
||||||
|
@ -611,7 +615,7 @@ ifeq "$(strip $(+cflags))" ""
|
||||||
+cflags := $(default_cflags)
|
+cflags := $(default_cflags)
|
||||||
endif # $(+cflags) == ""
|
endif # $(+cflags) == ""
|
||||||
|
|
||||||
+cflags := $(+cflags) $(addprefix -mcpu=,$(with-cpu)) $(+gccwarn)
|
+cflags += $(addprefix -mcpu=,$(with-cpu)) $(+gccwarn) $(+merge-constants)
|
||||||
+gcc-nowarn := -w
|
+gcc-nowarn := -w
|
||||||
|
|
||||||
# Don't duplicate options if we inherited variables from the parent.
|
# Don't duplicate options if we inherited variables from the parent.
|
||||||
|
|
Loading…
Reference in New Issue