]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR tree-optimization/34181 (FAIL: g++.dg/opt/anchor1.C (internal compiler error))
authorJakub Jelinek <jakub@redhat.com>
Tue, 27 Nov 2007 21:50:20 +0000 (22:50 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 27 Nov 2007 21:50:20 +0000 (22:50 +0100)
PR tree-optimization/34181
* method.c (use_thunk): Don't inline the call in the thunk.

From-SVN: r130474

gcc/cp/ChangeLog
gcc/cp/method.c

index 37e7a3c2bf80b608e4ea7915acacb481edf078a1..ea87688d276f618588bd49699b9844a195f0eab8 100644 (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.
index 05e21ba97e7b048e32228b38f175ae6b867170c3..3ef73fb8d0479b8b3231c2efd46f8e14ffc27b1c 100644 (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);