[git commit nptl] build with -fmerge-all-constants
Mike Frysinger
vapier at gentoo.org
Mon Nov 9 21:17:04 UTC 2009
commit: http://git.uclibc.org/uClibc/commit/?id=a568be170da239f1bb1dddad15d920a7f72ff0e6
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/nptl
Glibc is already using this flag and it gives us a slight code shrink in
a few functions.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
Signed-off-by: Austin Foxley <austinf at cetoncorp.com>
---
Rules.mak | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Rules.mak b/Rules.mak
index 7591dfb..779d7b3 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -175,6 +175,8 @@ OPTIMIZATION:=
OPTIMIZATION+=$(call check_gcc,-Os,-O2)
# Use the gcc 3.4 -funit-at-a-time optimization when available
OPTIMIZATION+=$(call check_gcc,-funit-at-a-time,)
+# shrinks code by about 0.1%
+OPTIMIZATION+=$(call check_gcc,-fmerge-all-constants)
GCC_MAJOR_VER?=$(shell $(CC) -dumpversion | cut -d . -f 1)
#GCC_MINOR_VER?=$(shell $(CC) -dumpversion | cut -d . -f 2)
--
1.6.3.3
More information about the uClibc-cvs
mailing list