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: [Patch,Fortran] PR41869 - fix module writing ICE


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


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