PR middle-end/81908 - FAIL: gfortran.dg/alloc_comp_auto_array_2.f90 -O3 -g -m32
authorMartin Sebor <msebor@redhat.com>
Fri, 25 Aug 2017 00:25:57 +0000 (00:25 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Fri, 25 Aug 2017 00:25:57 +0000 (18:25 -0600)
commit6512c0f187d84dd046380aa53673dc5ae20795e3
treee3ef97482f1a8fea582b082f55375e0e11f7481e
parentf9dd01fabf16c866ac582141b03194cadb0f10f0
PR middle-end/81908 - FAIL: gfortran.dg/alloc_comp_auto_array_2.f90 -O3 -g -m32

gcc/ChangeLog:

PR middle-end/81908
* gimple-fold.c (size_must_be_zero_p): New function.
(gimple_fold_builtin_memory_op): Call it.

gcc/testsuite/ChangeLog:

PR middle-end/81908
* gcc.dg/tree-ssa/builtins-folding-gimple-2.c: New test.
* gcc.dg/tree-ssa/builtins-folding-gimple-3.c: New test.
* gcc.dg/tree-ssa/pr81908.c: New test.

From-SVN: r251347
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/builtins-folding-gimple-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/builtins-folding-gimple-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr81908.c [new file with mode: 0644]