[haiku-commits] haiku: hrev45409 - build/jam

  • From: fredrik.holmqvist@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 25 Mar 2013 22:29:32 +0100 (CET)

hrev45409 adds 1 changeset to branch 'master'
old head: daebca78f8edce18e967705c7e7c00e0b4c43e23
new head: a54db680badfcff579a4d629e4a44f2f304ce1da
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=a54db68+%5Edaebca7

----------------------------------------------------------------------------

a54db68: Revert "Remove fno-tree-vrp compile flag."
  
  This reverts commit e8d6e3fe3b85f88fe9506257b0cbbf5341a3a840.
  Also added a comment pointing to the recent discussion.
  See 
//www.freelists.org/post/haiku-development/hrev45320-Yet-another-nonobvious-effect-of-ftreevrp-optimization

                         [ Fredrik Holmqvist <fredrik.holmqvist@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev45409
Commit:      a54db680badfcff579a4d629e4a44f2f304ce1da
URL:         http://cgit.haiku-os.org/haiku/commit/?id=a54db68
Author:      Fredrik Holmqvist <fredrik.holmqvist@xxxxxxxxx>
Date:        Mon Mar 25 20:51:11 2013 UTC

----------------------------------------------------------------------------

1 file changed, 5 insertions(+), 2 deletions(-)
build/jam/BuildSetup | 7 +++++--

----------------------------------------------------------------------------

diff --git a/build/jam/BuildSetup b/build/jam/BuildSetup
index c957bca..6588093 100644
--- a/build/jam/BuildSetup
+++ b/build/jam/BuildSetup
@@ -131,8 +131,11 @@ if $(HAIKU_USE_GCC_PIPE) = 1 {
 # results in some broken code.
 # TODO: remove the -fno-strict-aliasing option when all code has been
 #              analyzed/fixed with regard to aliasing.
+# TODO: retest/remove the -fno-tree-vrp option as soon as we have updated our
+#              gcc4 compiler. See this discussion on some issues:
+# 
//www.freelists.org/post/haiku-development/hrev45320-Yet-another-nonobvious-effect-of-ftreevrp-optimization
 if $(HAIKU_GCC_VERSION[1]) >= 3 {
-       HAIKU_GCC_BASE_FLAGS += -fno-strict-aliasing ;
+       HAIKU_GCC_BASE_FLAGS += -fno-strict-aliasing -fno-tree-vrp ;
 }
 
 # disable array bounds warnings on gcc 4.6 or newer since they trigger
@@ -145,7 +148,7 @@ if $(HAIKU_GCC_VERSION[1]) >= 4 {
 }
 
 if $(HOST_GCC_VERSION[1]) >= 3 {
-       HOST_GCC_BASE_FLAGS += -fno-strict-aliasing ;
+       HOST_GCC_BASE_FLAGS += -fno-strict-aliasing -fno-tree-vrp ;
 }
 
 # override gcc 2.95.3's header directory -- strictly necessary only when using


Other related posts:

  • » [haiku-commits] haiku: hrev45409 - build/jam - fredrik . holmqvist