Summary: | [12 Regression] ICE in fill_block_cache, at gimple-range-cache.cc:1277 with -O2 since r12-4866-gfc4076752067fb40 | ||
---|---|---|---|
Product: | gcc | Reporter: | Vsevolod Livinskii <vsevolod.livinskiy> |
Component: | tree-optimization | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aldyh, amacleod, babokin, marxin, regehr, vsevolod.livinskiy |
Priority: | P1 | Keywords: | ice-on-valid-code |
Version: | 12.0 | ||
Target Milestone: | 12.0 | ||
Host: | Target: | ||
Build: | Known to work: | 11.0 | |
Known to fail: | Last reconfirmed: | 2021-11-08 00:00:00 | |
Bug Depends on: | |||
Bug Blocks: | 103035 |
Description
Vsevolod Livinskii
2021-11-08 01:02:59 UTC
Started with r12-4866-gfc4076752067fb40. The master branch has been updated by Andrew Macleod <amacleod@gcc.gnu.org>: https://gcc.gnu.org/g:0cd653bd2559701da9cc4c9bf51f22bdd68623b5 commit r12-5006-g0cd653bd2559701da9cc4c9bf51f22bdd68623b5 Author: Andrew MacLeod <amacleod@redhat.com> Date: Mon Nov 8 09:32:42 2021 -0500 Don't calculate new values when using the private context callback. When using rangers private callback mechanism to provide context to fold_stmt calls, we are only suppose to be using the cache in read only mode, never calculate new values. gcc/ PR tree-optimization/103122 * gimple-range.cc (gimple_ranger::range_of_expr): Request the cache entry with "calulate new values" set to false. gcc/testsuite/ * g++.dg/pr103122.C: New. Fixed. |