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
0d08582e
Commit
0d08582e
authored
Feb 16, 2010
by
Jason Merrill
Committed by
Jason Merrill
Feb 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cp-gimplify.c (cp_gimplify_expr): Fix error recovery.
From-SVN: r156803
parent
99f51320
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
gcc/cp/ChangeLog
+2
-0
gcc/cp/cp-gimplify.c
+4
-2
No files found.
gcc/cp/ChangeLog
View file @
0d08582e
2010-02-16 Jason Merrill <jason@redhat.com>
* cp-gimplify.c (cp_gimplify_expr): Fix error recovery.
PR c++/43031
* cp-gimplify.c (cp_gimplify_expr) [MODIFY_EXPR]: Use
VIEW_CONVERT_EXPR for conversions between structural equality types
...
...
gcc/cp/cp-gimplify.c
View file @
0d08582e
...
...
@@ -560,8 +560,10 @@ cp_gimplify_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p)
tree
op0
=
TREE_OPERAND
(
*
expr_p
,
0
);
tree
op1
=
TREE_OPERAND
(
*
expr_p
,
1
);
if
((
TYPE_STRUCTURAL_EQUALITY_P
(
TREE_TYPE
(
op0
))
||
TYPE_STRUCTURAL_EQUALITY_P
(
TREE_TYPE
(
op1
)))
if
(
!
error_operand_p
(
op0
)
&&
!
error_operand_p
(
op1
)
&&
(
TYPE_STRUCTURAL_EQUALITY_P
(
TREE_TYPE
(
op0
))
||
TYPE_STRUCTURAL_EQUALITY_P
(
TREE_TYPE
(
op1
)))
&&
!
useless_type_conversion_p
(
TREE_TYPE
(
op1
),
TREE_TYPE
(
op0
)))
TREE_OPERAND
(
*
expr_p
,
1
)
=
build1
(
VIEW_CONVERT_EXPR
,
TREE_TYPE
(
op0
),
op1
);
...
...
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