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
405f0da6
Commit
405f0da6
authored
May 06, 1996
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_expr, case INDIRECT_REF): Delete obsolete code
to special case a SAVE_EXPR operand. From-SVN: r11938
parent
0140d3ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
21 deletions
+2
-21
gcc/expr.c
+2
-21
No files found.
gcc/expr.c
View file @
405f0da6
...
@@ -5057,27 +5057,8 @@ expand_expr (exp, target, tmode, modifier)
...
@@ -5057,27 +5057,8 @@ expand_expr (exp, target, tmode, modifier)
tree
exp1
=
TREE_OPERAND
(
exp
,
0
);
tree
exp1
=
TREE_OPERAND
(
exp
,
0
);
tree
exp2
;
tree
exp2
;
/* A SAVE_EXPR as the address in an INDIRECT_EXPR is generated
op0
=
expand_expr
(
exp1
,
NULL_RTX
,
VOIDmode
,
EXPAND_SUM
);
for *PTR += ANYTHING where PTR is put inside the SAVE_EXPR.
op0
=
memory_address
(
mode
,
op0
);
This code has the same general effect as simply doing
expand_expr on the save expr, except that the expression PTR
is computed for use as a memory address. This means different
code, suitable for indexing, may be generated. */
if
(
TREE_CODE
(
exp1
)
==
SAVE_EXPR
&&
SAVE_EXPR_RTL
(
exp1
)
==
0
&&
TYPE_MODE
(
TREE_TYPE
(
exp1
))
==
ptr_mode
)
{
temp
=
expand_expr
(
TREE_OPERAND
(
exp1
,
0
),
NULL_RTX
,
VOIDmode
,
EXPAND_SUM
);
op0
=
memory_address
(
mode
,
temp
);
op0
=
copy_all_regs
(
op0
);
SAVE_EXPR_RTL
(
exp1
)
=
op0
;
}
else
{
op0
=
expand_expr
(
exp1
,
NULL_RTX
,
VOIDmode
,
EXPAND_SUM
);
op0
=
memory_address
(
mode
,
op0
);
}
temp
=
gen_rtx
(
MEM
,
mode
,
op0
);
temp
=
gen_rtx
(
MEM
,
mode
,
op0
);
/* If address was computed by addition,
/* If address was computed by addition,
...
...
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