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]

[new-ra] stupid fix.


Hi Michael !

Are you want to discuss '#ifdef DENIS' ?

The fix.

2003-07-03  Denis Chertykov  <denisc@overta.ru>

	* ra-rewrite.c (split_insert_load): Syntax cleanup.

Index: ra-rewrite.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ra-rewrite.c,v
retrieving revision 1.1.2.19
diff -c -3 -p -r1.1.2.19 ra-rewrite.c
*** ra-rewrite.c	2 Jul 2003 15:11:21 -0000	1.1.2.19
--- ra-rewrite.c	3 Jul 2003 16:59:27 -0000
*************** split_insert_load (web, insn, before, li
*** 3567,3579 ****
        for (web = web->subreg_next; web; web = web->subreg_next)
  	if (is_partly_live (live, web))
  	  {
  	    rtx reg = copy_rtx (web->orig_x);
  	    enum machine_mode slot_mode = GET_MODE (whole_slot);
  	    if (slot_mode == VOIDmode)
  	      slot_mode = GET_MODE (aweb->orig_x);
! 	    rtx slot = simplify_gen_subreg (GET_MODE (reg), whole_slot,
! 					    slot_mode,
! 					    SUBREG_BYTE (reg));
  	    ra_emit_move_insn (reg, slot);
  	  }
      }
--- 3567,3581 ----
        for (web = web->subreg_next; web; web = web->subreg_next)
  	if (is_partly_live (live, web))
  	  {
+ 	    rtx slot;
  	    rtx reg = copy_rtx (web->orig_x);
+ 	    
  	    enum machine_mode slot_mode = GET_MODE (whole_slot);
  	    if (slot_mode == VOIDmode)
  	      slot_mode = GET_MODE (aweb->orig_x);
! 	    slot = simplify_gen_subreg (GET_MODE (reg), whole_slot,
! 					slot_mode,
! 					SUBREG_BYTE (reg));
  	    ra_emit_move_insn (reg, slot);
  	  }
      }




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