PR middle-end/88956 - ICE: Floating point exception on a memcpy from
authorMartin Sebor <msebor@redhat.com>
Wed, 30 Jan 2019 03:04:14 +0000 (03:04 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Wed, 30 Jan 2019 03:04:14 +0000 (20:04 -0700)
commit6aa238a135b3d889e3efe8d5c8ac3ad236a27924
tree7957ace73cf42e859e1cd02afe93c3e5e019c3fb
parent538a530848375deb14495fae5a5ccf5ae5daedba
PR middle-end/88956 - ICE: Floating point exception on a memcpy from

PR middle-end/88956 - ICE: Floating point exception on a memcpy from
a zero-length constant array

gcc/ChangeLog:

PR c/88956
* gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.

gcc/testsuite/ChangeLog:

PR c/88956
* gcc.dg/Warray-bounds-39.c: New test.

From-SVN: r268378
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Warray-bounds-39.c [new file with mode: 0644]