This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: ICE for fortran reasoned by wrong sizetype size for x86_64 mingw32 target
- From: FX Coudert <fxcoudert at gmail dot com>
- To: Kai dot Tietz at onevision dot com
- Cc: GFORTRAN list <fortran at gcc dot gnu dot org>, GCC-patches list <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 3 Aug 2007 17:44:03 +0100
- Subject: Re: ICE for fortran reasoned by wrong sizetype size for x86_64 mingw32 target
- References: <46ADB161.7030808@gmx.de>
Hi Kai,
I got from Paul Thomas the hint that you are the author of the f95-
lang.c
file of gcc. So may you are the right person to comment or approve
this
patch.I found the problem in gfc_init_decl_processing choosing the
wrong
'sizetype' type for some targets. The code assumes, that the
'sizetype' is
a 'unsigned long', which is not true for the x86_64-pc-mingw32 target.
Don't you have to change gcc/c-common.c (c_common_nodes_and_builtins)
also, then?
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)
2007-07-23 Kai Tietz <kai.tietz@onevision.com>
* f95-lang.c: (gfc_init_decl_processing): Choose sizetype
by using
Pmode.
Although I'm not Paul, this looks OK to me, but it's still safer to
ping Paul if you don't hear from him (holidays?).
FX