Re: [PATCH]: handle size_t /= ptr size in tree-ssa-strlen.c

2012-05-04 Thread Tristan Gingold
On May 4, 2012, at 2:34 PM, Richard Guenther wrote: > On Fri, May 4, 2012 at 2:27 PM, Tristan Gingold wrote: >> Hi, >> >> get_string_length assumes that precision of size_t is the same as precision >> of a pointer, which isn't always true at least on VMS. >> This patch simply add a conversion

Re: [PATCH]: handle size_t /= ptr size in tree-ssa-strlen.c

2012-05-04 Thread Richard Guenther
On Fri, May 4, 2012 at 2:27 PM, Tristan Gingold wrote: > Hi, > > get_string_length assumes that precision of size_t is the same as precision > of a pointer, which isn't always true at least on VMS. > This patch simply add a conversion in case of mismatch. > > Tested on ia64/VMS by cross-bootstrap

[PATCH]: handle size_t /= ptr size in tree-ssa-strlen.c

2012-05-04 Thread Tristan Gingold
Hi, get_string_length assumes that precision of size_t is the same as precision of a pointer, which isn't always true at least on VMS. This patch simply add a conversion in case of mismatch. Tested on ia64/VMS by cross-bootstrapping. Bootstrapped and regtested on i386/GNU Linux. Ok for trunk ?