]> gcc.gnu.org Git - gcc.git/commit - gcc/fortran/decl.c
re PR fortran/29699 (ICE in trans-decl.c)
authorPaul Thomas <pault@gcc.gnu.org>
Thu, 9 Nov 2006 18:42:28 +0000 (18:42 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Thu, 9 Nov 2006 18:42:28 +0000 (18:42 +0000)
commit7114edca021e3251ec74acf93e9ebe18b128c87a
tree24d34b4ba251e9f21674a4a86c639715a08502f3
parentd82a02fa4f3cd88f8d8f080ffe4bd9c7536c7e8f
re PR fortran/29699 (ICE in trans-decl.c)

2006-11-09 Paul Thomas <pault@gcc.gnu.org>

PR fortran/29699
* trans-array.c (structure_alloc_comps): Detect pointers to
arrays and use indirect reference to declaration.
* resolve.c (resolve_fl_variable): Tidy up condition.
(resolve_symbol): The same and only add initialization code if
the symbol is referenced.
* trans-decl.c (gfc_trans_deferred_vars): Call gfc_trans_
deferred_array before gfc_trans_auto_array_allocation.

PR fortran/21730
* symbol.c (check_done): Remove.
(gfc_add_attribute): Remove reference to check_done and remove
the argument attr_intent.
(gfc_add_allocatable, gfc_add_dimension, gfc_add_external,
gfc_add_intrinsic, gfc_add_optional, gfc_add_pointer,
gfc_add_cray_pointer, gfc_add_cray_pointee, gfc_add_result,
gfc_add_target, gfc_add_in_common, gfc_add_elemental,
gfc_add_pure, gfc_add_recursive, gfc_add_procedure,
gfc_add_type): Remove references to check_done.
* decl.c (attr_decl1): Eliminate third argument in call to
gfc_add_attribute.
* gfortran.h : Change prototype for gfc_add_attribute.

2006-11-09 Paul Thomas <pault@gcc.gnu.org>

PR fortran/29699
* gfortran.dg/alloc_comp_auto_array_1.f90: New test.

PR fortran/21730
* gfortran.dg/change_symbol_attributes_1.f90: New test.

From-SVN: r118624
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/gfortran.h
gcc/fortran/resolve.c
gcc/fortran/symbol.c
gcc/fortran/trans-array.c
gcc/fortran/trans-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/alloc_comp_auto_array_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/change_symbol_attributes_1.f90 [new file with mode: 0644]
This page took 0.081426 seconds and 5 git commands to generate.