From: Jason Merrill Date: Tue, 16 Feb 1999 11:15:16 +0000 (-0500) Subject: decl.c (pushdecl): Remove dead code. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0c20d3d607573ae0f71bf1289f9ba1fd69225981;p=gcc.git decl.c (pushdecl): Remove dead code. * decl.c (pushdecl): Remove dead code. * decl2.c (finish_objects): Fix code I missed in previous change. From-SVN: r25242 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 8fb2e889d0e..d1d0d1ca504 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,11 @@ +1999-02-16 Kriang Lerdsuwanakij + + * decl.c (pushdecl): Remove dead code. + +1999-02-16 Jason Merrill + + * decl2.c (finish_objects): Fix code I missed in previous change. + 1999-02-13 Jason Merrill * decl.c (grokfndecl): Return NULL_TREE instead of error_mark_node. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 24dbfd108eb..e17b6f7222f 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -3554,8 +3554,7 @@ pushdecl (x) /* Type are looked up using the DECL_NAME, as that is what the rest of the compiler wants to use. */ if (TREE_CODE (x) == TYPE_DECL || TREE_CODE (x) == VAR_DECL - || TREE_CODE (x) == NAMESPACE_DECL || TREE_CODE (x) == TEMPLATE_TYPE_PARM - || TREE_CODE (x) == TEMPLATE_TEMPLATE_PARM) + || TREE_CODE (x) == NAMESPACE_DECL) name = DECL_NAME (x); if (name) diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 103974718db..260834377d9 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -2963,7 +2963,7 @@ finish_objects (method_type, initp) { char *fnname; - if (! initp) + if (initp == DEFAULT_INIT_PRIORITY) { tree list = (method_type == 'I' ? static_ctors : static_dtors);