From: Jakub Jelinek Date: Tue, 27 Nov 2007 21:50:20 +0000 (+0100) Subject: re PR tree-optimization/34181 (FAIL: g++.dg/opt/anchor1.C (internal compiler error)) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=62cbbe84cf173c2759c437610f051935663d3e64;p=gcc.git 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 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 37e7a3c2bf8..ea87688d276 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 2007-11-27 Jakub Jelinek + 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. diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 05e21ba97e7..3ef73fb8d04 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -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);