[tree-ssa] Another bug in local static variables
Jan Hubicka
hubicka@ucw.cz
Sat Oct 18 17:27:00 GMT 2003
Hi,
move_var_to_scope contains hacks that confuses new hacks to deal with
copying of static variables delcarations. OK?
Honza
2003-10-18 Jan Hubicka <jh@suse.cz>
* tree-ssa-copyprop.c (move_var_to_scope): Do not clear abstract
origin for static variables.
Index: tree-ssa-copyprop.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-ssa-copyprop.c,v
retrieving revision 1.1.2.18
diff -c -3 -p -r1.1.2.18 tree-ssa-copyprop.c
*** tree-ssa-copyprop.c 15 Oct 2003 05:03:10 -0000 1.1.2.18
--- tree-ssa-copyprop.c 18 Oct 2003 17:21:57 -0000
*************** move_var_to_scope (tree var, tree old_sc
*** 307,311 ****
/* Dwarf2out ices (in add_abstract_origin_attribute) when it encounters
variable that is not declared, but has DECL_ABSTRACT_ORIGIN set. */
! DECL_ABSTRACT_ORIGIN (var) = NULL_TREE;
}
--- 307,312 ----
/* Dwarf2out ices (in add_abstract_origin_attribute) when it encounters
variable that is not declared, but has DECL_ABSTRACT_ORIGIN set. */
! if (!TREE_STATIC (var))
! DECL_ABSTRACT_ORIGIN (var) = NULL_TREE;
}
More information about the Gcc-patches
mailing list