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
f40fac9b
Commit
f40fac9b
authored
Aug 31, 1993
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(push_reload): Abort is secondary_reload wants same
class as an input reload. From-SVN: r5236
parent
67d4766b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
gcc/reload.c
+15
-0
No files found.
gcc/reload.c
View file @
f40fac9b
...
...
@@ -1006,6 +1006,21 @@ push_reload (in, out, inloc, outloc, class,
:
type
==
RELOAD_FOR_OUTPUT
?
RELOAD_FOR_OUTPUT_ADDRESS
:
type
);
/* This case isn't valid, so fail. Reload is allowed to use the
same register for RELOAD_FOR_INPUT_ADDRESS and RELOAD_FOR_INPUT
reloads, but in the case of a secondary register, we actually
need two different registers for correct code. We fail here
to prevent the possibility of silently generating incorrect code
later.
The convention is that secondary input reloads are valid only if
the secondary_class is different from class. If you have such
a case, you can not use secondary reloads, you must work around
the problem some other way. */
if
(
type
==
RELOAD_FOR_INPUT
&&
secondary_class
==
class
)
abort
();
/* If we need a tertiary reload, see if we have one we can reuse
or else make one. */
...
...
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