diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8918dec2290..6ba3eca7a99 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-04-13 Richard Guenther + + PR bootstrap/43737 + * builtins.c (c_readstr): Fix assert. + 2010-04-13 Uros Bizjak * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG diff --git a/gcc/builtins.c b/gcc/builtins.c index 7787f695ac8..65a1dbd5882 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -560,7 +560,7 @@ c_readstr (const char *str, enum machine_mode mode) && GET_MODE_SIZE (mode) > UNITS_PER_WORD) j = j + UNITS_PER_WORD - 2 * (j % UNITS_PER_WORD) - 1; j *= BITS_PER_UNIT; - gcc_assert (j <= 2 * HOST_BITS_PER_WIDE_INT); + gcc_assert (j < 2 * HOST_BITS_PER_WIDE_INT); if (ch) ch = (unsigned char) str[i];