https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89278
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Aug 30 12:02:02 2019 New Revision: 275113 URL: https://gcc.gnu.org/viewcvs?rev=275113&root=gcc&view=rev Log: Backported from mainline 2019-02-15 Richard Biener <rguent...@suse.de> Jakub Jelinek <ja...@redhat.com> 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. Added: branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr89278.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/testsuite/ChangeLog branches/gcc-7-branch/gcc/tree-loop-distribution.c