re PR bootstrap/43737 (Bootstrap broken at -O3)

2010-04-13  Richard Guenther  <rguenther@suse.de>

	PR bootstrap/43737
	* builtins.c (c_readstr): Fix assert.

From-SVN: r158264
This commit is contained in:
Richard Guenther 2010-04-13 12:23:17 +00:00 committed by Richard Biener
parent 9d7b53ccae
commit 54c5ec4fbf
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-04-13 Richard Guenther <rguenther@suse.de>
PR bootstrap/43737
* builtins.c (c_readstr): Fix assert.
2010-04-13 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG

View File

@ -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];