Re: [PATCH] tree-optimization/116907 - stale BLOCK reference from DECL_VALUE_EXPR

2024-10-15 Thread Richard Biener
On Sun, 13 Oct 2024, Richard Biener wrote: > When we remove unused BLOCKs we fail to clean references to them > from DECL_VALUE_EXPRs of variables in other BLOCKs which in the > PR causes LTO streaming to walk into pointers to GGC freed blocks. > > There's the question of whether such DECL_VALUE_

[PATCH] tree-optimization/116907 - stale BLOCK reference from DECL_VALUE_EXPR

2024-10-13 Thread Richard Biener
When we remove unused BLOCKs we fail to clean references to them from DECL_VALUE_EXPRs of variables in other BLOCKs which in the PR causes LTO streaming to walk into pointers to GGC freed blocks. There's the question of whether such DECL_VALUE_EXPRs should keep variables and blocks referenced live