PR tree-optimization/89662 - -Warray-bounds ICE on void* arithmetic
authorMartin Sebor <msebor@redhat.com>
Wed, 13 Mar 2019 17:19:43 +0000 (17:19 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Wed, 13 Mar 2019 17:19:43 +0000 (11:19 -0600)
commit129ef157d4c0f369de9a5966b9f64bf9634e7d83
treec07351ab0f320ecab251ed32f87f57451c977354
parentbd8ea483131f0f92f10703d9ca00e5e8708d1d3c
PR tree-optimization/89662 - -Warray-bounds ICE on void* arithmetic

gcc/ChangeLog:

PR tree-optimization/89662
* tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
has a size.

gcc/testsuite/ChangeLog:

PR tree-optimization/89662
* gcc.dg/Warray-bounds-41.c: New test.

From-SVN: r269655
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Warray-bounds-41.c [new file with mode: 0644]
gcc/tree-vrp.c