[Bug tree-optimization/94114] [8 Regression] ICE in gimplify_modify_expr, at gimplify.c:5936
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Sep 17 14:24:32 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94114
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-8 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:8d5332862e86edb92f27bd136ccd9fdba3524039
commit r8-10459-g8d5332862e86edb92f27bd136ccd9fdba3524039
Author: Jakub Jelinek <jakub@redhat.com>
Date: Wed Mar 11 09:32:22 2020 +0100
ldist: Further fixes for -ftrapv [PR94114]
As the testcase shows, arithmetics that for -ftrapv would need multiple
basic blocks can show up not just in nb_bytes expressions where we
are calling rewrite_to_non_trapping_overflow for a while already,
but also in the pointer expression to the start of the region.
While the testcase covers just the first hunk and I've failed to create
a testcase for the latter, it is at least in theory possible too, so I've
adjusted that hunk too.
2020-03-11 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/94114
* tree-loop-distribution.c (generate_memset_builtin): Call
rewrite_to_non_trapping_overflow even on mem.
(generate_memcpy_builtin): Call rewrite_to_non_trapping_overflow
even
on dest and src.
* gcc.dg/pr94114.c: New test.
(cherry picked from commit 2fd27691f213f2e808626c4cd492b00c801a00fa)
More information about the Gcc-bugs
mailing list