diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-06-14 17:32:36 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-06-14 17:32:36 -0400 |
commit | f7ca2fe71eec8d63b543403751db9649b6f4016f (patch) | |
tree | a5e5f1aeb890f803f44e91d1717bf62f00cdb36d | |
parent | c816db88c31a93b91dfeed2431b0928eefc89e08 (diff) | |
download | gcc-f7ca2fe71eec8d63b543403751db9649b6f4016f.zip gcc-f7ca2fe71eec8d63b543403751db9649b6f4016f.tar.gz gcc-f7ca2fe71eec8d63b543403751db9649b6f4016f.tar.bz2 |
(hack_method_prototype): Set DECL_CONTEXT of parms.
From-SVN: r9953
-rw-r--r-- | gcc/objc/objc-act.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index e0dfcd8..76ba930 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -2925,6 +2925,7 @@ hack_method_prototype (nst_methods, tmp_decl) tree tmp_decl; { tree parms; + tree parm; /* Hack to avoid problem with static typing of self arg. */ TREE_SET_CODE (nst_methods, CLASS_METHOD_DECL); @@ -2953,6 +2954,9 @@ hack_method_prototype (nst_methods, tmp_decl) 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); /* Typically called from expand_function_start for function definitions. */ |