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]

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


Hello,

I reported last week an ICE for target x86_64-pc-mingw32 target while 
building libgfortran. There is a bug in gfc_init_decl_processing in file 
f95-lang.c. Within this function sizetype is getting initialized as a 
"long_unsigned_type_node" - which is for most targets valid - but the 
target x86_64-pc-mingw32 has a size_t of type 
"long_long_unsigned_type_node". The following patch solves this problem:

ChangeLog: /gcc/fortran

2007-07-23  Kai Tietz  <kai.tietz@onevision.com>
        * f95-lang.c: (gfc_init_decl_processing): Use 
long_long_unsigned_type_node
        for target x86_64 mingw32 as sizetype.
 
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

Attachment: w64fortran.txt
Description: Text document


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