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: Autoincrement patches


Hmm, I forgot six stars and two ands...

--- regmove.c-199912172107	Fri Dec 17 21:07:02 1999
+++ regmove.c	Fri Dec 17 21:40:26 1999
@@ -618,13 +618,13 @@ lookup_pre_modify (regno, class, offset,
      rtx insn, test_addr;
 {
   int base = regno_related[regno]->u.base;
-  struct rel_use *match_first
-    = regno_related[base]->baseinfo->hashtab[0];
-  struct rel_use *match_limit = match_first + REL_USE_HASH_SIZE;
+  struct rel_use **match_first
+    = &regno_related[base]->baseinfo->hashtab[0];
+  struct rel_use **match_limit = match_first + REL_USE_HASH_SIZE;
   struct rel_use *match;
 
   PUT_CODE (test_addr, PRE_MODIFY);
-  for (; match_first < match_limit; match_first++)
+  for (; *match_first < match_limit; match_first++)
     {
       for (match = match_first; match; match = match->next_hash)
 	{
@@ -762,14 +762,14 @@ rel_record_mem (addrp, addr, mem_mode, s
 	   (mem_mode, test_addr)))
 	{
 	  int base = regno_related[regno]->u.base;
-	  struct rel_use *match_first
-	    = regno_related[base]->baseinfo->hashtab[0];
-	  struct rel_use *match_limit = match_first + REL_USE_HASH_SIZE;
+	  struct rel_use **match_first
+	    = &regno_related[base]->baseinfo->hashtab[0];
+	  struct rel_use **match_limit = match_first + REL_USE_HASH_SIZE;
 	  struct rel_use *specific_match = NULL_PTR;
 
 	  for (; match_first < match_limit; match_first++)
 	    {
-	      for (match = match_first; match; match = match->next_hash)
+	      for (match = *match_first; match; match = match->next_hash)
 		{
 		  struct rel_use *sibling;
 


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