This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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] |
--- Begin Message ---
- From: Kai Tietz <Kai dot Tietz at onevision dot com>
- To: Paul Brook <paul at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 30 Jul 2007 09:53:52 +0200
- Subject: Re: ICE for fortran reasoned by wrong sizetype size for x86_64 mingw32 target
- Approved: news@gmane.org
- Archived-at: <http://permalink.gmane.org/gmane.comp.gcc.patches/145271>
- Envelope-to: gcc-patches@gmane.org
- Newsgroups: gmane.comp.gcc.patches
- Original-received: from sourceware.org ([209.132.176.174])by lo.gmane.org with smtp (Exim 4.50)id 1IFQ4y-0004fk-84for gcc-patches@gmane.org; Mon, 30 Jul 2007 09:54:12 +0200
- Original-received: (qmail 31892 invoked by alias); 30 Jul 2007 07:54:10 -0000
- Original-received: (qmail 31878 invoked by uid 22791); 30 Jul 2007 07:54:10 -0000
- Original-received: from outdoor.onevision.de (HELO outdoor.onevision.de) (212.77.172.51) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 30 Jul 2007 07:54:07 +0000
- Original-received: from sanders.onevision.de (moonrace [212.77.172.62]) by outdoor.onevision.de (8.13.7/8.13.7/ROSCH/DDB) with ESMTP id l6U7rxgB012734; Mon, 30 Jul 2007 09:54:02 +0200
- Original-x-from: gcc-patches-return-200446-gcc-patches=m.gmane.org@gcc.gnu.org Mon Jul 30 09:54:17 2007
- Xref: news.gmane.org gmane.comp.gcc.patches:145271
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 <kai.tietz@onevision.com> * f95-lang.c: (gfc_init_decl_processing): Choose sizetype by using Pmode. 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 - 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 KlugerAttachment: w64fortran2.txt
Description: Text document
--- End Message ---
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |