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
82c0ff02
Commit
82c0ff02
authored
Jan 02, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_call): Don't use int_size_in_bytes for a variable-size object.
From-SVN: r3060
parent
b00e5f0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
gcc/calls.c
+6
-3
No files found.
gcc/calls.c
View file @
82c0ff02
...
...
@@ -886,10 +886,10 @@ expand_call (exp, target, ignore)
{
/* We make a copy of the object and pass the address to the function
being called. */
int
size
=
int_size_in_bytes
(
type
);
rtx
copy
;
if
(
size
<
0
)
if
(
TYPE_SIZE
(
type
)
==
0
||
TREE_CODE
(
TYPE_SIZE
(
type
))
!=
INTEGER_CST
)
{
/* This is a variable-sized object. Make space on the stack
for it. */
...
...
@@ -908,7 +908,10 @@ expand_call (exp, target, ignore)
TYPE_ALIGN
(
type
)));
}
else
copy
=
assign_stack_temp
(
TYPE_MODE
(
type
),
size
,
1
);
{
int
size
=
int_size_in_bytes
(
type
);
copy
=
assign_stack_temp
(
TYPE_MODE
(
type
),
size
,
1
);
}
store_expr
(
args
[
i
].
tree_value
,
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