aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-11-03 06:58:48 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-11-03 06:58:48 +0000
commit5fa38924e774261d06a2a0dd2306f2d8c9342c82 (patch)
tree27b392035d0d6ee640b1682fe4ae8be1de4e54d4 /gcc
parent9581dc651f0dc5a2496e4536d164c57d37fe0723 (diff)
downloadgcc-5fa38924e774261d06a2a0dd2306f2d8c9342c82.zip
gcc-5fa38924e774261d06a2a0dd2306f2d8c9342c82.tar.gz
gcc-5fa38924e774261d06a2a0dd2306f2d8c9342c82.tar.bz2
* decl.c (grokfndecl): Remove dead code.
From-SVN: r30368
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/decl.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 15e22e4..fcf01dd 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,7 @@
1999-11-02 Mark Mitchell <mark@codesourcery.com>
+ * decl.c (grokfndecl): Remove dead code.
+
* dump.c (dequeue_and_dump): Fix thinko for catch-clauses.
1999-11-02 Scott Snyder <snyder@fnal.gov>
@@ -14648,4 +14650,4 @@ Wed May 14 19:08:28 1997 Mike Stump <mrs@cygnus.com>
(finish_function): Put the base init code for constructors just
after the parm cleanup insns.
(struct cp_function): Add last_parm_cleanup_insn.
- (pu \ No newline at end of file
+ (pu
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 14770e2..40d1396 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -8455,9 +8455,6 @@ grokfndecl (ctype, type, declarator, orig_declarator, virtualp, flags, quals,
if (check < 0)
return decl;
- if (check && funcdef_flag)
- DECL_INITIAL (decl) = error_mark_node;
-
if (flags == NO_SPECIAL && ctype && constructor_name (cname) == declarator)
{
tree tmp;