This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ICE for fortran reasoned by wrong sizetype size for x86_64 mingw32 target


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]