On Mon, Nov 05, 2018 at 11:03:28AM +0100, Richard Biener wrote: > On Mon, 5 Nov 2018, Jakub Jelinek wrote: > > > Hi! > > > > I wish I had a better fix, but I don't, trying to sanitize signed integer > > arithmetics in the FEs already before any folding there is complicated by > > that arithmetics being created just in way too many spots. > > I suppose we could play some tricks and "unset" TYPE_OVERFLOW_SANITIZED > after instrumentation finished?
Yes, e.g. have some cfun-> flag or property that would be cleared during the ubsan pass (and clear from the beginning if not sanitizing integer overflows). Jakub