This is the mail archive of the 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 Paul,

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. 
This target defines the 'long' type 32-bit and a pointer is 64-bit (a 
'long long'). This results in an ICE for the fortan compiler for the 
x86_64-pc-mingw32 target. The attached patch fixes this problem.
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).

2007-07-23  Kai Tietz  <>
        * f95-lang.c: (gfc_init_decl_processing): Choose sizetype by using 

Thanks in advance and 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 -
  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

Attachment: w64fortran2.txt
Description: Text document

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