mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-31 09:20:44 +08:00
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
This commit is contained in:
parent
3d1c878854
commit
612164eb46
@ -1,3 +1,8 @@
|
||||
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;
|
||||
|
@ -1,3 +1,7 @@
|
||||
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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user