Commit b2115575 by Jason Merrill Committed by Jason Merrill

function.c (assign_parms): Don't put args of inline functions into registers when not optimizing.

        * function.c (assign_parms): Don't put args of inline functions
        into registers when not optimizing.
        * cp/decl2.c (grokclassfn): Don't set DECL_REGISTER on 'this'.

From-SVN: r49131
parent 6bacc7b0
2002-01-23 Jason Merrill <jason@redhat.com>
* function.c (assign_parms): Don't put args of inline functions
into registers when not optimizing.
2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
* config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
......
2002-01-22 Jason Merrill <jason@redhat.com>
* decl2.c (grokclassfn): Don't set DECL_REGISTER on 'this'.
* parse.y (function_body): Suppress the block for the outermost
curly braces.
* decl.c (pushdecl): Don't try to skip it.
......
......@@ -983,10 +983,6 @@ grokclassfn (ctype, function, flags, quals)
qual_type = cp_build_qualified_type (type, this_quals);
parm = build_artificial_parm (this_identifier, qual_type);
c_apply_type_quals_to_decl (this_quals, parm);
/* We can make this a register, so long as we don't
accidentally complain if someone tries to take its address. */
DECL_REGISTER (parm) = 1;
TREE_CHAIN (parm) = last_function_parms;
last_function_parms = parm;
}
......
......@@ -4650,8 +4650,7 @@ assign_parms (fndecl)
SET_DECL_RTL (parm, stack_parm);
}
else if (! ((! optimize
&& ! DECL_REGISTER (parm)
&& ! DECL_INLINE (fndecl))
&& ! DECL_REGISTER (parm))
|| TREE_SIDE_EFFECTS (parm)
/* If -ffloat-store specified, don't put explicit
float variables into registers. */
......@@ -4751,8 +4750,7 @@ assign_parms (fndecl)
can safely live in a register, put it in one. */
if (passed_pointer && TYPE_MODE (TREE_TYPE (parm)) != BLKmode
&& ! ((! optimize
&& ! DECL_REGISTER (parm)
&& ! DECL_INLINE (fndecl))
&& ! DECL_REGISTER (parm))
|| TREE_SIDE_EFFECTS (parm)
/* If -ffloat-store specified, don't put explicit
float variables into registers. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment