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
b74f5ff2
Commit
b74f5ff2
authored
Oct 01, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_expr, case COMPONENT_REF): If getting component of union of
variable size, propagate TARGET. From-SVN: r10415
parent
f29369b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
gcc/expr.c
+12
-2
No files found.
gcc/expr.c
View file @
b74f5ff2
...
...
@@ -4762,8 +4762,18 @@ expand_expr (exp, target, tmode, modifier)
/* In some cases, we will be offsetting OP0's address by a constant.
So get it as a sum, if possible. If we will be using it
directly in an insn, we validate it. */
op0
=
expand_expr
(
tem
,
NULL_RTX
,
VOIDmode
,
EXPAND_SUM
);
directly in an insn, we validate it.
If TEM's type is a union of variable size, pass TARGET to the inner
computation, since it will need a temporary and TARGET is known
to have to do. This occurs in unchecked conversion in Ada. */
op0
=
expand_expr
(
tem
,
(
TREE_CODE
(
TREE_TYPE
(
tem
))
==
UNION_TYPE
&&
(
TREE_CODE
(
TYPE_SIZE
(
TREE_TYPE
(
tem
)))
!=
INTEGER_CST
)
?
target
:
NULL_RTX
),
VOIDmode
,
EXPAND_SUM
);
/* If this is a constant, put it into a register if it is a
legitimate constant and memory if it isn't. */
...
...
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