public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug jit/111396] New: Segfault when using -flto with libgccjit
@ 2023-09-12 19:18 bouanto at zoho dot com
2023-09-13 14:14 ` [Bug jit/111396] " dmalcolm at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: bouanto at zoho dot com @ 2023-09-12 19:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111396
Bug ID: 111396
Summary: Segfault when using -flto with libgccjit
Product: gcc
Version: 13.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: jit
Assignee: dmalcolm at gcc dot gnu.org
Reporter: bouanto at zoho dot com
Target Milestone: ---
Created attachment 55888
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55888&action=edit
Reproducer for part of the bug
Hi.
There's a bug when compiling multiple times with -flto.
I attached a reproducer for a part of the bug.
(The other part of the bug should be fixed by
https://gcc.gnu.org/pipermail/jit/2023q3/001668.html.)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug jit/111396] Segfault when using -flto with libgccjit
2023-09-12 19:18 [Bug jit/111396] New: Segfault when using -flto with libgccjit bouanto at zoho dot com
@ 2023-09-13 14:14 ` dmalcolm at gcc dot gnu.org
2023-11-10 16:02 ` bouanto at zoho dot com
2024-01-10 22:18 ` cvs-commit at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2023-09-13 14:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111396
David Malcolm <dmalcolm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2023-09-13
Status|UNCONFIRMED |ASSIGNED
--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Thanks; I can reproduce the ICE with trunk, both with and without the patch you
reference. Taking a look...
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug jit/111396] Segfault when using -flto with libgccjit
2023-09-12 19:18 [Bug jit/111396] New: Segfault when using -flto with libgccjit bouanto at zoho dot com
2023-09-13 14:14 ` [Bug jit/111396] " dmalcolm at gcc dot gnu.org
@ 2023-11-10 16:02 ` bouanto at zoho dot com
2024-01-10 22:18 ` cvs-commit at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: bouanto at zoho dot com @ 2023-11-10 16:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111396
--- Comment #2 from Antoni <bouanto at zoho dot com> ---
Created attachment 56554
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56554&action=edit
Patch fixing the issue
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug jit/111396] Segfault when using -flto with libgccjit
2023-09-12 19:18 [Bug jit/111396] New: Segfault when using -flto with libgccjit bouanto at zoho dot com
2023-09-13 14:14 ` [Bug jit/111396] " dmalcolm at gcc dot gnu.org
2023-11-10 16:02 ` bouanto at zoho dot com
@ 2024-01-10 22:18 ` cvs-commit at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-01-10 22:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111396
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by David Malcolm <dmalcolm@gcc.gnu.org>:
https://gcc.gnu.org/g:8415bceea9d3ca86adc00ae8ad92deaec0457dd1
commit r14-7117-g8415bceea9d3ca86adc00ae8ad92deaec0457dd1
Author: Antoni Boucher <bouanto@zoho.com>
Date: Wed Jan 10 17:13:20 2024 -0500
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_profile_cc_finalize): New function.
* ipa-prop.cc (ipa_prop_cc_finalize): New function.
* ipa-prop.h (ipa_prop_cc_finalize): New function.
* ipa-sra.cc (ipa_sra_cc_finalize): New function.
* ipa-utils.h (ipa_profile_cc_finalize, ipa_icf_cc_finalize,
ipa_sra_cc_finalize): New functions.
* toplev.cc (toplev::finalize): Call ipa_icf_cc_finalize,
ipa_prop_cc_finalize, ipa_profile_cc_finalize and
ipa_sra_cc_finalize
Include ipa-utils.h.
gcc/testsuite/ChangeLog:
PR jit/111396
* jit.dg/all-non-failing-tests.h: Add note about test-ggc-bugfix.
* jit.dg/test-ggc-bugfix.c: New test.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-01-10 22:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-12 19:18 [Bug jit/111396] New: Segfault when using -flto with libgccjit bouanto at zoho dot com
2023-09-13 14:14 ` [Bug jit/111396] " dmalcolm at gcc dot gnu.org
2023-11-10 16:02 ` bouanto at zoho dot com
2024-01-10 22:18 ` cvs-commit at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).