This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Optimizer Problem
- From: Ray Nachlinger <ray at ultramarine dot com>
- To: Stefanos Folias <sf at math dot bu dot edu>
- Cc: fortran at gcc dot gnu dot org
- Date: Mon, 3 Jul 2006 17:37:44 -0500 (CDT)
- Subject: Re: Optimizer Problem
- References: <EF559DDC-ACA1-44C3-8DC2-916DEEA6B022@math.bu.edu>
On Mon, 3 Jul 2006, Stefanos Folias wrote:
> To whom it may concern,
>
> I have been using gfortran on Mac running Tiger. I have been wrestling with a
> horrible discrepancy between the use of optimizers and not. I have tried
> omitting certain flags to determine what may be causing the problem to no
> avail. The discrepancy is a function of one of the dimension of the array,
> i.e., there is a threshold length where one type of result occurs below and
> another occurs above. However, the result shouldn't at all be dependent on
> the length of the array. With no optimizers, the same result occurs, and
> matches the result as generated by f95 on a server running unix. Thus, the
> optimizers have an inherent problem.
>
> Could you forward this email, or provide me with a contact for someone who may
> be able to help me with this problem.
I have a large program with runs quite nicely with -O3 on OSX 10.4
using gfortran4.1.1. Perhaps you are using a previous versions. If
so you really need to upgrade. The older ones do, in fact, have bugs.