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
883fff6c
Commit
883fff6c
authored
Oct 26, 2010
by
Jason Merrill
Committed by
Jason Merrill
Oct 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree.c (stabilize_expr): Handle xvalues properly.
From-SVN: r165969
parent
2dfa30b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
gcc/cp/ChangeLog
+2
-0
gcc/cp/tree.c
+7
-2
No files found.
gcc/cp/ChangeLog
View file @
883fff6c
2010
-
10
-
26
Jason
Merrill
<
jason
@redhat
.
com
>
*
tree
.
c
(
stabilize_expr
)
:
Handle
xvalues
properly
.
*
call
.
c
(
build_over_call
)
:
Use
argarray
[
0
]
for
'
this
'
argument
.
*
decl
.
c
(
finish_function
)
:
Don
'
t
look
at
function_depth
.
...
...
gcc/cp/tree.c
View file @
883fff6c
...
...
@@ -3018,18 +3018,23 @@ stabilize_expr (tree exp, tree* initp)
if
(
!
TREE_SIDE_EFFECTS
(
exp
))
init_expr
=
NULL_TREE
;
else
if
(
!
real_lvalue_p
(
exp
)
||
!
TYPE_NEEDS_CONSTRUCTING
(
TREE_TYPE
(
exp
)))
/* There are no expressions with REFERENCE_TYPE, but there can be call
arguments with such a type; just treat it as a pointer. */
else
if
(
TREE_CODE
(
TREE_TYPE
(
exp
))
==
REFERENCE_TYPE
||
!
lvalue_or_rvalue_with_address_p
(
exp
))
{
init_expr
=
get_target_expr
(
exp
);
exp
=
TARGET_EXPR_SLOT
(
init_expr
);
}
else
{
bool
xval
=
!
real_lvalue_p
(
exp
);
exp
=
cp_build_addr_expr
(
exp
,
tf_warning_or_error
);
init_expr
=
get_target_expr
(
exp
);
exp
=
TARGET_EXPR_SLOT
(
init_expr
);
exp
=
cp_build_indirect_ref
(
exp
,
RO_NULL
,
tf_warning_or_error
);
if
(
xval
)
exp
=
move
(
exp
);
}
*
initp
=
init_expr
;
...
...
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