Commit f7ca2fe7 by Richard Kenner

(hack_method_prototype): Set DECL_CONTEXT of parms.

From-SVN: r9953
parent c816db88
...@@ -2925,6 +2925,7 @@ hack_method_prototype (nst_methods, tmp_decl) ...@@ -2925,6 +2925,7 @@ hack_method_prototype (nst_methods, tmp_decl)
tree tmp_decl; tree tmp_decl;
{ {
tree parms; tree parms;
tree parm;
/* Hack to avoid problem with static typing of self arg. */ /* Hack to avoid problem with static typing of self arg. */
TREE_SET_CODE (nst_methods, CLASS_METHOD_DECL); TREE_SET_CODE (nst_methods, CLASS_METHOD_DECL);
...@@ -2953,6 +2954,9 @@ hack_method_prototype (nst_methods, tmp_decl) ...@@ -2953,6 +2954,9 @@ hack_method_prototype (nst_methods, tmp_decl)
DECL_RESULT (tmp_decl) = build_decl (RESULT_DECL, 0, restype); DECL_RESULT (tmp_decl) = build_decl (RESULT_DECL, 0, restype);
} }
for (parm = DECL_ARGUMENTS (tmp_decl); parm; parm = TREE_CHAIN (parm))
DECL_CONTEXT (parm) = tmp_decl;
init_function_start (tmp_decl, "objc-act", 0); init_function_start (tmp_decl, "objc-act", 0);
/* Typically called from expand_function_start for function definitions. */ /* Typically called from expand_function_start for function definitions. */
......
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