Changeset 34:fef9c670375b for Makefile

Show
Ignore:
Timestamp:
12/02/07 15:49:03 (3 years ago)
Author:
mdoison
Branch:
default
convert_revision:
svn:7c786126-522e-0410-a822-d6d8feae56ca/trunk@124
Message:

Remove ffast-math and -O3 optimisation flags in makefile

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Makefile

    r0 r34  
    199199  endif 
    200200 
    201   OPTIMIZE = -O3 -ffast-math -funroll-loops -fomit-frame-pointer 
     201  OPTIMIZE = -O2 -funroll-loops -fomit-frame-pointer 
    202202 
    203203  ifeq ($(ARCH),x86_64) 
    204     OPTIMIZE = -O3 -fomit-frame-pointer -ffast-math -funroll-loops \ 
     204    OPTIMIZE = -O2 -fomit-frame-pointer -funroll-loops \ 
    205205      -falign-loops=2 -falign-jumps=2 -falign-functions=2 \ 
    206206      -fstrength-reduce 
     
    209209  else 
    210210  ifeq ($(ARCH),x86) 
    211     OPTIMIZE = -O3 -march=i586 -fomit-frame-pointer -ffast-math \ 
     211    OPTIMIZE = -O2 -march=i586 -fomit-frame-pointer \ 
    212212      -funroll-loops -falign-loops=2 -falign-jumps=2 \ 
    213213      -falign-functions=2 -fstrength-reduce 
     
    320320 
    321321  ifeq ($(ARCH),ppc) 
    322     OPTIMIZE += -faltivec -O3 
     322    OPTIMIZE += -faltivec -O2 
    323323  endif 
    324324  ifeq ($(ARCH),x86) 
     
    365365    $(LIBSDIR)/macosx/libSDL-1.2.0.dylib 
    366366 
    367   OPTIMIZE += -ffast-math -falign-loops=16 
     367  OPTIMIZE += -falign-loops=16 
    368368 
    369369  ifneq ($(HAVE_VM_COMPILED),true) 
     
    416416  endif 
    417417 
    418   OPTIMIZE = -O3 -march=i586 -fno-omit-frame-pointer -ffast-math \ 
     418  OPTIMIZE = -O2 -march=i586 -fno-omit-frame-pointer \ 
    419419    -falign-loops=2 -funroll-loops -falign-jumps=2 -falign-functions=2 \ 
    420420    -fstrength-reduce 
     
    488488  ifeq ($(ARCH),axp) 
    489489    BASE_CFLAGS += -DNO_VM_COMPILED 
    490     RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O3 -ffast-math -funroll-loops \ 
     490    RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O2 -funroll-loops \ 
    491491      -fomit-frame-pointer -fexpensive-optimizations 
    492492  else 
    493493  ifeq ($(ARCH),x86) 
    494     RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O3 -mtune=pentiumpro \ 
    495       -march=pentium -fomit-frame-pointer -pipe -ffast-math \ 
     494    RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O2 -mtune=pentiumpro \ 
     495      -march=pentium -fomit-frame-pointer -pipe \ 
    496496      -falign-loops=2 -falign-jumps=2 -falign-functions=2 \ 
    497497      -funroll-loops -fstrength-reduce 
     
    568568  BASE_CFLAGS=-Dstricmp=strcasecmp -Xcpluscomm -woff 1185 -mips3 \ 
    569569    -nostdinc -I. -I$(ROOT)/usr/include -DNO_VM_COMPILED 
    570   RELEASE_CFLAGS=$(BASE_CFLAGS) -O3 
     570  RELEASE_CFLAGS=$(BASE_CFLAGS) -O2 
    571571  DEBUG_CFLAGS=$(BASE_CFLAGS) -g 
    572572 
     
    607607    -pipe -DUSE_ICON $(shell sdl-config --cflags) 
    608608 
    609   OPTIMIZE = -O3 -ffast-math -funroll-loops 
     609  OPTIMIZE = -O2 -funroll-loops 
    610610 
    611611  ifeq ($(ARCH),sparc) 
    612     OPTIMIZE = -O3 -ffast-math -falign-loops=2 \ 
     612    OPTIMIZE = -O2 -falign-loops=2 \ 
    613613      -falign-jumps=2 -falign-functions=2 -fstrength-reduce \ 
    614614      -mtune=ultrasparc -mv8plus -mno-faster-structs \ 
     
    616616  else 
    617617  ifeq ($(ARCH),x86) 
    618     OPTIMIZE = -O3 -march=i586 -fomit-frame-pointer -ffast-math \ 
     618    OPTIMIZE = -O2 -march=i586 -fomit-frame-pointer \ 
    619619      -funroll-loops -falign-loops=2 -falign-jumps=2 \ 
    620620      -falign-functions=2 -fstrength-reduce 
     
    652652  BASE_CFLAGS=-DNO_VM_COMPILED 
    653653  DEBUG_CFLAGS=$(BASE_CFLAGS) -g 
    654   RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O3 
     654  RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O2 
    655655 
    656656  SHLIBEXT=so