------- Comment #14 from jakub at gcc dot gnu dot org 2010-03-18 20:15 ------- Subject: Bug 43058
Author: jakub Date: Thu Mar 18 20:15:05 2010 New Revision: 157547 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157547 Log: 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. * gcc.dg/pr43058.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr43058.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/var-tracking.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43058