]> 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>
Sun, 14 Apr 2024 19:57:40 +0000 (12:57 -0700)
committerH.J. Lu <(no_default)>
Mon, 15 Apr 2024 11:22:47 +0000 (04:22 -0700)
commite534b2280c8522a67532417681a0340bcc5e1c9b
tree79f87635ac71c5f45fc54642af0ca3c894345048
parentabe3a80aa2d6d53cc9b8c9f7c531e065451d5b6e
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.

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