From de39891a3ccf1245eb430018d4281ff381fcc9aa Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Sat, 19 Apr 2008 17:12:47 +0000 Subject: [PATCH] Add the "-fno-tree-vrp" option when building with GCC4. It seems that the value range propagation optimization results in broken code with the GCC4 version we are currently using. Added TODO to retest/remove this flag when we update our GCC4 compiler. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25054 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- build/jam/BuildSetup | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/build/jam/BuildSetup b/build/jam/BuildSetup index 1896f2a352..efc486cbd5 100644 --- a/build/jam/BuildSetup +++ b/build/jam/BuildSetup @@ -156,10 +156,16 @@ if $(HAIKU_USE_GCC_PIPE) = 1 { HAIKU_GCC_BASE_FLAGS = -pipe ; } -# disable strict aliasing on anything newer than gcc 2 as it may lead to unexpected results. -# TODO: remove this when all code has been analyzed/fixed with regard to aliasing. +# disable strict aliasing on anything newer than gcc 2 as it may lead to +# unexpected results. also disable the tree-vrp (value range propagation) +# optimization for now as with the current gcc4 version we are using this +# 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. if $(HAIKU_GCC_VERSION[1]) >= 3 { - HAIKU_GCC_BASE_FLAGS += -fno-strict-aliasing ; + HAIKU_GCC_BASE_FLAGS += -fno-strict-aliasing -fno-tree-vrp ; } # override gcc 2.95.3's header directory -- strictly necessary only when using