Changeset 25054

Show
Ignore:
Timestamp:
04/19/08 13:12:47 (7 months ago)
Author:
mmlr
Message:

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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • haiku/trunk/build/jam/BuildSetup

    r25016 r25054  
    157157} 
    158158 
    159 # disable strict aliasing on anything newer than gcc 2 as it may lead to unexpected results. 
    160 # TODO: remove this when all code has been analyzed/fixed with regard to aliasing. 
     159# disable strict aliasing on anything newer than gcc 2 as it may lead to 
     160# unexpected results. also disable the tree-vrp (value range propagation) 
     161# optimization for now as with the current gcc4 version we are using this 
     162# results in some broken code. 
     163# TODO: remove the -fno-strict-aliasing option when all code has been 
     164#               analyzed/fixed with regard to aliasing. 
     165# TODO: retest/remove the -fno-tree-vrp option as soon as we have updated our 
     166#               gcc4 compiler. 
    161167if $(HAIKU_GCC_VERSION[1]) >= 3 { 
    162         HAIKU_GCC_BASE_FLAGS += -fno-strict-aliasing ; 
     168        HAIKU_GCC_BASE_FLAGS += -fno-strict-aliasing -fno-tree-vrp ; 
    163169} 
    164170