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
e9ea372d
Commit
e9ea372d
authored
Dec 02, 2015
by
Jason Merrill
Committed by
Jason Merrill
Dec 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cp-gimplify.c (cp_fold): Use fold_build*.
From-SVN: r231195
parent
e9e32ee6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
gcc/cp/ChangeLog
+4
-0
gcc/cp/cp-gimplify.c
+9
-9
No files found.
gcc/cp/ChangeLog
View file @
e9ea372d
2015-12-02 Jason Merrill <jason@redhat.com>
* cp-gimplify.c (cp_fold): Use fold_build*.
2015-12-02 Joseph Myers <joseph@codesourcery.com>
PR c/68162
...
...
gcc/cp/cp-gimplify.c
View file @
e9ea372d
...
...
@@ -1944,9 +1944,9 @@ cp_fold (tree x)
op0
=
cp_fold
(
op0
);
if
(
op0
!=
TREE_OPERAND
(
x
,
0
))
x
=
build1_loc
(
loc
,
code
,
TREE_TYPE
(
x
),
op0
);
x
=
fold
(
x
);
x
=
fold_
build1_loc
(
loc
,
code
,
TREE_TYPE
(
x
),
op0
);
else
x
=
fold
(
x
);
/* Conversion of an out-of-range value has implementation-defined
behavior; the language considers it different from arithmetic
...
...
@@ -1976,9 +1976,9 @@ cp_fold (tree x)
op0
=
cp_fold
(
TREE_OPERAND
(
x
,
0
));
if
(
op0
!=
TREE_OPERAND
(
x
,
0
))
x
=
build1_loc
(
loc
,
code
,
TREE_TYPE
(
x
),
op0
);
x
=
fold
(
x
);
x
=
fold_
build1_loc
(
loc
,
code
,
TREE_TYPE
(
x
),
op0
);
else
x
=
fold
(
x
);
gcc_assert
(
TREE_CODE
(
x
)
!=
COND_EXPR
||
!
VOID_TYPE_P
(
TREE_TYPE
(
TREE_OPERAND
(
x
,
0
))));
...
...
@@ -2048,9 +2048,9 @@ cp_fold (tree x)
op0
=
build_empty_stmt
(
loc
);
if
(
op0
!=
TREE_OPERAND
(
x
,
0
)
||
op1
!=
TREE_OPERAND
(
x
,
1
))
x
=
build2_loc
(
loc
,
code
,
TREE_TYPE
(
x
),
op0
,
op1
);
x
=
fold
(
x
);
x
=
fold_
build2_loc
(
loc
,
code
,
TREE_TYPE
(
x
),
op0
,
op1
);
else
x
=
fold
(
x
);
if
(
TREE_CODE
(
x
)
==
COMPOUND_EXPR
&&
TREE_OPERAND
(
x
,
0
)
==
NULL_TREE
&&
TREE_OPERAND
(
x
,
1
))
...
...
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