This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Autoincrement patches
- To: Michael Hayes <m dot hayes at elec dot canterbury dot ac dot nz>
- Subject: Re: Autoincrement patches
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Fri, 17 Dec 1999 21:45:54 +0000 (GMT)
- CC: Joern Rennecke <amylaar at pasanda dot cygnus dot co dot uk>, gcc-patches at gcc dot gnu dot org
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
+ = ®no_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
+ = ®no_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;