genic.f miscompiles with -O2 or greater
Steve Kargl
sgk@troutmask.apl.washington.edu
Mon Jul 26 00:49:00 GMT 2010
On Sun, Jul 25, 2010 at 05:07:41PM -0400, Jack Howarth wrote:
> On Sun, Jul 25, 2010 at 10:17:36PM +0200, Tobias Burnus wrote:
> > Jack Howarth wrote:
> > > A reduced example of this is...
> > > [...]
> > >
> >
> > That is overly reduced. Unless, you have a complete, compilable run-time
> > example, it is difficult to find out what goes wrong.
> >
>
> Tobias,
> I think the testcase captures the core of the problem. Xplor-nih uses
> an array of pointers in HEAP to dynamically maintain its own heap. This
> is an array of INTEGER*8 on x86_64 linux or darwin (hence the use of
> -fdefault-integer-8 on the compile line). The problem appears to be
As the person made -fdefault-integer-8 work (for some definition
of work), I'll suggest that you don't want to use this option
(because it probably doesn't do what you think it does).
--
Steve
More information about the Fortran
mailing list