]> git.ipfire.org Git - thirdparty/gcc.git/commit
middle-end/114599 - fix bitmap allocation for check_ifunc_callee_symtab_nodes
authorRichard Biener <rguenther@suse.de>
Fri, 5 Apr 2024 08:16:41 +0000 (10:16 +0200)
committerH.J. Lu <(no_default)>
Mon, 15 Apr 2024 11:29:05 +0000 (04:29 -0700)
commit514c725ef54a9ad625491b814f7ed6a7028a865f
tree5b9581c5345a619f52e95b4a9ce13295129ced44
parent574d52a9b6e40a466b90f4810e72d3dd072d5160
middle-end/114599 - fix bitmap allocation for check_ifunc_callee_symtab_nodes

There's no default bitmap obstack during global CTORs, so allocate the
bitmap locally.

PR middle-end/114599
PR gcov-profile/114115
* symtab.c (ifunc_ref_map): Do not use auto_bitmap.
(is_caller_ifunc_resolver): Optimize bitmap_bit_p/bitmap_set_bit
pair.
(symtab_node::check_ifunc_callee_symtab_nodes): Properly
allocate ifunc_ref_map here.

(cherry picked from commit 9ab8fdfeef5b1a47b358e08a98177b2fad65fed9)
gcc/symtab.c