re PR middle-end/36227 (POINTER_PLUS folding introduces undefined overflow)
authorRichard Guenther <rguenther@suse.de>
Tue, 13 May 2008 14:01:53 +0000 (14:01 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 13 May 2008 14:01:53 +0000 (14:01 +0000)
commit8ebc39d80aceb9bf0e0a49160c3fe6843759bddb
tree2f6651d22d1a494fcf417cb3eb39bfffc2c0529a
parentf80cddcb5d45179f285da0a56a36db694935148d
re PR middle-end/36227 (POINTER_PLUS folding introduces undefined overflow)

2008-05-13  Richard Guenther  <rguenther@suse.de>

PR middle-end/36227
* fold-const.c (fold_sign_changed_comparison): Do not allow
changes in pointer-ness.

* gcc.dg/pr36227.c: New testcase.

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