]> gcc.gnu.org Git - gcc.git/commit
var-tracking.c (struct variable_def): Added field refcount.
authorJosef Zlomek <zlomekj@suse.cz>
Thu, 11 Mar 2004 08:05:14 +0000 (09:05 +0100)
committerJosef Zlomek <zlomek@gcc.gnu.org>
Thu, 11 Mar 2004 08:05:14 +0000 (08:05 +0000)
commit81f2eadbedaf8048f749b2a6c7f550740ece94a4
tree8ce1eecafee1cf882113fbad7789e4dd621695cf
parentf2bd98d4c520787f278cdb6865f3566100b99e93
var-tracking.c (struct variable_def): Added field refcount.

PR/14362
* var-tracking.c (struct variable_def): Added field refcount.
(variable_htab_free): Decrease the refcount and delete variable
only if there are no more references.
(unshare_variable): New function.
(vars_copy_1): Increase refcount instead of copying the variable.
(variable_union): Share the variables where possible, unshare
the variables if needed.
(variable_different_p): Return false if var1 and var2 are
the same structure.
(variable_was_changed): Init the refcount of new variable.
(set_frame_base_location): Unshare variable if needed.
(set_variable_part): Init the refcount of new variable.
Unshare the variables if needed.
(delete_variable_part): Unshare the variables if needed.
(emit_notes_for_differences_1): Init the refcount of new variable.
(vt_add_function_parameters): Do not add function parameters to
IN set of ENTRY_BLOCK_PTR because it is unused anyway.
(vt_initialize): Do not add frame_base_decl to IN set of
ENTRY_BLOCK_PTR because it is unused anyway.

From-SVN: r79307
gcc/ChangeLog
gcc/var-tracking.c
This page took 0.069478 seconds and 5 git commands to generate.