On Fri, Feb 22, 2019 at 07:25:53PM -0700, Martin Sebor wrote: > A few tests recently added for PR 88993 introduced an assumption > on the host compiler's data model that breaks between ILP32 and > LP64, causing failures test run failures > (see https://gcc.gnu.org/ml/gcc-patches/2019-02/msg01867.html). > Rather than avoiding the problem in the tests the attached patch > removes the data model assumption from the sprintf pass itself, > making the warnings emitted by the pass consistent regardless. > > Bootstrapped and tested on x86_64-linux, and smoke-tested with > an i386-linux GCC. > > Martin
> gcc/ChangeLog: > > * gimple-ssa-sprintf.c (target_strtol): Rename... > (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX. > (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to > check for range error. Ok. Jakub