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
3462dc45
Commit
3462dc45
authored
Jan 10, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r176
parent
68e9eb95
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
gcc/genemit.c
+3
-2
gcc/reorg.c
+9
-5
No files found.
gcc/genemit.c
View file @
3462dc45
...
...
@@ -459,9 +459,10 @@ gen_split (split)
int
operands
;
if
(
XVEC
(
split
,
0
)
==
0
)
fatal
(
"define_split
%d
lacks a pattern"
,
insn_index_number
);
fatal
(
"define_split
(definition %d)
lacks a pattern"
,
insn_index_number
);
else
if
(
XVEC
(
split
,
2
)
==
0
)
fatal
(
"define_split %d lacks a replacement pattern"
,
insn_index_number
);
fatal
(
"define_split (definition %d) lacks a replacement pattern"
,
insn_index_number
);
/* Find out how many operands this function has. */
...
...
gcc/reorg.c
View file @
3462dc45
...
...
@@ -303,8 +303,8 @@ mark_referenced_resources (x, res, include_called_routine)
if
(
include_called_routine
)
{
/* A CALL references memory, the frame pointer if it exists, the
stack pointer, an
d any registers given in USE insns immediately
in front of the CALL.
stack pointer, an
y global registers and any registers given in
USE insns immediately
in front of the CALL.
However, we may have moved some of the parameter loading insns
into the delay slot of this CALL. If so, the USE's for them
...
...
@@ -328,6 +328,10 @@ mark_referenced_resources (x, res, include_called_routine)
if
(
frame_pointer_needed
)
SET_HARD_REG_BIT
(
res
->
regs
,
FRAME_POINTER_REGNUM
);
for
(
i
=
0
;
i
<
FIRST_PSEUDO_REGISTER
;
i
++
)
if
(
global_regs
[
i
])
SET_HARD_REG_BIT
(
res
->
regs
,
i
);
/* Skip any labels between the CALL_INSN and possible USE insns. */
while
(
GET_CODE
(
insn
)
==
CODE_LABEL
)
insn
=
PREV_INSN
(
insn
);
...
...
@@ -403,8 +407,8 @@ mark_set_resources (insn, res, include_called_routine)
case
CALL_INSN
:
/* Called routine modifies the condition code, memory, any registers
that aren't saved across calls,
and anything explicitly CLOBBERed
immediately after the CALL_INSN. */
that aren't saved across calls,
global registers and anything
explicitly CLOBBERed
immediately after the CALL_INSN. */
if
(
include_called_routine
)
{
...
...
@@ -412,7 +416,7 @@ mark_set_resources (insn, res, include_called_routine)
res
->
cc
=
res
->
memory
=
1
;
for
(
i
=
0
;
i
<
FIRST_PSEUDO_REGISTER
;
i
++
)
if
(
call_used_regs
[
i
])
if
(
call_used_regs
[
i
]
||
global_regs
[
i
]
)
SET_HARD_REG_BIT
(
res
->
regs
,
i
);
/* Skip any possible labels between the CALL_INSN and CLOBBERs. */
...
...
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