summaryrefslogtreecommitdiff
path: root/scipy_distutils/gnufcompiler.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2004-11-30 12:53:50 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2004-11-30 12:53:50 +0000
commitc2920f65f6ed634c65cce600d6f0f050a843ed3c (patch)
tree99c29b6a918b54c850b41f583366bdfa5099e609 /scipy_distutils/gnufcompiler.py
parentb89d967cf6cc65a24695cf0ef60817c638d52f7c (diff)
downloadnumpy-c2920f65f6ed634c65cce600d6f0f050a843ed3c.tar.gz
Using -O2 with gcc-3.3.3 to avoid test failures.
Diffstat (limited to 'scipy_distutils/gnufcompiler.py')
-rw-r--r--scipy_distutils/gnufcompiler.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/scipy_distutils/gnufcompiler.py b/scipy_distutils/gnufcompiler.py
index 09e2c3c23..c18734ddd 100644
--- a/scipy_distutils/gnufcompiler.py
+++ b/scipy_distutils/gnufcompiler.py
@@ -102,7 +102,13 @@ class GnuFCompiler(FCompiler):
return ['-g']
def get_flags_opt(self):
- opt = ['-O3','-funroll-loops']
+ if self.get_version()=='3.3.3':
+ # With this compiler version building Fortran BLAS/LAPACK
+ # with -O3 caused failures in lib.lapack heevr,syevr tests.
+ opt = ['-O2']
+ else:
+ opt = ['-O3']
+ opt.append('-funroll-loops')
return opt
def get_flags_arch(self):