re PR middle-end/80362 (gcc miscompiles arithmetic with signed char)
authorRichard Biener <rguenther@suse.de>
Mon, 10 Apr 2017 13:02:12 +0000 (13:02 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 10 Apr 2017 13:02:12 +0000 (13:02 +0000)
commit737237c9b8a6e24949975433a5696d4f12d602db
tree56bff97fd0b8927570019c435feb7520faeb0cba
parent541e0d5597169aa3c6ccbfea58df76838db69e28
re PR middle-end/80362 (gcc miscompiles arithmetic with signed char)

2017-04-10  Richard Biener  <rguenther@suse.de>

PR middle-end/80362
* fold-const.c (fold_binary_loc): Look at unstripped ops when
looking for NEGATE_EXPR in -A / -B to A / B folding.

* gcc.dg/torture/pr80362.c: New testcase.

From-SVN: r246805
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr80362.c [new file with mode: 0644]