This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PR c++/83667] Fix tree_dump ICE


On 01/04/2018 03:55 AM, Rainer Orth wrote:
Hi Nathan,

This fixes a tree dumping ICE involving static thunk fns.  Copying the
thunked-to fn's context suffices.


The dump has

IPA function summary for void c::*.LLTHUNK0(...)/1

thanks.

does this patch work for you?

nathan

--
Nathan Sidwell
Index: testsuite/g++.dg/ipa/pr83667.C
===================================================================
--- testsuite/g++.dg/ipa/pr83667.C	(revision 256180)
+++ testsuite/g++.dg/ipa/pr83667.C	(working copy)
@@ -1,5 +1,7 @@
-/* { dg-options "-fdump-ipa-inline" } */
-// c++/83667 ICE dumping a static thunk
+// { dg-require-alias "" }
+// { dg-options "-fdump-ipa-inline" }
+// c++/83667 ICE dumping a static thunk when TARGET_USE_LOCAL_THUNK_ALIAS_P
+
 
 struct a
 {
@@ -20,4 +22,4 @@ struct c : a, b
 
 c c;
 
-// { dg-final { scan-ipa-dump "summary for void c::\\*.LTHUNK0" "inline" } }
+// { dg-final { scan-ipa-dump "summary for void c::\[^\\n\]*THUNK0" "inline" } }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]