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
320cfc3c
Commit
320cfc3c
authored
Jan 14, 1995
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(incoming_reg): Keep regstack aligned to even boundary.
From-SVN: r8759
parent
eb7d5627
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
gcc/config/a29k/a29k.c
+7
-2
No files found.
gcc/config/a29k/a29k.c
View file @
320cfc3c
...
...
@@ -806,8 +806,13 @@ incoming_reg (start, count)
CLEAR_HARD_REG_BIT
(
call_fixed_reg_set
,
i
);
}
/* Shorten the maximum size of the frame. */
for
(
i
=
R_AR
(
0
)
-
start
-
count
;
i
<
R_AR
(
0
)
-
start
;
i
++
)
/* Shorten the maximum size of the frame.
Remember that R_AR(-1,-2) are place holders for the caller's lr0,lr1.
Make sure to keep the frame rounded to an even boundary. Rounding up
to an 8 byte boundary will use a slot. Otherwise a frame with 121 local
regs and 5 arguments will overrun the stack (121+1 + 5 + 2 > 128). */
/* ??? An alternative would be to never allocate one reg. */
for
(
i
=
(
R_AR
(
0
)
-
2
-
start
-
count
)
&
~
1
;
i
<
R_AR
(
0
)
-
2
-
start
;
i
++
)
{
fixed_regs
[
i
]
=
call_used_regs
[
i
]
=
call_fixed_regs
[
i
]
=
1
;
SET_HARD_REG_BIT
(
fixed_reg_set
,
i
);
...
...
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