https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83269

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Dec 15 14:37:52 2017
New Revision: 255697

URL: https://gcc.gnu.org/viewcvs?rev=255697&root=gcc&view=rev
Log:
        PR tree-optimization/83269
        * fold-const.c (fold_binary_loc): Perform (-A) - B -> (-B) - A
        subtraction in arg0's type if type is signed and arg0 is unsigned.
        Formatting fix.

        * gcc.c-torture/execute/pr83269.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr83269.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to