projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c816db8
)
(hack_method_prototype): Set DECL_CONTEXT of parms.
author
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 14 Jun 1995 21:32:36 +0000
(17:32 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 14 Jun 1995 21:32:36 +0000
(17:32 -0400)
From-SVN: r9953
gcc/objc/objc-act.c
patch
|
blob
|
history
diff --git
a/gcc/objc/objc-act.c
b/gcc/objc/objc-act.c
index e0dfcd83b3bf2d05273927cab48fc6ce5b7421f7..76ba930704e8f8b1c1b2bd151d70af07bd13637d 100644
(file)
--- 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. */