From cf8e59638eb099c2ee70e61b00be0cc5da257274 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 22 Oct 2009 01:17:46 -0400 Subject: 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 Signed-off-by: Austin Foxley --- Rules.mak | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Rules.mak b/Rules.mak index 7591dfbbb..779d7b374 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) -- cgit v1.2.3