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
3207b172
Commit
3207b172
authored
Dec 25, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_expr, case CONSTRUCTOR): If have a target, don't build
constructor into memory. From-SVN: r6323
parent
307b821c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
gcc/expr.c
+7
-3
No files found.
gcc/expr.c
View file @
3207b172
...
...
@@ -4089,13 +4089,17 @@ expand_expr (exp, target, tmode, modifier)
expand_expr
(
TREE_VALUE
(
elt
),
const0_rtx
,
VOIDmode
,
0
);
return
const0_rtx
;
}
/* All elts simple constants => refer to a constant in memory. But
if this is a non-BLKmode mode, let it store a field at a time
since that should make a CONST_INT or CONST_DOUBLE when we
fold. If we are making an initializer and all operands are
constant, put it in memory as well. */
fold. Likewise, if we have a target we can use, it is best to
store directly into the target. If we are making an initializer and
all operands are constant, put it in memory as well. */
else
if
((
TREE_STATIC
(
exp
)
&&
(
mode
==
BLKmode
||
TREE_ADDRESSABLE
(
exp
)))
&&
((
mode
==
BLKmode
&&
!
(
target
!=
0
&&
safe_from_p
(
target
,
exp
)))
||
TREE_ADDRESSABLE
(
exp
)))
||
(
modifier
==
EXPAND_INITIALIZER
&&
TREE_CONSTANT
(
exp
)))
{
rtx
constructor
=
output_constant_def
(
exp
);
...
...
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