https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77594
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue May 30 07:23:20 2017 New Revision: 248607 URL: https://gcc.gnu.org/viewcvs?rev=248607&root=gcc&view=rev Log: Backported from mainline 2016-09-16 Jakub Jelinek <ja...@redhat.com> Eric Botcazou <ebotca...@adacore.com> PR middle-end/77594 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall through into expand_addsub_overflow after expand_neg_overflow. * gcc.target/i386/pr77594.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/gcc.target/i386/pr77594.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/internal-fn.c branches/gcc-5-branch/gcc/testsuite/ChangeLog