re PR middle-end/27793 (num_ssa_names inconsistent or immediate use iterator wrong)
authorAndrew MacLeod <amacleod@redhat.com>
Thu, 8 Jun 2006 01:18:16 +0000 (01:18 +0000)
committerAndrew Macleod <amacleod@gcc.gnu.org>
Thu, 8 Jun 2006 01:18:16 +0000 (01:18 +0000)
commit4b5e2dbc974abfe763a79e37ec7f37993a306d94
treef792289fadf43fd192c8ce4c6629ffdae96b0e3b
parenteb7a0591a30cd20fe1dc79ca3f0870eeb2ed7f78
re PR middle-end/27793 (num_ssa_names inconsistent or immediate use iterator wrong)

2006-06-07  Andrew MacLeod  <amacleod@redhat.com>

PR middle-end/27793
* tree-dfa.c (referenced_vars_dup_list): New.  List of duplicate
referenced_variables with matching DECL_UID's.
(find_referenced_vars): Make sure duplicate list is empty to start.
(referenced_var_p): Remove.
(referenced_var_check_and_insert): Renamed from referenced_var_insert.
Check if var is in the list, and add if needed.  Update the duplicate
list if a different var is in the list with the same DECL_UID.
(add_referenced_var): Call routine to check and insert.
* tree-ssa.c (delete_tree_ssa): Clear var_ann's on duplicates.
* tree-flow.h (referenced_vars_dup_list): External declaration.

From-SVN: r114480
gcc/ChangeLog
gcc/tree-dfa.c
gcc/tree-flow.h
gcc/tree-ssa.c