octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fortran flags


From: John W. Eaton
Subject: Fortran flags
Date: Wed, 11 May 2011 02:17:12 -0400

On 10-May-2011, Jordi Gutiérrez Hermoso wrote:

| On 10 May 2011 10:12, Daniel Kraft <address@hidden> wrote:
| 
| > Usually, -O2 should be a good thing for gfortran.  And in general, please
| > report any "problems" -O2 causes as gfortran bug.
| 
| I was wondering why it's not enabled in the default Fortran flags.
| Instead we merely use -O. I thought the option enabled other
| optimisation flags that caused problems. Red Hat for example broke ABI
| compatibility by compiling with -O2:
| 
|      https://bugzilla.redhat.com/show_bug.cgi?id=478856
| 
| I seem to recall there was another packaging problem by compiling with
| -O2, but I can't find it now.

I no longer remember why the configure script does this:

  ## Default FFLAGS is -O.
  if test "x$FFLAGS" = x; then
    FFLAGS="-O"
  fi

instead of allowing autoconf to select the default.  Maybe we should
let autoconf set the default value now.

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]