This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH Fortran] bootstrap failure by wrong sizetype
- From: Kai Tietz <Kai dot Tietz at onevision dot com>
- To: "François-Xavier Coudert" <fxcoudert at gmail dot com>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 22 Aug 2007 12:19:08 +0200
- Subject: Re: [PATCH Fortran] bootstrap failure by wrong sizetype
Hi FranÃois-Xavier,
> > May somebody else could take a look on this quite small patch. The
> fortran compiler
> > assumes, that sizetype has a type of a 'unsigned long'. This isn't
true
> > for the x86_64-pc-mingw32 target. For this target the sizetype needs
to be
> > a 'unsigned long long', because the 'long' type remains 32-bit width.
> > This patch uses the Pmode definition to choose the proper type size.
>
> I had two questions to your original posting, which were not answered:
> http://gcc.gnu.org/ml/gcc-patches/2007-08/msg00198.html
>
> Provided that these two questions are answered, the patch is OK.
Copied from the orignal message:
Don't you have to change gcc/c-common.c (c_common_nodes_and_builtins)
also, then?
No, this code uses the target defined SIZE_TYPE macro to determine the
accurate type.
>Additionally there was coming up some question about the support of the
>fortan compiler for 16-bit targets (but this is an off topic issue IMHO).
It depends: do you expect your patch to change the situation in any way
for a 16-bit target? (I'm sorry that I don't know enough of these targets
to actually answer that question myself)
The 16-bit question was just for interests ;) For 16-bit variants the
'long' type seems to be wide enough to hold the pointer and a optional
segment scalar.
Cheers,
i.A. Kai Tietz
| (\_/) This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.
------------------------------------------------------------------------------------------
OneVision Software Entwicklungs GmbH & Co. KG
Dr.-Leo-Ritter-StraÃe 9 - 93049 Regensburg
Tel: +49.(0)941.78004.0 - Fax: +49.(0)941.78004.489 - www.OneVision.com
Commerzbank Regensburg - BLZ 750 400 62 - Konto 6011050
Handelsregister: HRA 6744, Amtsgericht Regensburg
KomplementÃrin: OneVision Software Entwicklungs Verwaltungs GmbH
Dr.-Leo-Ritter-StraÃe 9 â 93049 Regensburg
Handelsregister: HRB 8932, Amtsgericht Regensburg - GeschÃftsfÃhrer:
Ulrike DÃhler, Manuela Kluger