re PR tree-optimization/89278 (ICE in gimplify_modify_expr, at gimplify.c:5821)
authorRichard Biener <rguenther@suse.de>
Fri, 15 Feb 2019 07:39:45 +0000 (07:39 +0000)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 15 Feb 2019 07:39:45 +0000 (08:39 +0100)
commit4c9ed22ae08c2b621efd6c8a1600e47b67d66c66
tree3c0b3134250d40992538c3f58ee47fd7448734e7
parent5f88ba10e017ec213b0fc4e1b0cd63f3dfcb6660
re PR tree-optimization/89278 (ICE in gimplify_modify_expr, at gimplify.c:5821)

PR tree-optimization/89278
* tree-loop-distribution.c: Include tree-eh.h.
(generate_memset_builtin, generate_memcpy_builtin): Call
rewrite_to_non_trapping_overflow on builtin->size before passing it
to force_gimple_operand_gsi.

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

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r268927
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr89278.c [new file with mode: 0644]
gcc/tree-loop-distribution.c