Re: tree-ssa-strlen vs. zero-length strings

2011-10-27 Thread Ian Lance Taylor
Jakub Jelinek writes: > On Wed, Oct 26, 2011 at 10:22:21PM -0700, Ian Lance Taylor wrote: >> I don't think it is possible to trigger this using C because I don't >> think it is possible to have a zero-length STRING_CST in C. > > Ugh. > > I think the following should work, after all it will be tin

Re: tree-ssa-strlen vs. zero-length strings

2011-10-27 Thread Jakub Jelinek
On Wed, Oct 26, 2011 at 10:22:21PM -0700, Ian Lance Taylor wrote: > I don't think it is possible to trigger this using C because I don't > think it is possible to have a zero-length STRING_CST in C. Ugh. I think the following should work, after all it will be tiny more efficient, I chose to use c