OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1397da
)
(expand_expr, case OFFSET_REF): Avoid using build_{unary,binary}_op
author
kenner
<kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Apr 1993 10:56:05 +0000
(10:56 +0000)
committer
kenner
<kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Apr 1993 10:56:05 +0000
(10:56 +0000)
since the calling sequences depend on the front-end.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4195
138bc75d
-0d04-0410-961f-
82ee72b054a4
gcc/expr.c
patch
|
blob
|
history
diff --git
a/gcc/expr.c
b/gcc/expr.c
index
95a046b
..
b0e422b
100644
(file)
--- a/
gcc/expr.c
+++ b/
gcc/expr.c
@@
-3955,7
+3955,7
@@
expand_expr (exp, target, tmode, modifier)
case OFFSET_REF:
{
- tree base = build
_unary_op (ADDR_EXPR, TREE_OPERAND (exp, 0), 0
);
+ tree base = build
1 (ADDR_EXPR, type, TREE_OPERAND (exp, 0)
);
tree addr = build (PLUS_EXPR, type, base, TREE_OPERAND (exp, 1));
op0 = expand_expr (addr, NULL_RTX, VOIDmode, EXPAND_SUM);
temp = gen_rtx (MEM, mode, memory_address (mode, op0));