This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[rtlopt] fix bug in var-tracking


Hi,

this patch fixes a bug in var-tracking.

Josef

2003-02-06  Josef Zlomek  <zlomekj@suse.cz>

	* var-tracking.c (var_tracking_emit_notes): Add variables from
	mem_in set for basic block bb in front of bb.

*** gcc-rtlopt/gcc/var-tracking.c	Thu Feb  6 10:54:29 2003
--- gcc-rtlopt.new/gcc/var-tracking.c	Thu Feb  6 11:36:25 2003
*************** var_tracking_emit_notes ()
*** 1520,1526 ****
        in = VTI (bb)->in;
        for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
  	add_and_unmark_variables ((void **) &in[i], bb->head);
!       htab_traverse (last_htab, add_and_unmark_variables, bb->head);
  
        /* Delete the marked location parts and emit the notes.  */
        emit_note_data.insn = bb->head;
--- 1520,1526 ----
        in = VTI (bb)->in;
        for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
  	add_and_unmark_variables ((void **) &in[i], bb->head);
!       htab_traverse (VTI (bb)->mem_in, add_and_unmark_variables, bb->head);
  
        /* Delete the marked location parts and emit the notes.  */
        emit_note_data.insn = bb->head;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]