This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: h8300-elf build fails in libf2c
- From: Jeff Law <law at porcupine dot slc dot redhat dot com>
- To: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Cc: Andreas Jaeger <aj at suse dot de>, gcc-bugs at gcc dot gnu dot org, Toon Moene <moene at knmi dot nl>, Kazu Hirata <kazu at cs dot umass dot edu>
- Date: Mon, 12 Aug 2002 08:25:26 -0600
- Subject: Re: h8300-elf build fails in libf2c
- Reply-to: law at redhat dot com
In message <3D304ED6.D5D72CEC@moene.indiv.nluug.nl>, Toon Moene writes:
>Andreas Jaeger wrote:
>
>> #define FLOAT_TYPE_SIZE 32
>> #define DOUBLE_TYPE_SIZE 32
>>
>> Ok, that means we cannot bootstrap with Fortran enabled on h8300 -
>> unless either those defines are changed or G77 can live without
>> longint (but I do not propose to do this to fix h8300, I'm disabling
>> fortran now).
>
>Yes, this is deadly for Fortran, as per the Standard, DOUBLE PRECISION
>occupies "two memory units", whereas REAL "occupies one".
In theory it should be possible to coax the H8 port into dealing with
larger floating point types. It's just never been attempted.
I believe to make that work we'd also need to support larger integer
types (so that we can correctly build the FP emulation code in libgcc).
Again, I believe this would be possible, but it's never been studied in
detail.
Jeff