re PR c/58346 (ICE with SIGFPE at -O1 and above on x86_64-linux-gnu (affecting trunk...
authorMarek Polacek <polacek@redhat.com>
Fri, 17 Jan 2014 14:51:56 +0000 (14:51 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 17 Jan 2014 14:51:56 +0000 (14:51 +0000)
commit30078c0a6521519cd18090edb554c62e8d9c1a8a
tree07068f367f80f8bc0e8385c4425d17154f983d33
parent14379e666810cff69f620fbad5a44ce2d68486c3
re PR c/58346 (ICE with SIGFPE at -O1 and above on x86_64-linux-gnu (affecting trunk, 4.8, 4.7, and 4.6))

PR c/58346
* gimple-fold.c (fold_array_ctor_reference): Don't fold if element
size is zero.
testsuite/
* gcc.dg/pr58346.c: New test.

From-SVN: r206715
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr58346.c [new file with mode: 0644]