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
b3e401c2
Commit
b3e401c2
authored
Apr 03, 1998
by
Jason Merrill
Committed by
Jason Merrill
Apr 03, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl.c (cplus_expand_expr_stmt): Strip unused INDIRECT_REFs.
From-SVN: r18974
parent
9a71c18b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
gcc/cp/ChangeLog
+2
-0
gcc/cp/decl.c
+6
-0
No files found.
gcc/cp/ChangeLog
View file @
b3e401c2
Fri Apr 3 02:22:59 1998 Jason Merrill <jason@yorick.cygnus.com>
Fri Apr 3 02:22:59 1998 Jason Merrill <jason@yorick.cygnus.com>
* decl.c (cplus_expand_expr_stmt): Strip unused INDIRECT_REFs.
Re-implement allocation of base class subobjects.
Re-implement allocation of base class subobjects.
* tree.c (unshare_base_binfos): New fn.
* tree.c (unshare_base_binfos): New fn.
(layout_basetypes): Use it. Now handles offsets of both virtual and
(layout_basetypes): Use it. Now handles offsets of both virtual and
...
...
gcc/cp/decl.c
View file @
b3e401c2
...
@@ -12886,6 +12886,12 @@ cplus_expand_expr_stmt (exp)
...
@@ -12886,6 +12886,12 @@ cplus_expand_expr_stmt (exp)
libg++ to miscompile, and tString to core dump. */
libg++ to miscompile, and tString to core dump. */
exp = build1 (CLEANUP_POINT_EXPR, TREE_TYPE (exp), exp);
exp = build1 (CLEANUP_POINT_EXPR, TREE_TYPE (exp), exp);
#endif
#endif
/* Strip unused implicit INDIRECT_REFs of references. */
if
(
TREE_CODE
(
exp
)
==
INDIRECT_REF
&&
TREE_CODE
(
TREE_TYPE
(
TREE_OPERAND
(
exp
,
0
)))
==
REFERENCE_TYPE
)
exp
=
TREE_OPERAND
(
exp
,
0
);
/* If we don't do this, we end up down inside expand_expr
/* If we don't do this, we end up down inside expand_expr
trying to do TYPE_MODE on the ERROR_MARK, and really
trying to do TYPE_MODE on the ERROR_MARK, and really
go outside the bounds of the type. */
go outside the bounds of the 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