diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 239c3372ce..6cb65c6cf8 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,16 @@ past entries belonging to author(s): Viktor Szakats. */ +2010-03-10 14:34 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) + * config/win/cygwin.mk + * config/win/mingw.mk + * config/wce/mingwarm.mk + % Added -pipe option to win/gcc compilers, this way it's faster + (but consume more memory) since it passes intermediate files + - I could only spot the .s file - without writing them to disk. + Probably we should enable this on other platforms as well, + and if it works out well, also in hbmk2. + 2010-03-10 12:26 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/src/compiler/hbmain.c * harbour/src/compiler/harbour.y diff --git a/harbour/config/wce/mingwarm.mk b/harbour/config/wce/mingwarm.mk index f9a6c4c47d..5b0587da30 100644 --- a/harbour/config/wce/mingwarm.mk +++ b/harbour/config/wce/mingwarm.mk @@ -16,7 +16,7 @@ CC := $(HB_CCPATH)$(HB_CCPREFIX)$(HB_CMP)$(HB_CCPOSTFIX) CC_IN := -c CC_OUT := -o -CFLAGS += -I. -I$(HB_INC_COMPILE) +CFLAGS += -I. -I$(HB_INC_COMPILE) -pipe ifneq ($(HB_BUILD_WARN),no) CFLAGS += -Wall -W diff --git a/harbour/config/win/cygwin.mk b/harbour/config/win/cygwin.mk index 62606802e4..35b1d9c2ad 100644 --- a/harbour/config/win/cygwin.mk +++ b/harbour/config/win/cygwin.mk @@ -16,7 +16,7 @@ CC := $(HB_CCPATH)$(HB_CCPREFIX)$(HB_CMP)$(HB_CCPOSTFIX) CC_IN := -c CC_OUT := -o -CFLAGS += -I. -I$(HB_INC_COMPILE) +CFLAGS += -I. -I$(HB_INC_COMPILE) -pipe ifneq ($(HB_BUILD_WARN),no) CFLAGS += -Wall -W diff --git a/harbour/config/win/mingw.mk b/harbour/config/win/mingw.mk index a2b7bc7252..9fb4e30acd 100644 --- a/harbour/config/win/mingw.mk +++ b/harbour/config/win/mingw.mk @@ -16,7 +16,7 @@ CC := $(HB_CCPATH)$(HB_CCPREFIX)$(HB_CMP)$(HB_CCPOSTFIX) CC_IN := -c CC_OUT := -o -CFLAGS += -I. -I$(HB_INC_COMPILE) +CFLAGS += -I. -I$(HB_INC_COMPILE) -pipe # Equivalent to MSVC -GS (default) option, available in GCC 4.1 and upper: # -fstack-protector @@ -32,9 +32,14 @@ ifneq ($(HB_BUILD_WARN),no) endif ifneq ($(HB_BUILD_OPTIM),no) + # -O3 is not recommended for GCC 4.x by some packagers (see http://www.gentoo.org/doc/en/gcc-optimization.xml) CFLAGS += -O3 - ifneq ($(HB_BUILD_DEBUG),yes) - CFLAGS += -fomit-frame-pointer + # This option is not needed in x86_64 mode. + ifneq ($(HB_COMPILER),mingw64) + # It makes debugging hard or impossible on x86 systems. + ifneq ($(HB_BUILD_DEBUG),yes) + CFLAGS += -fomit-frame-pointer + endif endif ifeq ($(HB_COMPILER),mingw) CFLAGS += -march=i586 -mtune=pentiumpro