Procházet zdrojové kódy

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>
Mike Frysinger před 14 roky
rodič
revize
5a4c1b737f
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      Rules.mak

+ 2 - 0
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)