From aa271fcd82b0c406f1e8a94d2a30c7c00dfd99ef Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 29 Sep 2008 14:02:59 +0000 Subject: [PATCH] 2008-09-29 15:59 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * ChangeLog * mpkg_tgz.sh * harbour.spec * config/darwin/gcc.cf * config/hpux/gcc.cf * config/dos/rsx32.cf * config/dos/djgpp.cf * config/linux/gcc.cf * config/os2/gcc.cf * config/sunos/gcc.cf * config/bsd/gcc.cf * config/w32/mingwce.cf * config/w32/gcc.cf * config/w32/rsxnt.cf * config/w32/mingw.cf + -O3 GCC optimization level made the default for all GCC builds. Those who wish to use lower optimization settings, pls use C_USR=-O2 or such. --- harbour/ChangeLog | 20 ++++++++++++++++++++ harbour/config/bsd/gcc.cf | 2 +- harbour/config/darwin/gcc.cf | 2 +- harbour/config/dos/djgpp.cf | 2 +- harbour/config/dos/rsx32.cf | 2 +- harbour/config/hpux/gcc.cf | 2 +- harbour/config/linux/gcc.cf | 2 +- harbour/config/os2/gcc.cf | 2 +- harbour/config/sunos/gcc.cf | 2 +- harbour/config/w32/gcc.cf | 2 +- harbour/config/w32/mingw.cf | 2 +- harbour/config/w32/mingwce.cf | 2 +- harbour/config/w32/rsxnt.cf | 2 +- harbour/harbour.spec | 2 +- harbour/mpkg_tgz.sh | 2 +- 15 files changed, 34 insertions(+), 14 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index b6b95b60db..449d0f6977 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,26 @@ 2008-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org) */ +2008-09-29 15:59 UTC+0200 Viktor Szakats (harbour.01 syenar hu) + * ChangeLog + * mpkg_tgz.sh + * harbour.spec + * config/darwin/gcc.cf + * config/hpux/gcc.cf + * config/dos/rsx32.cf + * config/dos/djgpp.cf + * config/linux/gcc.cf + * config/os2/gcc.cf + * config/sunos/gcc.cf + * config/bsd/gcc.cf + * config/w32/mingwce.cf + * config/w32/gcc.cf + * config/w32/rsxnt.cf + * config/w32/mingw.cf + + -O3 GCC optimization level made the default for all GCC + builds. Those who wish to use lower optimization settings, + pls use C_USR=-O2 or such. + 2008-09-29 13:59 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rdd/workarea.c * added protection against multiple registering RDD with the same diff --git a/harbour/config/bsd/gcc.cf b/harbour/config/bsd/gcc.cf index baf7365818..7cd97e39f5 100644 --- a/harbour/config/bsd/gcc.cf +++ b/harbour/config/bsd/gcc.cf @@ -13,7 +13,7 @@ CC = gcc CC_IN = -c CC_OUT = -o CPPFLAGS = -I. -I$(HB_INC_COMPILE) -CFLAGS = -W -Wall +CFLAGS = -Wall -W -O3 LD = gcc LD_OUT = -o diff --git a/harbour/config/darwin/gcc.cf b/harbour/config/darwin/gcc.cf index 1f3f577171..3088776553 100644 --- a/harbour/config/darwin/gcc.cf +++ b/harbour/config/darwin/gcc.cf @@ -21,7 +21,7 @@ CC_OUT = -o$(subst x,x, ) CPPFLAGS = -no-cpp-precomp -I. -I$(HB_INC_COMPILE) # -fno-common enables building .dylib files -CFLAGS = -fno-common -Wall -W +CFLAGS = -fno-common -Wall -W -O3 # It's to avoid warning message generated when 'long double' is used # remove it if you have newer compiler version diff --git a/harbour/config/dos/djgpp.cf b/harbour/config/dos/djgpp.cf index a3749c6ab8..9a55982f9c 100644 --- a/harbour/config/dos/djgpp.cf +++ b/harbour/config/dos/djgpp.cf @@ -13,7 +13,7 @@ CC = gcc CC_IN = -c CC_OUT = -o CPPFLAGS = -I. -I$(HB_INC_COMPILE) -CFLAGS = -Wall -W +CFLAGS = -Wall -W -O3 LD = gcc LD_OUT = -o diff --git a/harbour/config/dos/rsx32.cf b/harbour/config/dos/rsx32.cf index 4f7e1222e1..a21dad3c16 100644 --- a/harbour/config/dos/rsx32.cf +++ b/harbour/config/dos/rsx32.cf @@ -14,7 +14,7 @@ CC = gcc CC_IN = -c CC_OUT = -o CPPFLAGS = -I. -I$(HB_INC_COMPILE) -Zrsx32 -CFLAGS = -Wall +CFLAGS = -Wall -W -O3 LD = gcc LDFLAGS = -Zrsx32 diff --git a/harbour/config/hpux/gcc.cf b/harbour/config/hpux/gcc.cf index 15e00d241f..17bb224c26 100644 --- a/harbour/config/hpux/gcc.cf +++ b/harbour/config/hpux/gcc.cf @@ -14,7 +14,7 @@ CC_IN = -c CC_OUT = -o CPPFLAGS = -I. -I$(HB_INC_COMPILE) -CFLAGS = -Wall -W +CFLAGS = -Wall -W -O3 LDFLAGS = # uncomment this if you want to force relocatable code for .so libs diff --git a/harbour/config/linux/gcc.cf b/harbour/config/linux/gcc.cf index 6609c4dee0..ba9fd1f07d 100644 --- a/harbour/config/linux/gcc.cf +++ b/harbour/config/linux/gcc.cf @@ -20,7 +20,7 @@ CC_IN = -c CC_OUT = -o CPPFLAGS = -I. -I$(HB_INC_COMPILE) -CFLAGS = -Wall -W +CFLAGS = -Wall -W -O3 # uncomment this if you want to force relocateable code for .so libs # it's necessary on some platforms but can reduce performance diff --git a/harbour/config/os2/gcc.cf b/harbour/config/os2/gcc.cf index 5bcf36929b..f716c2c35d 100644 --- a/harbour/config/os2/gcc.cf +++ b/harbour/config/os2/gcc.cf @@ -13,7 +13,7 @@ CC = gcc CC_IN = -c CC_OUT = -o CPPFLAGS = -I. -I$(HB_INC_COMPILE) -CFLAGS = -W -Wall -O2 +CFLAGS = -Wall -W -O3 # 26/03/2004 - # added -DTCPV40HDRS to compile with GCC 3.2.2 on OS/2 v4.0 with mixed diff --git a/harbour/config/sunos/gcc.cf b/harbour/config/sunos/gcc.cf index e4c43576a7..cd361927a1 100644 --- a/harbour/config/sunos/gcc.cf +++ b/harbour/config/sunos/gcc.cf @@ -14,7 +14,7 @@ CC_IN = -c CC_OUT = -o CPPFLAGS = -I. -I$(HB_INC_COMPILE) -CFLAGS = -Wall -W +CFLAGS = -Wall -W -O3 # uncomment this if you want to force relocatable code for .so libs # it's necessary on some platforms but can reduce performance diff --git a/harbour/config/w32/gcc.cf b/harbour/config/w32/gcc.cf index 349139bb33..5d96560e7e 100644 --- a/harbour/config/w32/gcc.cf +++ b/harbour/config/w32/gcc.cf @@ -13,7 +13,7 @@ CC = gcc CC_IN = -c CC_OUT = -o CPPFLAGS = -I. -I$(HB_INC_COMPILE) -CFLAGS = -Wall -W +CFLAGS = -Wall -W -O3 LD = gcc LD_OUT = -o diff --git a/harbour/config/w32/mingw.cf b/harbour/config/w32/mingw.cf index 87c51133fc..92cd8a511c 100644 --- a/harbour/config/w32/mingw.cf +++ b/harbour/config/w32/mingw.cf @@ -13,7 +13,7 @@ CC = $(CCPREFIX)gcc CC_IN = -c CC_OUT = -o CPPFLAGS = -I. -I$(HB_INC_COMPILE) -CFLAGS = -Wall -W +CFLAGS = -Wall -W -O3 LD = $(CCPREFIX)gcc LD_OUT = -o diff --git a/harbour/config/w32/mingwce.cf b/harbour/config/w32/mingwce.cf index 8e2073dc50..3b5777becc 100644 --- a/harbour/config/w32/mingwce.cf +++ b/harbour/config/w32/mingwce.cf @@ -13,7 +13,7 @@ CC = $(CCPREFIX)gcc CC_IN = -c CC_OUT = -o CPPFLAGS = -I. -I$(HB_INC_COMPILE) -CFLAGS = -Wall -W +CFLAGS = -Wall -W -O3 LD = $(CCPREFIX)gcc LD_OUT = -o diff --git a/harbour/config/w32/rsxnt.cf b/harbour/config/w32/rsxnt.cf index 3c81e7d6d1..36c4957dd2 100644 --- a/harbour/config/w32/rsxnt.cf +++ b/harbour/config/w32/rsxnt.cf @@ -13,7 +13,7 @@ CC = gcc CC_IN = -c CC_OUT = -o CPPFLAGS = -I. -I$(HB_INC_COMPILE) -Zwin32 -CFLAGS = -Wall +CFLAGS = -Wall -W -O3 LD = gcc LDFLAGS = -Zwin32 diff --git a/harbour/harbour.spec b/harbour/harbour.spec index ad70215ea3..d983d747f3 100644 --- a/harbour/harbour.spec +++ b/harbour/harbour.spec @@ -67,7 +67,7 @@ %define hb_pref hb %define hb_arch export HB_ARCHITECTURE=linux %define hb_cc export HB_COMPILER=gcc -%define hb_cflag export C_USR="-O3 -DHB_FM_STATISTICS_OFF" +%define hb_cflag export C_USR="-DHB_FM_STATISTICS_OFF" %define hb_lflag export L_USR="${CC_L_USR} %{?_with_static:-static}" %define hb_gpm export HB_GPM_MOUSE=%{!?_without_gpm:yes} %define hb_crs export HB_WITHOUT_GTCRS=%{?_without_gtcrs:yes} diff --git a/harbour/mpkg_tgz.sh b/harbour/mpkg_tgz.sh index c19312f072..342142b283 100755 --- a/harbour/mpkg_tgz.sh +++ b/harbour/mpkg_tgz.sh @@ -29,7 +29,7 @@ hb_pref="hb" hb_contrib="" hb_sysdir="yes" hb_exesuf="" -export C_USR="$C_USR -DHB_FM_STATISTICS_OFF -O3" +export C_USR="$C_USR -DHB_FM_STATISTICS_OFF" [ -z "$HB_INSTALL_PREFIX" ] && [ -n "$PREFIX" ] && export HB_INSTALL_PREFIX="$PREFIX"