aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2014-03-20 11:35:22 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2014-03-20 11:35:22 +0000
commit9ee5337dd54630e6f0b2d98dc104a8c05d24384d (patch)
tree54c489ab22247d4fa7fb01653d3a05e24e36c82e /gcc/cfgexpand.c
parent9964e8304b1ea841583e3aea27fdbc65281e0ed3 (diff)
downloadgcc-9ee5337dd54630e6f0b2d98dc104a8c05d24384d.zip
gcc-9ee5337dd54630e6f0b2d98dc104a8c05d24384d.tar.gz
gcc-9ee5337dd54630e6f0b2d98dc104a8c05d24384d.tar.bz2
calls.c (store_one_arg): Remove incorrect const qualification on the type of the temporary.
* 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. From-SVN: r208694
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r--gcc/cfgexpand.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index dd163a5..b7f6360 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -3105,15 +3105,11 @@ expand_return (tree retval)
&& (REG_P (result_rtl)
|| (GET_CODE (result_rtl) == PARALLEL)))
{
- /* Calculate the return value into a temporary (usually a pseudo
- reg). */
- tree ot = TREE_TYPE (DECL_RESULT (current_function_decl));
- tree nt = build_qualified_type (ot, TYPE_QUALS (ot) | TYPE_QUAL_CONST);
-
- val = assign_temp (nt, 0, 1);
+ /* Compute the return value into a temporary (usually a pseudo reg). */
+ val
+ = assign_temp (TREE_TYPE (DECL_RESULT (current_function_decl)), 0, 1);
val = expand_expr (retval_rhs, val, GET_MODE (val), EXPAND_NORMAL);
val = force_not_mem (val);
- /* Return the calculated value. */
expand_value_return (val);
}
else