From 4e9100638e0e96826dbe51a32c6f45eef54c1630 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Sat, 28 Oct 2006 20:36:54 +0000 Subject: fold-const.c (maybe_canonicalize_comparison): Fix code to match comment. 2006-10-28 Richard Guenther * fold-const.c (maybe_canonicalize_comparison): Fix code to match comment. From-SVN: r118110 --- gcc/ChangeLog | 5 +++++ gcc/fold-const.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc') 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 + + * fold-const.c (maybe_canonicalize_comparison): Fix code + to match comment. + 2006-10-28 Uros Bizjak * 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. */ -- cgit v1.1