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
db811328
Commit
db811328
authored
Dec 14, 2017
by
Eric Botcazou
Committed by
Eric Botcazou
Dec 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc-interface/misc.c (default_pass_by_ref): Minor tweak.
From-SVN: r255650
parent
5505bb43
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
gcc/ada/ChangeLog
+4
-0
gcc/ada/gcc-interface/misc.c
+6
-6
No files found.
gcc/ada/ChangeLog
View file @
db811328
2017
-
12
-
14
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
gcc
-
interface
/
misc
.
c
(
default_pass_by_ref
):
Minor
tweak
.
2017
-
12
-
14
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
gcc
-
interface
/
trans
.
c
(
Call_to_gnu
):
Set
DECL_DISREGARD_INLINE_LIMITS
to
0
on
the
callee
if
the
call
is
recursive
.
...
...
gcc/ada/gcc-interface/misc.c
View file @
db811328
...
...
@@ -1144,18 +1144,18 @@ default_pass_by_ref (tree gnu_type)
is an In Out parameter, but it's probably best to err on the side of
passing more things by reference. */
if
(
pass_by_reference
(
NULL
,
TYPE_MODE
(
gnu_type
),
gnu_type
,
true
))
return
true
;
if
(
targetm
.
calls
.
return_in_memory
(
gnu_type
,
NULL_TREE
))
return
true
;
if
(
AGGREGATE_TYPE_P
(
gnu_type
)
&&
(
!
valid_constant_size_p
(
TYPE_SIZE_UNIT
(
gnu_type
))
||
0
<
compare_tree_int
(
TYPE_SIZE_UNIT
(
gnu_type
),
TYPE_ALIGN
(
gnu_type
))))
return
true
;
if
(
pass_by_reference
(
NULL
,
TYPE_MODE
(
gnu_type
),
gnu_type
,
true
))
return
true
;
if
(
targetm
.
calls
.
return_in_memory
(
gnu_type
,
NULL_TREE
))
return
true
;
return
false
;
}
...
...
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