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]

[patch] regrename.c: Fix a warning.


Hi,

Attached is a patch to fix a warning introduced by

  http://gcc.gnu.org/ml/gcc-patches/2004-01/msg01325.html

Committed as obvious.

Kazu Hirata

2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>

	* regrename.c (find_oldest_value_reg): Fix a warning.

Index: regrename.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/regrename.c,v
retrieving revision 1.72
diff -c -r1.72 regrename.c
*** regrename.c	14 Jan 2004 16:25:09 -0000	1.72
--- regrename.c	14 Jan 2004 17:51:36 -0000
***************
*** 1345,1352 ****
  	if (!TEST_HARD_REG_BIT (reg_class_contents[class], last))
  	  return NULL_RTX;
  
!       if (new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i,
! 				   regno))
  	{
  	  ORIGINAL_REGNO (new) = ORIGINAL_REGNO (reg);
  	  REG_ATTRS (new) = REG_ATTRS (reg);
--- 1345,1352 ----
  	if (!TEST_HARD_REG_BIT (reg_class_contents[class], last))
  	  return NULL_RTX;
  
!       new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i, regno);
!       if (new)
  	{
  	  ORIGINAL_REGNO (new) = ORIGINAL_REGNO (reg);
  	  REG_ATTRS (new) = REG_ATTRS (reg);


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