From: Tobias Schlüter Date: Fri, 9 Jul 2004 22:27:15 +0000 (+0200) Subject: re PR fortran/14077 (Data statement within a module that doesn't initialize a whole... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8598a1135ac5f99793d69679f4ec3537f2b83d1b;p=gcc.git re PR fortran/14077 (Data statement within a module that doesn't initialize a whole array creates an error) PR fortran/14077 * moduele.c (mio_symbol): Don't I/O initial values unless symbol is a parameter. From-SVN: r84408 --- diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 26182d4c95b..c3f70930f08 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +2004-07-09 Tobias Schlueter + + PR fortran/14077 + * moduele.c (mio_symbol): Don't I/O initial values unless + symbol is a parameter. + 2004-07-09 Tobias Schlueter PR fortran/13201 diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c index 9813b5401f4..8fce458a655 100644 --- a/gcc/fortran/module.c +++ b/gcc/fortran/module.c @@ -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);