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
b2a80c0d
Commit
b2a80c0d
authored
Nov 15, 1994
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(assign_stack_temp): Compute size of slot after
assign_stack_local has accounted for alignment. From-SVN: r8438
parent
ce3b2879
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
gcc/function.c
+11
-1
No files found.
gcc/function.c
View file @
b2a80c0d
...
@@ -856,11 +856,21 @@ assign_stack_temp (mode, size, keep)
...
@@ -856,11 +856,21 @@ assign_stack_temp (mode, size, keep)
/* If we still didn't find one, make a new temporary. */
/* If we still didn't find one, make a new temporary. */
if
(
p
==
0
)
if
(
p
==
0
)
{
{
int
frame_offset_old
=
frame_offset
;
p
=
(
struct
temp_slot
*
)
oballoc
(
sizeof
(
struct
temp_slot
));
p
=
(
struct
temp_slot
*
)
oballoc
(
sizeof
(
struct
temp_slot
));
p
->
size
=
size
;
/* If the temp slot mode doesn't indicate the alignment,
/* If the temp slot mode doesn't indicate the alignment,
use the largest possible, so no one will be disappointed. */
use the largest possible, so no one will be disappointed. */
p
->
slot
=
assign_stack_local
(
mode
,
size
,
mode
==
BLKmode
?
-
1
:
0
);
p
->
slot
=
assign_stack_local
(
mode
,
size
,
mode
==
BLKmode
?
-
1
:
0
);
/* The following slot size computation is necessary because we don't
know the actual size of the temporary slot until assign_stack_local
has performed all the frame alignment and size rounding for the
requested temporary. Otherwise combine_temp_slots won't think that
adjacent slots really are adjacent. */
#ifdef FRAME_GROWS_DOWNWARD
p
->
size
=
frame_offset_old
-
frame_offset
;
#else
p
->
size
=
frame_offset
-
frame_offset_old
;
#endif
p
->
address
=
0
;
p
->
address
=
0
;
p
->
next
=
temp_slots
;
p
->
next
=
temp_slots
;
temp_slots
=
p
;
temp_slots
=
p
;
...
...
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