]> git.ipfire.org Git - thirdparty/gcc.git/commit
flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
authorIan Lance Taylor <iant@google.com>
Mon, 14 Apr 2008 19:18:31 +0000 (19:18 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 14 Apr 2008 19:18:31 +0000 (19:18 +0000)
commit4c9db6e07aba115c21ab02068ccc332ce691775e
tree5476839d99a5b4e7b501ffa138ec06b5cc5cb144
parent3a5a8be12000125f4c12efea8bd6a466049a688d
flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.

gcc/:
* flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
* fold-const.c (fold_comparison): If appropriate, test
POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
(fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
reassociating a pointer type.
* doc/invoke.texi (Optimize Options): Document that
-fstrict-overflow applies to pointer wraparound.
gcc/testsuite/:
* gcc.dg/strict-overflow-6.c: New.
* gcc.dg/no-strict-overflow-7.c: New.
* gcc.dg/Wstrict-overflow-22.c: New.

From-SVN: r134287
gcc/ChangeLog
gcc/doc/invoke.texi
gcc/flags.h
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wstrict-overflow-22.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/no-strict-overflow-7.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/strict-overflow-6.c [new file with mode: 0644]