[COMMITTED] tree-optimization/103022 - Don't calculate new values when using the private context, callback.

Andrew MacLeod amacleod@redhat.com
Mon Nov 8 17:49:54 GMT 2021


When using the private communication method I introduced for fold_stmt 
to acquire context, we are suppose to be using the cache in read-only 
mode.  I didn't query it in that mode, so it was accidentally triggering 
another lookup before finishing the original query, and that triggered 
the safety trap.  This patch makes sure we make the request in read-only 
mode .

Bootstraps with no regressions on x86_64-pc-linux-gnu.  Pushed.

Andrew

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 022.patch
Type: text/x-patch
Size: 1830 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211108/e79a5008/attachment-0001.bin>


More information about the Gcc-patches mailing list