r217427 - in /trunk/gcc: ChangeLog fold-const.c...
mpolacek@gcc.gnu.org
mpolacek@gcc.gnu.org
Wed Nov 12 14:36:00 GMT 2014
Author: mpolacek
Date: Wed Nov 12 14:36:41 2014
New Revision: 217427
URL: https://gcc.gnu.org/viewcvs?rev=217427&root=gcc&view=rev
Log:
* fold-const.c (fold_binary_loc): Don't fold if the result
is undefined.
* match.pd (A + (-B) -> A - B, A - (-B) -> A + B,
-(-A) -> A): Likewise.
* c-c++-common/ubsan/overflow-sub-4.c: New test.
* c-c++-common/ubsan/overflow-sub-2.c: Adjust dg-output.
* c-c++-common/ubsan/overflow-int128.c: Likewise.
Added:
trunk/gcc/testsuite/c-c++-common/ubsan/overflow-sub-4.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/match.pd
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/c-c++-common/ubsan/overflow-int128.c
trunk/gcc/testsuite/c-c++-common/ubsan/overflow-sub-2.c
More information about the Gcc-cvs
mailing list