This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[new-ra] stupid fix.
- From: Denis Chertykov <denisc at overta dot ru>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Michael Matz <matz at suse dot de>
- Date: Thu, 03 Jul 2003 21:00:56 +0400
- Subject: [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);
}
}