This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/77594] double computation for __builtin_sub_overflow (0, ...)
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 16 Sep 2016 09:39:03 +0000
- Subject: [Bug middle-end/77594] double computation for __builtin_sub_overflow (0, ...)
- Auto-submitted: auto-generated
- References: <bug-77594-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77594
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Sep 16 09:38:31 2016
New Revision: 240183
URL: https://gcc.gnu.org/viewcvs?rev=240183&root=gcc&view=rev
Log:
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-6-branch/gcc/testsuite/gcc.target/i386/pr77594.c
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/internal-fn.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog