From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Cc: burley@gnu.org
Subject: Re: Should axp integers be long int?..was: fmt.c line 95 segfaults
Date: Fri, 10 Apr 1998 14:20:44 -0600 (MDT) [thread overview]
Message-ID: <199804102020.OAA29234@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <352E796C.2E282D27@bob.usuf2.usuhs.mil> from "Robert Williams" at Apr 10, 98 03:56:29 pm
>
> I see that integers are defined differently
> for the libf2c runtime code by these two
> versions. My questions at this point are:
> 1. Should integers be "long int" on the alpha?
They should not. Even only if tons of Fortran code assume that
INTEGER and INTEGER*4 are the same thing (is this a Standard
requirement? I do not have relevant documents on hand.)
f2c had the same problem, which likely stems from a need to
acommodate MS-DOS machines with 16-bit ints, and it was a big
pain in the ass and a performance drag.
> 2. How are pointers defined?
???? Why this matters? Adresses on Alpha happen to be 8-bytes wide.
>
> Here are the (different) typedefs for these two versions,
> as created by "configure".
>
> egcs-1.0.2
> typedef int /* long int */ flag;
> typedef int /* long int */ ftnlen;
> typedef int /* long int */ ftnint;
>
> egcs-980406
> typedef long int /* long int */ flag;
> typedef long int /* long int */ ftnlen;
> typedef long int /* long int */ ftnint;
Bummer! Not again! I actually filed a bug report, accepted, against
some snapshots between 1.0.1 and 1.0.2 because 'configure' was broken
and this 'long int' stuff showed once more and immediately created a
havoc in a library. My temporary workaround was to add Makefile entries
which were editing automatically bad typedefs before they were used.
For reasons unclear it looks like that releases of egcs get it right
and snapshots are breaking configure script. Mind you, snapshots are
not guaranteed to work at all and if play with they then you are
on your own and you are supposed to report bugs fast (with possible fixes).
Still I wonder why this bug shows up again, and again, and ...
Michal
next prev parent reply other threads:[~1998-04-10 20:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <199803301732.MAA01231@melange.gnu.org>
1998-04-10 19:56 ` Should axp integers be long int?..was: fmt.c line 95 segfaults Robert Williams
1998-04-10 20:20 ` Michal Jaegermann [this message]
1998-04-11 10:52 ` Toon Moene
1998-04-14 11:50 ` Loic Prylli
1998-04-17 0:17 Craig Burley
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox