Commit 612164eb by Kriang Lerdsuwanakij Committed by Kriang Lerdsuwanakij

optimize.c (expand_call_inline): Don't walk subtrees of type nodes.


	* optimize.c (expand_call_inline): Don't walk subtrees of type
	nodes.

	* g++.old-deja/g++.other/inline19.c: Remove XFAIL.

From-SVN: r39873
parent 3d1c8788
2001-02-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* optimize.c (expand_call_inline): Don't walk subtrees of type
nodes.
2001-02-18 Mark Mitchell <mark@codesourcery.com>
* class.c (add_vcall_offset_vtbl_entries_1): Only add one entry
......
......@@ -673,6 +673,12 @@ expand_call_inline (tp, walk_subtrees, data)
return NULL_TREE;
}
if (TREE_CODE_CLASS (TREE_CODE (t)) == 't')
/* Because types were not copied in copy_body, CALL_EXPRs beneath
them should not be expanded. This can happen if the type is a
dynamic array type, for example. */
*walk_subtrees = 0;
/* From here on, we're only interested in CALL_EXPRs. */
if (TREE_CODE (t) != CALL_EXPR)
return NULL_TREE;
......
2001-02-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* g++.old-deja/g++.other/inline19.c: Remove XFAIL.
2001-02-16 Gabriel Dos Reis <gdr@codesourcery.com>
* g++.old-deja/g++.other/decl9.C: New test.
......
......@@ -2,7 +2,7 @@
// Origin: Scott Snyder <snyder@fnal.gov> via PR 1733.
// Special g++ Options: -O1
//
// crash test - XFAIL *-*-*
// crash test
struct TBtItem
{
......
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