From: Julian Seward Date: Wed, 23 Nov 2005 03:54:48 +0000 (+0000) Subject: Compile vex at -O2. This improves its performance by about 15% X-Git-Tag: svn/VALGRIND_3_1_1^2~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79c788971de2e2c4beb2839eef89398a2c2f27e3;p=thirdparty%2Fvalgrind.git Compile vex at -O2. This improves its performance by about 15% on a PIII running SuSE 10 (gcc 4.0.2). git-svn-id: svn://svn.valgrind.org/vex/trunk@1468 --- diff --git a/VEX/Makefile b/VEX/Makefile index 8a3a79e753..b7dd71e1ff 100644 --- a/VEX/Makefile +++ b/VEX/Makefile @@ -70,10 +70,12 @@ ifndef $(AR) AR = ar endif -CCFLAGS = -g -O -Wall -Wmissing-prototypes -Wshadow -Winline \ +# Put -g -O2 after any flags we inherit from V. -O2 vs -O +# makes a significant difference, at least with gcc4. +CCFLAGS = -Wall -Wmissing-prototypes -Wshadow -Winline \ -Wpointer-arith -Wbad-function-cast -Wcast-qual \ -Wcast-align -Wmissing-declarations \ - $(EXTRA_CFLAGS) + $(EXTRA_CFLAGS) -g -O2 #CC = icc #CCFLAGS = -g -Wall -wd981 -wd279 -wd1287 -wd869 -wd111 -wd188 -wd186