re PR fortran/14077 (Data statement within a module that doesn't initialize a whole...
authorTobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
Fri, 9 Jul 2004 22:27:15 +0000 (00:27 +0200)
committerTobias Schlüter <tobi@gcc.gnu.org>
Fri, 9 Jul 2004 22:27:15 +0000 (00:27 +0200)
PR fortran/14077
* moduele.c (mio_symbol): Don't I/O initial values unless
symbol is a parameter.

From-SVN: r84408

gcc/fortran/ChangeLog
gcc/fortran/module.c

index 26182d4c95b18bc31bf54b587874b79059fcbd85..c3f70930f089ce8a818c75c8bf4cb35f2fa7991e 100644 (file)
@@ -1,3 +1,9 @@
+2004-07-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
+       
+       PR fortran/14077
+       * moduele.c (mio_symbol): Don't I/O initial values unless
+       symbol is a parameter.
+
 2004-07-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
        
        PR fortran/13201
index 9813b5401f4ab8a5e8c11c05f562d52211310562..8fce458a65545949749161ce8301ccce52d3703c 100644 (file)
@@ -2675,7 +2675,9 @@ mio_symbol (gfc_symbol * sym)
 
   mio_formal_arglist (sym);
 
-  mio_expr (&sym->value);
+  if (sym->attr.flavor == FL_PARAMETER)
+    mio_expr (&sym->value);
+
   mio_array_spec (&sym->as);
 
   mio_symbol_ref (&sym->result);