re PR debug/83694 (New test case gcc.dg/pr83666.c from r256232 ICEs)

PR middle-end/83694
	* cfgexpand.c (expand_debug_expr): Punt if mode1 is VOIDmode
	and bitsize might be greater than MAX_BITSIZE_MODE_ANY_INT.

From-SVN: r256307
This commit is contained in:
Jakub Jelinek 2018-01-06 08:46:39 +01:00 committed by Jakub Jelinek
parent 319e41dc77
commit dba9c1fd27
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2018-01-06 Jakub Jelinek <jakub@redhat.com>
PR middle-end/83694
* cfgexpand.c (expand_debug_expr): Punt if mode1 is VOIDmode
and bitsize might be greater than MAX_BITSIZE_MODE_ANY_INT.
2018-01-05 Jakub Jelinek <jakub@redhat.com>
PR target/83604

View File

@ -4534,8 +4534,12 @@ expand_debug_expr (tree exp)
if (MEM_P (op0))
{
if (mode1 == VOIDmode)
/* Bitfield. */
mode1 = smallest_int_mode_for_size (bitsize);
{
if (maybe_gt (bitsize, MAX_BITSIZE_MODE_ANY_INT))
return NULL;
/* Bitfield. */
mode1 = smallest_int_mode_for_size (bitsize);
}
poly_int64 bytepos = bits_to_bytes_round_down (bitpos);
if (maybe_ne (bytepos, 0))
{