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
dba99244
Commit
dba99244
authored
Jan 19, 2018
by
Marek Polacek
Committed by
Marek Polacek
Jan 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* constexpr.c (fold_simple): Simplify.
From-SVN: r256899
parent
2af64836
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
gcc/cp/ChangeLog
+4
-0
gcc/cp/constexpr.c
+5
-6
No files found.
gcc/cp/ChangeLog
View file @
dba99244
2018-01-19 Marek Polacek <polacek@redhat.com>
* constexpr.c (fold_simple): Simplify.
2018-01-18 Jason Merrill <jason@redhat.com>
2018-01-18 Jason Merrill <jason@redhat.com>
PR c++/83714
PR c++/83714
...
...
gcc/cp/constexpr.c
View file @
dba99244
...
@@ -4931,22 +4931,21 @@ fold_simple_1 (tree t)
...
@@ -4931,22 +4931,21 @@ fold_simple_1 (tree t)
}
}
/* If T is a simple constant expression, returns its simplified value.
/* If T is a simple constant expression, returns its simplified value.
Otherwise returns T. In contrast to maybe_constant_value
do
we
Otherwise returns T. In contrast to maybe_constant_value we
simplify only few operations on constant-expressions, and we don't
simplify only few operations on constant-expressions, and we don't
try to simplify constexpressions. */
try to simplify constexpressions. */
tree
tree
fold_simple
(
tree
t
)
fold_simple
(
tree
t
)
{
{
tree
r
=
NULL_TREE
;
if
(
processing_template_decl
)
if
(
processing_template_decl
)
return
t
;
return
t
;
r
=
fold_simple_1
(
t
);
tree
r
=
fold_simple_1
(
t
);
if
(
!
r
)
if
(
r
)
r
=
t
;
r
eturn
r
;
return
r
;
return
t
;
}
}
/* If T is a constant expression, returns its reduced value.
/* If T is a constant expression, returns its reduced value.
...
...
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