* [PATCH] Fix PR / 17317
@ 2004-10-11 6:06 Ramana Radhakrishnan
0 siblings, 0 replies; only message in thread
From: Ramana Radhakrishnan @ 2004-10-11 6:06 UTC (permalink / raw)
To: gcc-patches
Hi,
The patch inlined below fixes PR/ 17317 . The earlier definitions of
REG_OK_FOR_BASE, REGNO_OK_FOR_BASE , REG_OK_FOR_INDEX, REGNO_OK_INDEX
did not consider blink ( r31) as a valid base address. The documentation
for the A4 does not contradict this.
The patch below is for the 3.4 branch and can also be applied to cvs head.
cheers
Ramana
ChangeLog:
2004-10-11: Ramana Radhakrishnan (ramana.radhakrishnan@codito.com)
arc.h :
Fix PR/17317. Allow for blink to be used as a base register.
Index: arc.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/arc/arc.h,v
retrieving revision 1.68.4.1
diff -a -u -r1.68.4.1 arc.h
--- arc.h 9 Mar 2004 02:59:54 -0000 1.68.4.1
+++ arc.h 11 Oct 2004 04:51:32 -0000
@@ -463,9 +463,9 @@
Since they use reg_renumber, they are safe only once reg_renumber
has been allocated, which happens in local-alloc.c. */
#define REGNO_OK_FOR_BASE_P(REGNO) \
-((REGNO) < 29 || (unsigned) reg_renumber[REGNO] < 29)
+((REGNO) < 32 || (unsigned) reg_renumber[REGNO] < 32)
#define REGNO_OK_FOR_INDEX_P(REGNO) \
-((REGNO) < 29 || (unsigned) reg_renumber[REGNO] < 29)
+((REGNO) < 32 || (unsigned) reg_renumber[REGNO] < 32)
/* Given an rtx X being reloaded into a reg required to be
in class CLASS, return the class of reg to actually use.
@@ -900,11 +900,11 @@
/* Nonzero if X is a hard reg that can be used as an index
or if it is a pseudo reg. */
#define REG_OK_FOR_INDEX_P(X) \
-((unsigned) REGNO (X) - 29 >= FIRST_PSEUDO_REGISTER - 29)
+((unsigned) REGNO (X) - 32 >= FIRST_PSEUDO_REGISTER - 32)
/* Nonzero if X is a hard reg that can be used as a base reg
or if it is a pseudo reg. */
#define REG_OK_FOR_BASE_P(X) \
-((unsigned) REGNO (X) - 29 >= FIRST_PSEUDO_REGISTER - 29)
+((unsigned) REGNO (X) - 32 >= FIRST_PSEUDO_REGISTER - 32)
#else
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-10-11 5:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-11 6:06 [PATCH] Fix PR / 17317 Ramana Radhakrishnan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).