Commit 0cc2105e by Jason Merrill

revert

From-SVN: r33531
parent a2ee8430
...@@ -2,11 +2,6 @@ ...@@ -2,11 +2,6 @@
* decl.c (grok_op_properties): Add an extra check of argtypes. * decl.c (grok_op_properties): Add an extra check of argtypes.
2000-04-28 Jason Merrill <jason@casey.cygnus.com>
* optimize.c (initialize_inlined_parameters): Call
c_apply_type_quals_to_decl. Set DECL_INITIAL.
2000-04-27 Mark Mitchell <mark@codesourcery.com> 2000-04-27 Mark Mitchell <mark@codesourcery.com>
* optimize.c (copy_body_r): Use STRIP_TYPE_NOPS when copying * optimize.c (copy_body_r): Use STRIP_TYPE_NOPS when copying
......
...@@ -419,8 +419,6 @@ initialize_inlined_parameters (id, args, fn) ...@@ -419,8 +419,6 @@ initialize_inlined_parameters (id, args, fn)
/* Make an equivalent VAR_DECL. */ /* Make an equivalent VAR_DECL. */
var = copy_decl_for_inlining (p, fn, VARRAY_TREE (id->fns, 0)); var = copy_decl_for_inlining (p, fn, VARRAY_TREE (id->fns, 0));
c_apply_type_quals_to_decl (TYPE_QUALS (p), var);
/* Register the VAR_DECL as the equivalent for the PARM_DECL; /* Register the VAR_DECL as the equivalent for the PARM_DECL;
that way, when the PARM_DECL is encountered, it will be that way, when the PARM_DECL is encountered, it will be
automatically replaced by the VAR_DECL. */ automatically replaced by the VAR_DECL. */
...@@ -432,8 +430,6 @@ initialize_inlined_parameters (id, args, fn) ...@@ -432,8 +430,6 @@ initialize_inlined_parameters (id, args, fn)
this will not result in an extra copy: the TARGET_EXPR this will not result in an extra copy: the TARGET_EXPR
representing the argument will be bound to VAR, and the representing the argument will be bound to VAR, and the
object will be constructed in VAR. */ object will be constructed in VAR. */
if (! TYPE_NEEDS_CONSTRUCTING (TREE_TYPE (p)))
DECL_INITIAL (var) = TREE_VALUE (a);
init_stmt = build_min_nt (EXPR_STMT, init_stmt = build_min_nt (EXPR_STMT,
build (INIT_EXPR, TREE_TYPE (p), build (INIT_EXPR, TREE_TYPE (p),
var, value)); var, value));
......
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