diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2008-01-22 06:01:54 +0000 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2008-01-22 06:01:54 +0000 |
commit | 87a64f537b2da1b02a7ec0de254b60614db72074 (patch) | |
tree | 095c8b10c9b4fca54ba9aa5dbe4217f40eaac509 /gcc/fortran/module.c | |
parent | 1d4f537493ecfd41dcdaef735eee2bedce6a85f6 (diff) | |
download | gcc-87a64f537b2da1b02a7ec0de254b60614db72074.zip gcc-87a64f537b2da1b02a7ec0de254b60614db72074.tar.gz gcc-87a64f537b2da1b02a7ec0de254b60614db72074.tar.bz2 |
re PR fortran/34896 (libgomp.fortran/reduction5.f90)
2008-01-22 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34896
* module.c (read_module): Set use_rename attribute.
2008-01-22 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34896
* gfortran.dg/use_rename_2.f90: New test.
From-SVN: r131712
Diffstat (limited to 'gcc/fortran/module.c')
-rw-r--r-- | gcc/fortran/module.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c index fe57b9d..c2dc27a 100644 --- a/gcc/fortran/module.c +++ b/gcc/fortran/module.c @@ -3769,6 +3769,9 @@ read_module (void) st->n.sym = sym; st->n.sym->refs++; + if (strcmp (name, p) != 0) + sym->attr.use_rename = 1; + /* Store the symtree pointing to this symbol. */ info->u.rsym.symtree = st; |