re PR fortran/33541 (gfortran wrongly imports renamed-use-associated symbol unrenamed)
authorPaul Thomas <pault@gcc.gnu.org>
Tue, 27 Nov 2007 19:21:52 +0000 (19:21 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Tue, 27 Nov 2007 19:21:52 +0000 (19:21 +0000)
commit0e5a218b31eb720caa70b19439e26f658f151070
treebe82a309f3817052399ef60052788c41bf329635
parentf98e89380fd7ca4035221eaa9a8efad0e420d1b5
re PR fortran/33541 (gfortran wrongly imports renamed-use-associated symbol unrenamed)

2007-11-27  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/33541
*interface.c (compare_actual_formal): Exclude assumed size
arrays from the possibility of scalar to array mapping.
* decl.c (get_proc_name): Fix whitespace problem.

PR fortran/34231
* gfortran.h : Add 'use_rename' bit to symbol_attribute.
* module.c : Add 'renamed' field to pointer_info.u.rsym.
(load_generic_interfaces): Add 'renamed' that is set after the
number_use_names is called.  This is used to set the attribute
use_rename, which, in its turn identifies those symbols that
have not been renamed.
(load_needed): If pointer_info.u.rsym->renamed is set, then
set the use_rename attribute of the symbol.
(read_module): Correct an erroneous use of use_flag. Use the
renamed flag and the use_rename attribute to determine which
symbols are not renamed.

2007-11-27  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/33541
* gfortran.dg/use_11.f90: New test.

PR fortran/34231
* gfortran.dg/generic_15.f90: New test.

From-SVN: r130471
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/gfortran.h
gcc/fortran/interface.c
gcc/fortran/module.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/generic_15.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/use_11.f90 [new file with mode: 0644]