From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 17386 invoked from network); 10 Apr 1998 20:20:35 -0000 Received: from ellpspace.math.ualberta.ca (michal@129.128.88.19) by mail2.redhat.com with SMTP; 10 Apr 1998 20:20:35 -0000 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.5/8.8.5) id OAA29234; Fri, 10 Apr 1998 14:20:45 -0600 From: Michal Jaegermann Message-Id: <199804102020.OAA29234@ellpspace.math.ualberta.ca> Subject: Re: Should axp integers be long int?..was: fmt.c line 95 segfaults To: axp-list@redhat.com Date: Fri, 10 Apr 1998 14:20:44 -0600 (MDT) Cc: burley@gnu.org In-Reply-To: <352E796C.2E282D27@bob.usuf2.usuhs.mil> from "Robert Williams" at Apr 10, 98 03:56:29 pm Content-Type: text > > 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