#
# Optimization flags for the G95 Fortran compiler, any version
#
# Identifiers are of the form <level>_<stage>, where <level> is one of
# the permitted debug levels, and <stage> is a build stage which may
# take the following values:
#
#   * prep: for preprocessing;
#   * comp: for compilation;
#   * link: for linking.
#
# Each section of this file corresponds to a specific architecture. If
# no specific flags have been defined, the default ones will be applied.
# For a complete list of recognized architectures, please look at
# ~abinit/doc/build/architectures.txt.
#

[DEFAULT]
safe_comp = -O2
standard_comp = -O2
aggressive_comp = -O3

[arch_amd_athlon]
safe_comp = -O2 -march=athlon
standard_comp = -O2 -march=athlon
aggressive_comp = -O3 -march=athlon

[arch_amd_athlon64]
safe_comp = -O2 -march=athlon64
standard_comp = -O2 -march=athlon64
aggressive_comp = -O3 -march=athlon64

[arch_amd_opteron]
safe_comp = -O2 -march=opteron
standard_comp = -O2 -march=opteron
aggressive_comp = -O3 -march=opteron

[arch_ibm_powerpc]
safe_comp = -O2 -mpowerpc
standard_comp = -O2 -mpowerpc
aggressive_comp = -O4 -mpowerpc

[arch_ibm_powerpc64]
safe_comp = -O2 -mpowerpc64
standard_comp = -O2 -mpowerpc64
aggressive_comp = -O4 -mpowerpc64

[arch_intel_core2]
safe_comp = -O2 -march=prescott -mmmx -msse -msse2 -msse3
standard_comp = -O2 -march=prescott -mmmx -msse -msse2 -msse3
aggressive_comp = -O3 -march=prescott -mmmx -msse -msse2 -msse3

[arch_intel_coreduo]
safe_comp = -O2 -march=prescott -mmmx -msse -msse2
standard_comp = -O2 -march=prescott -mmmx -msse -msse2
aggressive_comp = -O3 -march=prescott -mmmx -msse -msse2

[arch_intel_xeon]
safe_comp = -O2 -march=nocona -mmmx -msse 
standard_comp = -O3 -march=nocona -mmmx -msse -msse2 
aggressive_comp = -O3 -march=nocona -mmmx -msse -msse2 

