Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
b088998d
Commit
b088998d
authored
Dec 19, 2000
by
John David Anglin
Committed by
Jeff Law
Dec 19, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
From Jeff Law.
* pa.c (basereg_operand): Simplify. From-SVN: r38382
parent
79c2ffde
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
16 deletions
+7
-16
gcc/ChangeLog
+5
-0
gcc/config/pa/pa.c
+2
-16
No files found.
gcc/ChangeLog
View file @
b088998d
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,
...
...
gcc/config/pa/pa.c
View file @
b088998d
...
...
@@ -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. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment