Changeset 1089

Show
Ignore:
Timestamp:
07/02/09 01:11:00 (9 months ago)
Author:
astrange
Message:

Minor adjustment to cflags.
- Apple gcc disables -freorder-blocks at -O3 for no apparent reason.
- Disable -funswitch-loops (enabled at -O3), it causes pointless code growth.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/createStaticLibs.sh

    r1079 r1089  
    1414        buildid_ffmpeg="${buildid_ffmpeg}Dev" 
    1515else 
    16     optcflags="-falign-loops=16 -fweb -fstrict-aliasing -finline-limit=1000
     16    optcflags="-falign-loops=16 -fweb -fstrict-aliasing -finline-limit=1000 -freorder-blocks
    1717        buildid_ffmpeg="${buildid_ffmpeg}Dep" 
    1818fi 
     
    114114                if [ "$BUILD_STYLE" != "Development" ] ; then 
    115115                optcflags="$optcflags -mtune=$x86tune -frerun-cse-after-loop"  
     116                appendcflags="-fno-unswitch-loops" #these disable things in -O3 so must be at the end 
    116117        fi 
    117118 
     
    132133            cd .. 
    133134        fi 
     135         
     136        perl -pi -e "s/-O3/-O3 $appendcflags/g" config.mak 
     137         
    134138        make -j3 
    135139    fi