This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch,Fortran] PR41869 - fix module writing ICE
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Tue, 9 Feb 2010 19:47:47 +0100
- Subject: Re: [Patch,Fortran] PR41869 - fix module writing ICE
- References: <4B716538.7030605@net-b.de>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Feb 09, 2010 at 02:38:00PM +0100, Tobias Burnus wrote:
> The attached patch - submitted on behalf of Paul - fixes the ICE of PR
> 41869. For a comment what happens, see PR or comment in the patch.
>
> Build and regtested on x86-64-linux.
> I think Paul's patch is OK and will thus commit it this evening, unless
> there are objections. I am considering it for 4.4.
This broke bootstrap. Fixed thusly, committed as obvious:
2010-02-09 Jakub Jelinek <jakub@redhat.com>
* module.c (fix_mio_expr): Declare sym.
--- gcc/fortran/module.c.jj 2010-02-09 19:17:05.000000000 +0100
+++ gcc/fortran/module.c 2010-02-09 19:37:01.000000000 +0100
@@ -2927,6 +2927,8 @@ fix_mio_expr (gfc_expr *e)
}
else if (e->expr_type == EXPR_FUNCTION && e->value.function.name)
{
+ gfc_symbol *sym;
+
/* In some circumstances, a function used in an initialization
expression, in one use associated module, can fail to be
coupled to its symtree when used in a specification
Jakub