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
16bae307
Commit
16bae307
authored
Jul 20, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(assign_parms): Use const0_rtx as DECL_RTL and as
DECL_INCOMING_RTL if tmode of parm is void. From-SVN: r1635
parent
7e53036d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
gcc/function.c
+9
-1
No files found.
gcc/function.c
View file @
16bae307
...
...
@@ -2556,6 +2556,14 @@ assign_parms (fndecl, second_time)
passed_mode
=
TYPE_MODE
(
passed_type
);
nominal_mode
=
TYPE_MODE
(
TREE_TYPE
(
parm
));
/* If the parm's mode is VOID, its value doesn't matter,
and avoid the usual things like emit_move_insn that could crash. */
if
(
nominal_mode
==
VOIDmode
)
{
DECL_INCOMING_RTL
(
parm
)
=
DECL_RTL
(
parm
)
=
const0_rtx
;
continue
;
}
#ifdef FUNCTION_ARG_PASS_BY_REFERENCE
/* See if this arg was passed by invisible reference. */
if
(
FUNCTION_ARG_PASS_BY_REFERENCE
(
args_so_far
,
passed_mode
,
...
...
@@ -2860,7 +2868,7 @@ assign_parms (fndecl, second_time)
/* If we were passed a pointer but the actual value
can safely live in a register, put it in one. */
if
(
passed_pointer
&&
nominal_mode
!=
BLKmode
if
(
passed_pointer
&&
TYPE_MODE
(
TREE_TYPE
(
parm
))
!=
BLKmode
&&
!
((
obey_regdecls
&&
!
DECL_REGISTER
(
parm
)
&&
!
DECL_INLINE
(
fndecl
))
/* layout_decl may set this. */
...
...
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