aboutsummaryrefslogtreecommitdiff
path: root/gcc/flow.c
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@gcc.gnu.org>2006-09-06 21:24:24 -0700
committerAndrew Pinski <pinskia@gcc.gnu.org>2006-09-06 21:24:24 -0700
commitb5b84a7f46e8baead0f3d7b62d59659d83d67271 (patch)
treedabac1e6add1ad67f425c5273286eec14a5b9a35 /gcc/flow.c
parentaa4f41c1d57b1d533650672d5bcf2e40fffbf0f1 (diff)
downloadgcc-b5b84a7f46e8baead0f3d7b62d59659d83d67271.zip
gcc-b5b84a7f46e8baead0f3d7b62d59659d83d67271.tar.gz
gcc-b5b84a7f46e8baead0f3d7b62d59659d83d67271.tar.bz2
[multiple changes]
2006-09-06 James E Wilson <wilson@specifix.com> PR rtl-opt/27883 * flow.c (update_life_info): If UPDATE_LIFE_LOCAL and PROP_DEATH_NOTES then call count_or_remove_death_notes. 2006-09-06 Andrew Pinski <pinskia@physics.uc.edu> PR rtl-opt/27883 * g++.dg/opt/copysign-1.C: New test. From-SVN: r116739
Diffstat (limited to 'gcc/flow.c')
-rw-r--r--gcc/flow.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index 1adba71..47e49f4 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -647,6 +647,17 @@ update_life_info (sbitmap blocks, enum update_life_extent extent,
count_or_remove_death_notes (blocks,
prop_flags & PROP_POST_REGSTACK ? -1 : 1);
}
+ else
+ {
+ /* FIXME: This can go when the dataflow branch has been merged in. */
+ /* For a local update, if we are creating new REG_DEAD notes, then we
+ must delete the old ones first to avoid conflicts if they are
+ different. */
+ if (prop_flags & PROP_DEATH_NOTES)
+ count_or_remove_death_notes (blocks,
+ prop_flags & PROP_POST_REGSTACK ? -1 : 1);
+ }
+
/* Clear log links in case we are asked to (re)compute them. */
if (prop_flags & PROP_LOG_LINKS)