https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89543
Bug ID: 89543 Summary: Don't modify TREE_NO_WARNING during folding in place Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-checking, ice-on-valid-code Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org CC: marxin at gcc dot gnu.org, tschwinge at gcc dot gnu.org Depends on: 89503 Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Build: x86_64-pc-linux-gnu +++ This bug was initially created as a clone of Bug #89503 +++ As discussed in https://gcc.gnu.org/ml/gcc-patches/2019-03/msg00013.html and surrounding thread, it might be a good idea not to modify TREE_NO_WARNING flags in-place during folding, but instead unshare whatever trees surround it. In that case the PR89503 change can be reverted. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89503 [Bug 89503] Checking ICE in 'gcc.dg/warn-strlen-no-nul.c'