OSDN Git Service

PR debug/43593
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Mar 2010 20:16:52 +0000 (20:16 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 00:39:34 +0000 (09:39 +0900)
* var-tracking.c (dataflow_set_clear_at_call): Invalidate
just regs_invalidated_by_call instead all call_used_reg_set
registers.

* gcc.dg/guality/pr43593.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157834 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/var-tracking.c

index a533a7f..cddbce7 100644 (file)
@@ -1,3 +1,10 @@
+2010-03-30  Jakub Jelinek  <jakub@redhat.com>
+
+       PR debug/43593
+       * var-tracking.c (dataflow_set_clear_at_call): Invalidate
+       just regs_invalidated_by_call instead all call_used_reg_set
+       registers.
+
 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
 
        PR middle-end/43430
index c9ede61..a7af1c6 100644 (file)
@@ -1,3 +1,8 @@
+2010-03-30  Jakub Jelinek  <jakub@redhat.com>
+
+       PR debug/43593
+       * gcc.dg/guality/pr43593.c: New test.
+
 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
 
        PR middle-end/43430
index bff7d11..e0f7229 100644 (file)
@@ -4170,7 +4170,7 @@ dataflow_set_clear_at_call (dataflow_set *set)
   int r;
 
   for (r = 0; r < FIRST_PSEUDO_REGISTER; r++)
-    if (TEST_HARD_REG_BIT (call_used_reg_set, r))
+    if (TEST_HARD_REG_BIT (regs_invalidated_by_call, r))
       var_regno_delete (set, r);
 
   if (MAY_HAVE_DEBUG_INSNS)