OSDN Git Service

PR debug/43058
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Mar 2010 20:15:05 +0000 (20:15 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:13:20 +0000 (14:13 +0900)
* var-tracking.c (non_suitable_const): New function.
(add_uses): For DEBUG_INSNs with constants, don't record any
value, instead just the constant value itself.
(compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
is not VAR_LOC_UNKNOWN_P, set var to the constant.
(emit_notes_in_bb): Likewise.
(emit_note_insn_var_location): For onepart variables if
cur_loc is a VOIDmode constant, use DECL_MODE.

* gcc.dg/pr43058.c: New test.

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

gcc/ChangeLog
gcc/testsuite/ChangeLog

index d3ed14f..39a5fd2 100644 (file)
@@ -1,3 +1,15 @@
+2010-03-18  Jakub Jelinek  <jakub@redhat.com>
+
+       PR debug/43058
+       * var-tracking.c (non_suitable_const): New function.
+       (add_uses): For DEBUG_INSNs with constants, don't record any
+       value, instead just the constant value itself.
+       (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
+       is not VAR_LOC_UNKNOWN_P, set var to the constant.
+       (emit_notes_in_bb): Likewise.
+       (emit_note_insn_var_location): For onepart variables if
+       cur_loc is a VOIDmode constant, use DECL_MODE.
+
 2010-03-18  Martin Jambor  <mjambor@suse.cz>
 
        PR middle-end/42450
 2010-03-18  Martin Jambor  <mjambor@suse.cz>
 
        PR middle-end/42450
index 0d78bf8..ea35f3c 100644 (file)
@@ -1,3 +1,8 @@
+2010-03-18  Jakub Jelinek  <jakub@redhat.com>
+
+       PR debug/43058
+       * gcc.dg/pr43058.c: New test.
+
 2010-03-18  Martin Jambor  <mjambor@suse.cz>
 
        PR middle-end/42450
 2010-03-18  Martin Jambor  <mjambor@suse.cz>
 
        PR middle-end/42450