r218395 - in /trunk/gcc: ChangeLog fold-const.c...
mpolacek@gcc.gnu.org
mpolacek@gcc.gnu.org
Thu Dec 4 19:20:00 GMT 2014
Author: mpolacek
Date: Thu Dec 4 19:20:12 2014
New Revision: 218395
URL: https://gcc.gnu.org/viewcvs?rev=218395&root=gcc&view=rev
Log:
PR middle-end/56917
* fold-const.c (fold_unary_loc): Perform the negation in A's type
when transforming ~ (A - 1) or ~ (A + -1) to -A.
* c-c++-common/ubsan/pr56917.c: New test.
Added:
trunk/gcc/testsuite/c-c++-common/ubsan/pr56917.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list