summaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authortobi <tobi@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-09 22:27:15 +0000
committertobi <tobi@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-09 22:27:15 +0000
commit7b87e8fb2c00a04c4c41af13fbc68b6f3d629147 (patch)
treebd0c919b862f1b5a30e646b4f6f603d98b224a74 /gcc/fortran
parentf7fe2f07576a2bb2ac0f256e9b30e8b01a94f22f (diff)
downloadgcc-7b87e8fb2c00a04c4c41af13fbc68b6f3d629147.tar.gz
PR fortran/14077
* moduele.c (mio_symbol): Don't I/O initial values unless symbol is a parameter. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84408 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran')
-rw-r--r--gcc/fortran/ChangeLog6
-rw-r--r--gcc/fortran/module.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 26182d4c95b..c3f70930f08 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,5 +1,11 @@
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
* resolve.c (resolve_symbol): Verify that the shape of a
parameter array is not only explicit, but also constant.
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);