This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/77594] double computation for __builtin_sub_overflow (0, ...)


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]