]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/expr.c
re PR preprocessor/55715 (bogus overflow warning for #if A-B when A<0 & B==minimum...
authorJoseph Myers <joseph@codesourcery.com>
Tue, 10 Dec 2013 01:23:37 +0000 (01:23 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Tue, 10 Dec 2013 01:23:37 +0000 (01:23 +0000)
commit3a4efce7c246b190ef35a8ce1f108f572274521f
tree17fee4f3cb77d383b7ed61dc4891d6ab12174ac5
parente73d2479dd03132a1147c013426ea8e88c10d2ff
re PR preprocessor/55715 (bogus overflow warning for #if A-B when A<0 & B==minimum integer)

PR preprocessor/55715
libcpp:
* expr.c (num_binary_op): Implement subtraction directly rather
than with negation and falling through into addition case.

gcc/testsuite:
* gcc.dg/cpp/expr-overflow-1.c: New test.

From-SVN: r205846
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/expr-overflow-1.c [new file with mode: 0644]
libcpp/ChangeLog
libcpp/expr.c