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
baf05df0
Commit
baf05df0
authored
Apr 30, 2000
by
Mark Mitchell
Committed by
Mark Mitchell
Apr 30, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* method.c (emit_thunk): Don't try to return a `void' value.
From-SVN: r33554
parent
04dfcc8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
gcc/cp/ChangeLog
+2
-0
gcc/cp/method.c
+4
-1
No files found.
gcc/cp/ChangeLog
View file @
baf05df0
2000-04-30 Mark Mitchell <mark@codesourcery.com>
* method.c (emit_thunk): Don't try to return a `void' value.
* optimize.c (initialize_inlined_parameters): If the parameter is
addressable, we need to make a new VAR_DECL, even if the
initializer is constant.
...
...
gcc/cp/method.c
View file @
baf05df0
...
...
@@ -2187,7 +2187,10 @@ emit_thunk (thunk_fndecl)
t
=
tree_cons
(
NULL_TREE
,
a
,
t
);
t
=
nreverse
(
t
);
t
=
build_call
(
function
,
t
);
finish_return_stmt
(
t
);
if
(
!
same_type_p
(
TREE_TYPE
(
t
),
void_type_node
))
finish_return_stmt
(
t
);
else
finish_expr_stmt
(
t
);
/* The back-end expects DECL_INITIAL to contain a BLOCK, so we
clear this here. */
...
...
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