diff options
author | Richard Guenther <rguenther@suse.de> | 2006-10-28 20:36:54 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2006-10-28 20:36:54 +0000 |
commit | 4e9100638e0e96826dbe51a32c6f45eef54c1630 (patch) | |
tree | 68ab2476f92f8b804100c759287422d70dde0f91 | |
parent | fb84c7a05b9369c84dea53fb5f57e7c0f75c4c9c (diff) | |
download | gcc-4e9100638e0e96826dbe51a32c6f45eef54c1630.zip gcc-4e9100638e0e96826dbe51a32c6f45eef54c1630.tar.gz gcc-4e9100638e0e96826dbe51a32c6f45eef54c1630.tar.bz2 |
fold-const.c (maybe_canonicalize_comparison): Fix code to match comment.
2006-10-28 Richard Guenther <rguenther@suse.de>
* fold-const.c (maybe_canonicalize_comparison): Fix code
to match comment.
From-SVN: r118110
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/fold-const.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cfa63d9..cd406c6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-10-28 Richard Guenther <rguenther@suse.de> + + * fold-const.c (maybe_canonicalize_comparison): Fix code + to match comment. + 2006-10-28 Uros Bizjak <uros@kss-loka.si> * config/i386/i386.h (GENERAL_REGNO_P): Use STACK_POINTER_REGNUM. diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 32e64c9..8e3c97a 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -7855,7 +7855,7 @@ maybe_canonicalize_comparison (enum tree_code code, tree type, but that causes problems elsewhere. */ if ((flag_wrapv || flag_trapv) || (TYPE_UNSIGNED (TREE_TYPE (arg0)) - && !POINTER_TYPE_P (TREE_TYPE (arg0)))) + || POINTER_TYPE_P (TREE_TYPE (arg0)))) return NULL_TREE; /* Try canonicalization by simplifying arg0. */ |