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
d58247a3
Commit
d58247a3
authored
Jul 16, 2004
by
Richard Henderson
Committed by
Richard Henderson
Jul 16, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* function.c (pass_by_reference): True for all variable sized types.
From-SVN: r84829
parent
7eacb691
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
gcc/ChangeLog
+4
-0
gcc/function.c
+2
-3
No files found.
gcc/ChangeLog
View file @
d58247a3
2004-07-16 Richard Henderson <rth@redhat.com>
* function.c (pass_by_reference): True for all variable sized types.
2004-07-16 Sebastian Pop <pop@cri.ensmp.fr>
* Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
...
...
gcc/function.c
View file @
d58247a3
...
...
@@ -2039,9 +2039,8 @@ pass_by_reference (CUMULATIVE_ARGS *ca, enum machine_mode mode,
if
(
TREE_ADDRESSABLE
(
type
))
return
true
;
/* If an object's size is dependent on itself, there's no way
to *not* pass by reference. */
if
(
CONTAINS_PLACEHOLDER_P
(
TYPE_SIZE
(
type
)))
/* GCC post 3.4 passes *all* variable sized types by reference. */
if
(
!
TYPE_SIZE
(
type
)
||
TREE_CODE
(
TYPE_SIZE
(
type
))
!=
INTEGER_CST
)
return
true
;
}
...
...
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