Commit e206854a by Mike Stump

Will bring over with next merge.

From-SVN: r10013
parent 7ea426fe
Mon Jun 19 12:54:15 1995 Gerald Baumgartner (gb@alexander.cs.purdue.edu)
* decl.c (start_function): If current_class_decl is a signature
pointer, don't dereference it but set C_C_D to current_class_decl.
Fri Jun 16 15:07:29 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) Fri Jun 16 15:07:29 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* Make-lang.in (DEMANGLER_PROG): Add LIBS. * Make-lang.in (DEMANGLER_PROG): Add LIBS.
......
...@@ -11206,24 +11206,16 @@ start_function (declspecs, declarator, raises, pre_parsed_p) ...@@ -11206,24 +11206,16 @@ start_function (declspecs, declarator, raises, pre_parsed_p)
we keep the consistency between `current_class_type' we keep the consistency between `current_class_type'
and `current_class_decl'. */ and `current_class_decl'. */
tree t = last_function_parms; tree t = last_function_parms;
int i = suspend_momentary ();
my_friendly_assert (t != NULL_TREE my_friendly_assert (t != NULL_TREE
&& TREE_CODE (t) == PARM_DECL, 162); && TREE_CODE (t) == PARM_DECL, 162);
if (TREE_CODE (TREE_TYPE (t)) == POINTER_TYPE) /* Fool build_indirect_ref. */
{ current_class_decl = NULL_TREE;
int i = suspend_momentary (); C_C_D = build_indirect_ref (t, NULL_PTR);
current_class_decl = t;
/* Fool build_indirect_ref. */ resume_momentary (i);
current_class_decl = NULL_TREE;
C_C_D = build_indirect_ref (t, NULL_PTR);
current_class_decl = t;
resume_momentary (i);
}
else
/* We're having a signature pointer here. */
C_C_D = current_class_decl = t;
} }
} }
else else
......
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