/[MITgcm]/MITgcm/tools/build_options/linux_ia32_gfortran
ViewVC logotype

Diff of /MITgcm/tools/build_options/linux_ia32_gfortran

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2 by edhill, Fri Jun 17 22:38:18 2005 UTC revision 1.4 by edhill, Fri May 12 19:08:46 2006 UTC
# Line 17  Line 17 
17  FC=gfortran  FC=gfortran
18  CC=gcc  CC=gcc
19  DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4 -DNML_TERMINATOR'  DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4 -DNML_TERMINATOR'
20    # CPP='gcc -E -traditional -P -'
21  CPP='cpp  -traditional -P'  CPP='cpp  -traditional -P'
22  NOOPTFLAGS='-O0'  NOOPTFLAGS='-O0'
23    
24  if test "x$IEEE" = x ; then  if test "x$IEEE" = x ; then
25      #  No need for IEEE-754      #  No need for IEEE-754
26      FFLAGS='-Wimplicit -Wunused -Wuninitialized'      #  "warning: -Wuninitialized is not supported without -O"
27        FFLAGS='-Wunused'
28      FOPTIM='-O3 -malign-double -funroll-loops'      FOPTIM='-O3 -malign-double -funroll-loops'
29  else  else
30      #  Try to follow IEEE-754      #  Try to follow IEEE-754
31      has_sse2=f      has_sse2=f
32      grep flags /proc/cpuinfo | grep sse2 > /dev/null 2>&1  &&  has_sse2=t      grep flags /proc/cpuinfo | grep sse2 > /dev/null 2>&1  &&  has_sse2=t
33      if test "x$has_sse2" = xt ; then      if test "x$has_sse2" = xt ; then
34          FFLAGS='-Wimplicit -Wunused -mfpmath=sse -msse -msse2'          FFLAGS='-Wunused -mfpmath=sse -msse -msse2'
35      else      else
36          FFLAGS='-Wimplicit -Wunused -ffloat-store'          FFLAGS='-Wunused -ffloat-store'
37      fi      fi
38      #  echo 'FFLAGS="'$FFLAGS'"'      #  echo 'FFLAGS="'$FFLAGS'"'
39      FOPTIM='-O0 -malign-double'      FOPTIM='-O0 -malign-double'

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.22