]> git.ipfire.org Git - thirdparty/gcc.git/commit
ipa: Initialize/release global obstack in process_new_functions [PR116068]
authorJakub Jelinek <jakub@redhat.com>
Wed, 15 Jan 2025 08:43:32 +0000 (09:43 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 15 Jan 2025 08:43:32 +0000 (09:43 +0100)
commitdd389c2549a4891e044c96b9298efa2a363c744a
treea17931f1f76b86aa64b288d5946f452a019eeed3
parent18f6bb9899209ccd41c476254d30596606c81dd7
ipa: Initialize/release global obstack in process_new_functions [PR116068]

Other spots in cgraphunit.cc already call bitmap_obstack_initialize (NULL);
before running a pass list and bitmap_obstack_release (NULL); after that,
while process_new_functions wasn't doing that and with the new r15-130
bitmap_alloc checking that results in ICE.

2025-01-15  Jakub Jelinek  <jakub@redhat.com>

PR ipa/116068
* cgraphunit.cc (symbol_table::process_new_functions): Call
bitmap_obstack_initialize (NULL); and bitmap_obstack_release (NULL)
around processing the functions.

* gcc.dg/graphite/pr116068.c: New test.
gcc/cgraphunit.cc
gcc/testsuite/gcc.dg/graphite/pr116068.c [new file with mode: 0644]