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
1fd3ef7f
Commit
1fd3ef7f
authored
May 06, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(assign_parms): Use expr_size when appropriate.
From-SVN: r7228
parent
b8c21346
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
14 deletions
+7
-14
gcc/function.c
+7
-14
No files found.
gcc/function.c
View file @
1fd3ef7f
...
...
@@ -3546,21 +3546,14 @@ assign_parms (fndecl, second_time)
if
(
TYPE_SIZE
(
type
)
==
0
||
TREE_CODE
(
TYPE_SIZE
(
type
))
!=
INTEGER_CST
)
{
/* This is a variable sized object. */
/* ??? Can we use expr_size here? */
rtx
size_rtx
=
expand_expr
(
size_in_bytes
(
type
),
NULL_RTX
,
TYPE_MODE
(
sizetype
),
0
);
copy
=
gen_rtx
(
MEM
,
BLKmode
,
allocate_dynamic_stack_space
(
size_rtx
,
NULL_RTX
,
TYPE_ALIGN
(
type
)));
}
/* This is a variable sized object. */
copy
=
gen_rtx
(
MEM
,
BLKmode
,
allocate_dynamic_stack_space
(
expand_size
(
parm
),
NULL_RTX
,
TYPE_ALIGN
(
type
)));
else
{
int
size
=
int_size_in_bytes
(
type
);
copy
=
assign_stack_temp
(
TYPE_MODE
(
type
),
size
,
1
);
}
copy
=
assign_stack_temp
(
TYPE_MODE
(
type
),
int_size_in_bytes
(
type
),
1
);
store_expr
(
parm
,
copy
,
0
);
emit_move_insn
(
parmreg
,
XEXP
(
copy
,
0
));
...
...
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