aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2000-11-11 19:11:47 -0500
committerJason Merrill <jason@gcc.gnu.org>2000-11-11 19:11:47 -0500
commitd96a6d1a1c6c53816eef51a447c3e4899dd24df6 (patch)
tree49d6a4beae0ee6bca60387ac0194f98bde8ee221 /gcc/function.c
parent5696467825b85328f6b808fdc20c50c1ce97a60d (diff)
downloadgcc-d96a6d1a1c6c53816eef51a447c3e4899dd24df6.zip
gcc-d96a6d1a1c6c53816eef51a447c3e4899dd24df6.tar.gz
gcc-d96a6d1a1c6c53816eef51a447c3e4899dd24df6.tar.bz2
function.c (assign_parms): If TREE_ADDRESSABLE is set...
* function.c (assign_parms): If TREE_ADDRESSABLE is set, try to give the parm a register and then call put_var_into_stack. * stmt.c (expand_decl): Likewise. cp/ * typeck.c (mark_addressable): Don't call put_var_into_stack. From-SVN: r37396
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 98184ef..ece43d3 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -4610,8 +4610,6 @@ assign_parms (fndecl)
else if (! ((! optimize
&& ! DECL_REGISTER (parm)
&& ! DECL_INLINE (fndecl))
- /* layout_decl may set this. */
- || TREE_ADDRESSABLE (parm)
|| TREE_SIDE_EFFECTS (parm)
/* If -ffloat-store specified, don't put explicit
float variables into registers. */
@@ -4695,8 +4693,6 @@ assign_parms (fndecl)
&& ! ((! optimize
&& ! DECL_REGISTER (parm)
&& ! DECL_INLINE (fndecl))
- /* layout_decl may set this. */
- || TREE_ADDRESSABLE (parm)
|| TREE_SIDE_EFFECTS (parm)
/* If -ffloat-store specified, don't put explicit
float variables into registers. */
@@ -4865,6 +4861,9 @@ assign_parms (fndecl)
mark_reg_pointer (parmreg,
TYPE_ALIGN (TREE_TYPE (TREE_TYPE (parm))));
+ /* If something wants our address, try to use ADDRESSOF. */
+ if (TREE_ADDRESSABLE (parm))
+ put_var_into_stack (parm);
}
else
{