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
091ad0b9
Commit
091ad0b9
authored
Apr 03, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r673
parent
76124f95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
13 deletions
+22
-13
gcc/explow.c
+22
-13
No files found.
gcc/explow.c
View file @
091ad0b9
...
...
@@ -688,12 +688,15 @@ round_push (size)
Any required stack pointer alignment is preserved.
SIZE is an rtx representing the size of the area.
TARGET is a place in which the address can be placed. */
TARGET is a place in which the address can be placed.
KNOWN_ALIGN is the alignment (in bits) that we know SIZE has. */
rtx
allocate_dynamic_stack_space
(
size
,
target
)
allocate_dynamic_stack_space
(
size
,
target
,
known_align
)
rtx
size
;
rtx
target
;
int
known_align
;
{
/* Ensure the size is in the proper mode. */
if
(
GET_MODE
(
size
)
!=
VOIDmode
&&
GET_MODE
(
size
)
!=
Pmode
)
...
...
@@ -761,11 +764,14 @@ allocate_dynamic_stack_space (size, target)
way of knowing which systems have this problem. So we avoid even
momentarily mis-aligning the stack. */
size
=
round_push
(
size
);
if
(
known_align
%
STACK_BOUNDARY
!=
0
)
size
=
round_push
(
size
);
do_pending_stack_adjust
();
if
(
target
==
0
)
/* Don't use a TARGET that isn't a pseudo. */
if
(
target
==
0
||
GET_CODE
(
target
)
!=
REG
||
REGNO
(
target
)
<
FIRST_PSEUDO_REGISTER
)
target
=
gen_reg_rtx
(
Pmode
);
#ifndef STACK_GROWS_DOWNWARD
...
...
@@ -797,15 +803,18 @@ allocate_dynamic_stack_space (size, target)
#endif
#ifdef MUST_ALIGN
target
=
expand_divmod
(
0
,
CEIL_DIV_EXPR
,
Pmode
,
target
,
gen_rtx
(
CONST_INT
,
VOIDmode
,
BIGGEST_ALIGNMENT
/
BITS_PER_UNIT
),
0
,
1
);
target
=
expand_mult
(
Pmode
,
target
,
gen_rtx
(
CONST_INT
,
VOIDmode
,
BIGGEST_ALIGNMENT
/
BITS_PER_UNIT
),
0
,
1
);
if
(
known_align
%
BIGGEST_ALIGNMENT
!=
0
)
{
target
=
expand_divmod
(
0
,
CEIL_DIV_EXPR
,
Pmode
,
target
,
gen_rtx
(
CONST_INT
,
VOIDmode
,
BIGGEST_ALIGNMENT
/
BITS_PER_UNIT
),
0
,
1
);
target
=
expand_mult
(
Pmode
,
target
,
gen_rtx
(
CONST_INT
,
VOIDmode
,
BIGGEST_ALIGNMENT
/
BITS_PER_UNIT
),
0
,
1
);
}
#endif
/* Some systems require a particular insn to refer to the stack
...
...
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