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]

Re: alias/flow patch for PR 3783


>"regno" needs to be unsigned int to avoid a warning.

OK, one more fixed needed.  I did another bootstrap as a sanity check,
this time on ia32-linux, and checked in this patch.

2001-09-11  Jim Wilson  <wilson@redhat.com>

	* alias.c (clear_reg_alias_info): Only handle pseudo registers.

Index: alias.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/alias.c,v
retrieving revision 1.140
diff -p -r1.140 alias.c
*** alias.c	2001/09/10 10:55:18	1.140
--- alias.c	2001/09/11 20:15:13
*************** void
*** 969,976 ****
  clear_reg_alias_info (reg)
       rtx reg;
  {
!   if (REGNO (reg) < reg_known_value_size)
!     reg_known_value[REGNO (reg)] = reg;
  }
  
  /* Returns a canonical version of X, from the point of view alias
--- 969,978 ----
  clear_reg_alias_info (reg)
       rtx reg;
  {
!   unsigned int regno = REGNO (reg);
! 
!   if (regno < reg_known_value_size && regno >= FIRST_PSEUDO_REGISTER)
!     reg_known_value[regno] = reg;
  }
  
  /* Returns a canonical version of X, from the point of view alias


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