diff options
author | Marek Polacek <polacek@redhat.com> | 2014-12-04 19:20:12 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2014-12-04 19:20:12 +0000 |
commit | 3119ac2925882e0e7b30984d71093eef349cabcc (patch) | |
tree | 57ddb125dd815eba52b7c03670badf6f9e880a46 /libcpp/line-map.c | |
parent | d348be26b9d5c668e37459f65ab88ece7d2db2d6 (diff) | |
download | gcc-3119ac2925882e0e7b30984d71093eef349cabcc.zip gcc-3119ac2925882e0e7b30984d71093eef349cabcc.tar.gz gcc-3119ac2925882e0e7b30984d71093eef349cabcc.tar.bz2 |
re PR middle-end/56917 (-ftrapv detects a overflow wrongly.)
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.
From-SVN: r218395
Diffstat (limited to 'libcpp/line-map.c')
0 files changed, 0 insertions, 0 deletions