re PR tree-optimization/34181 (FAIL: g++.dg/opt/anchor1.C (internal compiler error))

PR tree-optimization/34181
	* method.c (use_thunk): Don't inline the call in the thunk.

From-SVN: r130474
This commit is contained in:
Jakub Jelinek 2007-11-27 22:50:20 +01:00 committed by Jakub Jelinek
parent 908a223518
commit 62cbbe84cf
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2007-11-27 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/34181
* method.c (use_thunk): Don't inline the call in the thunk.
PR c++/34213
* tree.c (decl_linkage): Static data members and static member
functions in anonymous ns classes are lk_external.

View File

@ -481,6 +481,7 @@ use_thunk (tree thunk_fndecl, bool emit_p)
argarray[i] = a;
t = build_call_a (alias, i, argarray);
CALL_FROM_THUNK_P (t) = 1;
CALL_CANNOT_INLINE_P (t) = 1;
if (VOID_TYPE_P (TREE_TYPE (t)))
finish_expr_stmt (t);