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
7ef1fbd7
Commit
7ef1fbd7
authored
Oct 03, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_call): Pass objects who size depends on the contents of the
object by invisible reference. From-SVN: r5583
parent
99098c66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
gcc/calls.c
+7
-4
No files found.
gcc/calls.c
View file @
7ef1fbd7
...
...
@@ -942,10 +942,14 @@ expand_call (exp, target, ignore)
These decisions are driven by the FUNCTION_... macros and must agree
with those made by function.c. */
#ifdef FUNCTION_ARG_PASS_BY_REFERENCE
/* See if this argument should be passed by invisible reference. */
if
(
FUNCTION_ARG_PASS_BY_REFERENCE
(
args_so_far
,
TYPE_MODE
(
type
),
type
,
argpos
<
n_named_args
))
if
((
TREE_CODE
(
TYPE_SIZE
(
type
))
!=
INTEGER_CST
&&
contains_placeholder_p
(
TYPE_SIZE
(
type
)))
#ifdef FUNCTION_ARG_PASS_BY_REFERENCE
||
FUNCTION_ARG_PASS_BY_REFERENCE
(
args_so_far
,
TYPE_MODE
(
type
),
type
,
argpos
<
n_named_args
)
#endif
)
{
#ifdef FUNCTION_ARG_CALLEE_COPIES
if
(
FUNCTION_ARG_CALLEE_COPIES
(
args_so_far
,
TYPE_MODE
(
type
),
type
,
...
...
@@ -1000,7 +1004,6 @@ expand_call (exp, target, ignore)
type
=
build_pointer_type
(
type
);
}
}
#endif
/* FUNCTION_ARG_PASS_BY_REFERENCE */
mode
=
TYPE_MODE
(
type
);
...
...
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