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
dc500fa1
Commit
dc500fa1
authored
Mar 16, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_expr, case PLACEHOLDER_EXPR): Refine which object is picked.
From-SVN: r13718
parent
ab162578
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
14 deletions
+25
-14
gcc/expr.c
+25
-14
No files found.
gcc/expr.c
View file @
dc500fa1
...
...
@@ -5100,22 +5100,33 @@ expand_expr (exp, target, tmode, modifier)
further information, see tree.def. */
if
(
placeholder_list
)
{
tree
object
;
tree
need_type
=
TYPE_MAIN_VARIANT
(
type
);
tree
object
=
0
;
tree
old_list
=
placeholder_list
;
tree
elt
;
for
(
object
=
TREE_PURPOSE
(
placeholder_list
);
(
TYPE_MAIN_VARIANT
(
TREE_TYPE
(
object
))
!=
TYPE_MAIN_VARIANT
(
type
))
&&
(
TREE_CODE_CLASS
(
TREE_CODE
(
object
))
==
'r'
||
TREE_CODE_CLASS
(
TREE_CODE
(
object
))
==
'1'
||
TREE_CODE_CLASS
(
TREE_CODE
(
object
))
==
'2'
||
TREE_CODE_CLASS
(
TREE_CODE
(
object
))
==
'e'
);
object
=
TREE_OPERAND
(
object
,
0
))
;
if
(
object
!=
0
&&
(
TYPE_MAIN_VARIANT
(
TREE_TYPE
(
object
))
==
TYPE_MAIN_VARIANT
(
type
)))
/* See if the object is the type that we want. Then see if
the operand of any reference is the type we want. */
if
((
TYPE_MAIN_VARIANT
(
TREE_TYPE
(
TREE_PURPOSE
(
placeholder_list
)))
==
need_type
))
object
=
TREE_PURPOSE
(
placeholder_list
);
/* Find the innermost reference that is of the type we want. */
for
(
elt
=
TREE_PURPOSE
(
placeholder_list
);
elt
!=
0
&&
(
TREE_CODE_CLASS
(
TREE_CODE
(
elt
))
==
'r'
||
TREE_CODE_CLASS
(
TREE_CODE
(
elt
))
==
'1'
||
TREE_CODE_CLASS
(
TREE_CODE
(
elt
))
==
'2'
||
TREE_CODE_CLASS
(
TREE_CODE
(
elt
))
==
'e'
);
elt
=
((
TREE_CODE
(
elt
)
==
COMPOUND_EXPR
||
TREE_CODE
(
elt
)
==
COND_EXPR
)
?
TREE_OPERAND
(
elt
,
1
)
:
TREE_OPERAND
(
elt
,
0
)))
if
(
TREE_CODE_CLASS
(
TREE_CODE
(
elt
))
==
'r'
&&
(
TYPE_MAIN_VARIANT
(
TREE_TYPE
(
TREE_OPERAND
(
elt
,
0
)))
==
need_type
))
object
=
TREE_OPERAND
(
elt
,
0
);
if
(
object
!=
0
)
{
/* Expand this object skipping the list entries before
it was found in case it is also a PLACEHOLDER_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