Re: [PATCH] libgccjit: Fix GGC segfault when using -flto

2024-01-10 Thread David Malcolm
On Wed, 2024-01-10 at 10:27 -0500, Antoni Boucher wrote: > On Wed, 2024-01-10 at 10:19 -0500, David Malcolm wrote: > > On Mon, 2023-12-11 at 19:20 -0500, Antoni Boucher wrote: > > > I'm not sure how to do this. I tried the following commands, but > > > this > > > fails even on master: > > > > > >

Re: [PATCH] libgccjit: Fix GGC segfault when using -flto

2024-01-10 Thread Antoni Boucher
On Wed, 2024-01-10 at 10:19 -0500, David Malcolm wrote: > On Mon, 2023-12-11 at 19:20 -0500, Antoni Boucher wrote: > > I'm not sure how to do this. I tried the following commands, but > > this > > fails even on master: > > > > ../../gcc/configure --enable-host-shared --enable- > > languages=c,jit,

Re: [PATCH] libgccjit: Fix GGC segfault when using -flto

2024-01-10 Thread David Malcolm
On Mon, 2023-12-11 at 19:20 -0500, Antoni Boucher wrote: > I'm not sure how to do this. I tried the following commands, but this > fails even on master: > > ../../gcc/configure --enable-host-shared --enable- > languages=c,jit,c++,fortran,objc,lto --enable-checking=release -- > disable-werror --pre

Re: [PATCH] libgccjit: Fix GGC segfault when using -flto

2023-12-11 Thread Antoni Boucher
I'm not sure how to do this. I tried the following commands, but this fails even on master: ../../gcc/configure --enable-host-shared --enable- languages=c,jit,c++,fortran,objc,lto --enable-checking=release -- disable-werror --prefix=/opt/gcc make bootstrap -j24 make -k check -j24 >From what I ca

Re: [PATCH] libgccjit: Fix GGC segfault when using -flto

2023-12-01 Thread David Malcolm
On Thu, 2023-11-30 at 17:13 -0500, Antoni Boucher wrote: > Here's the updated patch. > The failure was due to the test being in the test array while it > should > not have been there since it changes the context. Thanks for the updated patch. Did you do a full bootstrap and regression test with t

Re: [PATCH] libgccjit: Fix GGC segfault when using -flto

2023-11-30 Thread Antoni Boucher
ing_bitfield: result is NULL >  FAIL: test-combination.c.exe killed: 997638 exp16 0 0 CHILDKILLED > SIGABRT SIGABRT > > > > > BTW, we shouldn't add test-ggc-bugfix to since it adds options to > > the > > context: this would affect all the other tests. >

Re: [PATCH] libgccjit: Fix GGC segfault when using -flto

2023-11-12 Thread David Malcolm
On Fri, 2023-11-10 at 18:14 -0500, David Malcolm wrote: > On Fri, 2023-11-10 at 11:02 -0500, Antoni Boucher wrote: > > Hi. > > This patch fixes the segfault when using -flto with libgccjit (bug > > 111396). > > > > You mentioned in bugzilla that this didn't fix the reproducer for > > you, > > Rer

Re: [PATCH] libgccjit: Fix GGC segfault when using -flto

2023-11-10 Thread David Malcolm
On Fri, 2023-11-10 at 11:02 -0500, Antoni Boucher wrote: > Hi. > This patch fixes the segfault when using -flto with libgccjit (bug > 111396). > > You mentioned in bugzilla that this didn't fix the reproducer for > you, Rereading https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111396 it looks like a

[PATCH] libgccjit: Fix GGC segfault when using -flto

2023-11-10 Thread Antoni Boucher
ucher Date: Fri, 10 Nov 2023 09:52:32 -0500 Subject: [PATCH] libgccjit: Fix GGC segfault when using -flto gcc/ChangeLog: PR jit/111396 * ipa-fnsummary.cc (ipa_fnsummary_cc_finalize): Call ipa_free_size_summary. * ipa-icf.cc (ipa_icf_cc_finalize): New function. * ipa-profile.cc (ipa_profi