middle-end/114604 - ranger allocates bitmap without initialized obstack
commitd76df699b8ff792575e9df4d214c21fed0ed3b6b
authorRichard Biener <rguenther@suse.de>
Mon, 8 Apr 2024 08:50:18 +0000 (8 10:50 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 9 Apr 2024 06:46:21 +0000 (9 08:46 +0200)
tree298e0396bfd7609efbd86e941617013078839fd6
parentddee4376d15ddde9280c9a6725ddd76bf33f2871
middle-end/114604 - ranger allocates bitmap without initialized obstack

The following fixes ranger bitmap allocation when invoked from IPA
context where the global bitmap obstack possibly isn't initialized.
Instead of trying to use one of the ranger obstacks the following
simply initializes the global bitmap obstack around an active ranger.

PR middle-end/114604
* gimple-range.cc (enable_ranger): Initialize the global
bitmap obstack.
(disable_ranger): Release it.
gcc/gimple-range.cc