Commit 0c20d3d6 by Jason Merrill

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
parent d2ceebd1
1999-02-16 Kriang Lerdsuwanakij <lerdsuwa@scf-fs.usc.edu>
* decl.c (pushdecl): Remove dead code.
1999-02-16 Jason Merrill <jason@yorick.cygnus.com>
* decl2.c (finish_objects): Fix code I missed in previous change.
1999-02-13 Jason Merrill <jason@yorick.cygnus.com>
* decl.c (grokfndecl): Return NULL_TREE instead of error_mark_node.
......
......@@ -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)
......
......@@ -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);
......
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