Commit 62cbbe84 by Jakub Jelinek Committed by Jakub Jelinek

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
parent 908a2235
2007-11-27 Jakub Jelinek <jakub@redhat.com> 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 PR c++/34213
* tree.c (decl_linkage): Static data members and static member * tree.c (decl_linkage): Static data members and static member
functions in anonymous ns classes are lk_external. functions in anonymous ns classes are lk_external.
......
...@@ -481,6 +481,7 @@ use_thunk (tree thunk_fndecl, bool emit_p) ...@@ -481,6 +481,7 @@ use_thunk (tree thunk_fndecl, bool emit_p)
argarray[i] = a; argarray[i] = a;
t = build_call_a (alias, i, argarray); t = build_call_a (alias, i, argarray);
CALL_FROM_THUNK_P (t) = 1; CALL_FROM_THUNK_P (t) = 1;
CALL_CANNOT_INLINE_P (t) = 1;
if (VOID_TYPE_P (TREE_TYPE (t))) if (VOID_TYPE_P (TREE_TYPE (t)))
finish_expr_stmt (t); finish_expr_stmt (t);
......
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