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
69e09400
Commit
69e09400
authored
Oct 28, 2014
by
Jason Merrill
Committed by
Jason Merrill
Oct 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* constexpr.c (cxx_eval_outermost_constant_expr): Tweak.
From-SVN: r216809
parent
3a21b777
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
gcc/cp/ChangeLog
+4
-0
gcc/cp/constexpr.c
+2
-2
No files found.
gcc/cp/ChangeLog
View file @
69e09400
2014-10-28 Jason Merrill <jason@redhat.com>
* constexpr.c (cxx_eval_outermost_constant_expr): Tweak.
2014-10-28 Andrew MacLeod <amacleod@redhat.com>
* call.c: Adjust include files.
...
...
gcc/cp/constexpr.c
View file @
69e09400
...
...
@@ -2756,8 +2756,6 @@ cxx_eval_outermost_constant_expr (tree t, bool allow_non_constant,
hash_map
<
tree
,
tree
>
map
;
ctx
.
values
=
&
map
;
tree
type
=
initialized_type
(
t
);
if
(
!
object
&&
TREE_CODE
(
t
)
==
TARGET_EXPR
)
object
=
TARGET_EXPR_SLOT
(
t
);
tree
r
=
t
;
if
(
AGGREGATE_TYPE_P
(
type
)
||
VECTOR_TYPE_P
(
type
))
{
...
...
@@ -2770,6 +2768,8 @@ cxx_eval_outermost_constant_expr (tree t, bool allow_non_constant,
initialized. */
ctx
.
ctor
=
build_constructor
(
type
,
NULL
);
CONSTRUCTOR_NO_IMPLICIT_ZERO
(
ctx
.
ctor
)
=
true
;
if
(
!
object
&&
TREE_CODE
(
t
)
==
TARGET_EXPR
)
object
=
TARGET_EXPR_SLOT
(
t
);
ctx
.
object
=
object
;
if
(
object
)
gcc_assert
(
same_type_ignoring_top_level_qualifiers_p
...
...
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