summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-10-22 01:17:46 -0400
committerMike Frysinger <vapier@gentoo.org>2009-10-22 01:17:46 -0400
commit5a4c1b737f10317b168170094a07f3df2e181816 (patch)
tree8c8436b4c09364b788411e980e12f0128ca57f7a /Rules.mak
parente30f2a09f1e8e5b368dc8f9210b491a3a4579329 (diff)
build with -fmerge-all-constants
Glibc is already using this flag and it gives us a slight code shrink in a few functions. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak2
1 files changed, 2 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index e63f6a4b6..7b59350fd 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)