aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJohn David Anglin <dave@hiauly1.hia.nrc.ca>2000-12-19 18:19:56 +0000
committerJeff Law <law@gcc.gnu.org>2000-12-19 11:19:56 -0700
commitb088998d296abe045b8a5d013bdfc51c67f52582 (patch)
tree57de79ff3cabdf3e1f4a3e1e2793659697ecf245 /gcc
parent79c2ffde686279bf867bc890584da1990a42899e (diff)
downloadgcc-b088998d296abe045b8a5d013bdfc51c67f52582.zip
gcc-b088998d296abe045b8a5d013bdfc51c67f52582.tar.gz
gcc-b088998d296abe045b8a5d013bdfc51c67f52582.tar.bz2
From Jeff Law.
* pa.c (basereg_operand): Simplify. From-SVN: r38382
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/pa/pa.c18
2 files changed, 7 insertions, 16 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 76da5ee..38b8b13 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2000-12-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
+
+ From Jeff Law.
+ * pa.c (basereg_operand): Simplify.
+
2000-12-19 Bernd Schmidt <bernds@redhat.co.uk>
* haifa-sched.c (rm_line_notes): Arguments are now head and tail,
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c
index dc1af39..0aeb10d 100644
--- a/gcc/config/pa/pa.c
+++ b/gcc/config/pa/pa.c
@@ -6152,29 +6152,15 @@ basereg_operand (op, mode)
if (TARGET_NO_SPACE_REGS)
return (GET_CODE (op) == REG);
- /* Once reload has started any register with REG_POINTER set
- is considered valid. Reload should only create indexed addresses
- using the stack/frame pointer. All others are checked for
- validity when they are created by the combine pass. */
- if (reload_in_progress || reload_completed)
- return (GET_CODE (op) == REG && REG_POINTER (op));
-
- /* Stack is always OK for indexing. */
- if (op == stack_pointer_rtx)
- return 1;
-
/* While it's always safe to index off the frame pointer, it's not
always profitable, particularly when the frame pointer is being
eliminated. */
if (! flag_omit_frame_pointer && op == frame_pointer_rtx)
return 1;
- /* The only other valid OPs are pseudo registers with
- REG_POINTER set. */
return (GET_CODE (op) == REG
- && REGNO (op) >= FIRST_PSEUDO_REGISTER
- && register_operand (op, mode)
- && REG_POINTER (op));
+ && REG_POINTER (op)
+ && register_operand (op, mode));
}
/* Return 1 if this operand is anything other than a hard register. */