re PR middle-end/83463 (ICE: tree check: expected integer_type or enumeral_type or...
authorMarek Polacek <polacek@redhat.com>
Mon, 18 Dec 2017 16:44:35 +0000 (16:44 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 18 Dec 2017 16:44:35 +0000 (16:44 +0000)
commit066fc7517dc82b00de335c22d6238e434439d237
tree1fa88d8a9432b53085d0e9aa6ed9bbdfd063c378
parent02c7dd78fa0a3d05231f6340c4cc80d91b2393a5
re PR middle-end/83463 (ICE: tree check: expected integer_type or enumeral_type or boolean_type or real_type or fixed_point_type, have pointer_type in builtin_memr ef, at gimple-ssa-warn-restrict.c:297)

PR middle-end/83463
* gimple-ssa-warn-restrict.c (builtin_memref::builtin_memref):
Check if TYPE is INTEGRAL_TYPE_P before accessing its min/max
values.

* gcc.dg/pr83463.c: New test.

From-SVN: r255781
gcc/ChangeLog
gcc/gimple-ssa-warn-restrict.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr83463.c [new file with mode: 0644]