middle-end/114599 - fix bitmap allocation for check_ifunc_callee_symtab_nodes
commit9ab8fdfeef5b1a47b358e08a98177b2fad65fed9
authorRichard Biener <rguenther@suse.de>
Fri, 5 Apr 2024 08:16:41 +0000 (5 10:16 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 5 Apr 2024 09:13:21 +0000 (5 11:13 +0200)
tree729324d0c850707109c6c4e73ccfeb9df9813c08
parenteffd947fcc2bbe0dfbc7d470eab4bc65bd9b46c8
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.cc (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.
gcc/symtab.cc