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
f107ee33
Commit
f107ee33
authored
Aug 04, 2015
by
Jason Merrill
Committed by
Jason Merrill
Aug 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree.c (build_target_expr): Copy the location from value.
From-SVN: r226580
parent
cb3582ef
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
gcc/cp/ChangeLog
+4
-0
gcc/cp/tree.c
+2
-0
No files found.
gcc/cp/ChangeLog
View file @
f107ee33
2015-08-04 Jason Merrill <jason@redhat.com>
* tree.c (build_target_expr): Copy the location from value.
2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
* parser.c (cp_parser_selection_statement): Move handling of
* parser.c (cp_parser_selection_statement): Move handling of
...
...
gcc/cp/tree.c
View file @
f107ee33
...
@@ -338,6 +338,8 @@ build_target_expr (tree decl, tree value, tsubst_flags_t complain)
...
@@ -338,6 +338,8 @@ build_target_expr (tree decl, tree value, tsubst_flags_t complain)
if
(
t
==
error_mark_node
)
if
(
t
==
error_mark_node
)
return
error_mark_node
;
return
error_mark_node
;
t
=
build4
(
TARGET_EXPR
,
type
,
decl
,
value
,
t
,
NULL_TREE
);
t
=
build4
(
TARGET_EXPR
,
type
,
decl
,
value
,
t
,
NULL_TREE
);
if
(
EXPR_HAS_LOCATION
(
value
))
SET_EXPR_LOCATION
(
t
,
EXPR_LOCATION
(
value
));
/* We always set TREE_SIDE_EFFECTS so that expand_expr does not
/* We always set TREE_SIDE_EFFECTS so that expand_expr does not
ignore the TARGET_EXPR. If there really turn out to be no
ignore the TARGET_EXPR. If there really turn out to be no
side-effects, then the optimizer should be able to get rid of
side-effects, then the optimizer should be able to get rid of
...
...
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