diff options
author | Mike Stump <mrs@gcc.gnu.org> | 1995-06-19 22:02:30 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 1995-06-19 22:02:30 +0000 |
commit | e206854a7a4ca6b6f8892ca01b1d74be0ca19cfc (patch) | |
tree | d53bc5bb71065b066da15cc6b8721cfac79d8471 /gcc | |
parent | 7ea426fe97833f6d4b8fc0f5b5102a3c059b506b (diff) | |
download | gcc-e206854a7a4ca6b6f8892ca01b1d74be0ca19cfc.zip gcc-e206854a7a4ca6b6f8892ca01b1d74be0ca19cfc.tar.gz gcc-e206854a7a4ca6b6f8892ca01b1d74be0ca19cfc.tar.bz2 |
Will bring over with next merge.
From-SVN: r10013
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/decl.c | 20 |
2 files changed, 6 insertions, 19 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index f380929..a5db235 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,8 +1,3 @@ -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) * Make-lang.in (DEMANGLER_PROG): Add LIBS. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 4dfff7e..1cb9a4e 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -11206,24 +11206,16 @@ start_function (declspecs, declarator, raises, pre_parsed_p) we keep the consistency between `current_class_type' and `current_class_decl'. */ tree t = last_function_parms; + int i = suspend_momentary (); my_friendly_assert (t != NULL_TREE && TREE_CODE (t) == PARM_DECL, 162); - if (TREE_CODE (TREE_TYPE (t)) == POINTER_TYPE) - { - int i = suspend_momentary (); - - /* Fool build_indirect_ref. */ - 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; - + /* Fool build_indirect_ref. */ + current_class_decl = NULL_TREE; + C_C_D = build_indirect_ref (t, NULL_PTR); + current_class_decl = t; + resume_momentary (i); } } else |