aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/symbol.c
diff options
context:
space:
mode:
authorAsher Langton <langton2@llnl.gov>2005-10-24 14:50:18 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2005-10-24 14:50:18 +0000
commit09e87839d4255f7a9fd1c2531efacd7b8b6f33a8 (patch)
treea9bd12371703f8d2b1cef1390ea3e56d4e2cff82 /gcc/fortran/symbol.c
parentaca2b8da2026c46d5ed9447823111a488d364135 (diff)
downloadgcc-09e87839d4255f7a9fd1c2531efacd7b8b6f33a8.zip
gcc-09e87839d4255f7a9fd1c2531efacd7b8b6f33a8.tar.gz
gcc-09e87839d4255f7a9fd1c2531efacd7b8b6f33a8.tar.bz2
Commit for Asher Langton <langton2@llnl.gov>
fortran/ * decl.c (gfc_match_save): Changed duplicate SAVE errors to warnings in the absence of strict standard conformance * symbol.c (gfc_add_save): Same. testsuite/ * gfortran.dg/dup_save_1.f90: New test. * gfortran.dg/dup_save_2.f90: New test. From-SVN: r105850
Diffstat (limited to 'gcc/fortran/symbol.c')
-rw-r--r--gcc/fortran/symbol.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/fortran/symbol.c b/gcc/fortran/symbol.c
index 98ce66f..c1221eb 100644
--- a/gcc/fortran/symbol.c
+++ b/gcc/fortran/symbol.c
@@ -681,8 +681,11 @@ gfc_add_save (symbol_attribute * attr, const char *name, locus * where)
if (attr->save)
{
- duplicate_attr ("SAVE", where);
- return FAILURE;
+ if (gfc_notify_std (GFC_STD_LEGACY,
+ "Duplicate SAVE attribute specified at %L",
+ where)
+ == FAILURE)
+ return FAILURE;
}
attr->save = 1;