OSDN Git Service

2008-08-28 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Aug 2008 08:31:37 +0000 (08:31 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Aug 2008 08:31:37 +0000 (08:31 +0000)
commitdc5e8aba5577c53811a823084e9738bfdfc7a192
treef4a4e7f2ac44132dcb34b9ca2977087e5dd6f259
parentae65dfef7cfe2e0e50e81aef2f90bda404c8b58f
2008-08-28  Richard Guenther  <rguenther@suse.de>

PR middle-end/37005
* fold-const.c (maybe_canonicalize_comparison_1): Require
undefined overflow only for canonicalizing A +- CST cmp CST.
Make sure to not generate new constants that are not inside
their TYPE_MIN/MAX_VALUE range.
(maybe_canonicalize_comparison): Remove undefined overflow
checking from here.
(fold_binary): Remove now duplicate folding.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139702 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c