Re: [19/nn] Don't treat zero-sized ranges as overlapping

2017-10-26 Thread Richard Biener
On Mon, Oct 23, 2017 at 1:29 PM, Richard Sandiford wrote: > Most GCC ranges seem to be represented as an offset and a size (rather > than a start and inclusive end or start and exclusive end). The usual > test for whether X is in a range is of course: > > x >= start && x < start + size > or: >

[19/nn] Don't treat zero-sized ranges as overlapping

2017-10-23 Thread Richard Sandiford
Most GCC ranges seem to be represented as an offset and a size (rather than a start and inclusive end or start and exclusive end). The usual test for whether X is in a range is of course: x >= start && x < start + size or: x >= start && x - start < size which means that an empty range of siz