summaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2014-03-20 11:35:22 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2014-03-20 11:35:22 +0000
commit9f495e8daa096022e2c4dac4028cea876f4ca5d2 (patch)
tree54c489ab22247d4fa7fb01653d3a05e24e36c82e /gcc/expr.c
parent57cb78c6d21258b0b5abf4598021ac52b32d8b89 (diff)
downloadgcc-9f495e8daa096022e2c4dac4028cea876f4ca5d2.tar.gz
* calls.c (store_one_arg): Remove incorrect const qualification on the
type of the temporary. * cfgexpand.c (expand_return): Likewise. * expr.c (expand_constructor): Likewise. (expand_expr_real_1): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208694 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index be62c539e25..2dcdfc26155 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -7867,11 +7867,7 @@ expand_constructor (tree exp, rtx target, enum expand_modifier modifier,
if (avoid_temp_mem)
return NULL_RTX;
- target
- = assign_temp (build_qualified_type (type, (TYPE_QUALS (type)
- | (TREE_READONLY (exp)
- * TYPE_QUAL_CONST))),
- TREE_ADDRESSABLE (exp), 1);
+ target = assign_temp (type, TREE_ADDRESSABLE (exp), 1);
}
store_constructor (exp, target, 0, int_expr_size (exp));
@@ -10088,10 +10084,7 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode,
and need be, put it there. */
else if (CONSTANT_P (op0) || (!MEM_P (op0) && must_force_mem))
{
- tree nt = build_qualified_type (TREE_TYPE (tem),
- (TYPE_QUALS (TREE_TYPE (tem))
- | TYPE_QUAL_CONST));
- memloc = assign_temp (nt, 1, 1);
+ memloc = assign_temp (TREE_TYPE (tem), 1, 1);
emit_move_insn (memloc, op0);
op0 = memloc;
mem_attrs_from_type = true;