rtl-ssa: Use right obstack for temporary allocation
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 12 Feb 2021 15:54:49 +0000 (15:54 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Fri, 12 Feb 2021 15:54:49 +0000 (15:54 +0000)
commitadfee3c4c03dd70a06f6283178d7943b09652206
tree118f5db5b89936f7df4843b871c6d65cefece8c6
parentf60226fd72331398dd5fd239e9d1b4feccc91988
rtl-ssa: Use right obstack for temporary allocation

I noticed while working on PR98863 that we were using the main
obstack to allocate temporary uses.  That was safe, but represents
a kind of local memory leak.

gcc/
* rtl-ssa/accesses.cc (function_info::make_use_available): Use
m_temp_obstack rather than m_obstack to allocate the temporary use.
gcc/rtl-ssa/accesses.cc