* tree.h (IS_EXPR_CODE_CLASS): Use a straight-forward range check.
authorRichard Sandiford <rsandifo@redhat.com>
Fri, 7 Jan 2005 09:24:49 +0000 (09:24 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 7 Jan 2005 09:24:49 +0000 (09:24 +0000)
From-SVN: r93044

gcc/ChangeLog
gcc/tree.h

index 7b8fca5..110e8a6 100644 (file)
@@ -1,3 +1,7 @@
+2005-01-07  Richard SAndiford  <rsandifo@redhat.com>
+
+       * tree.h (IS_EXPR_CODE_CLASS): Use a straight-forward range check.
+
 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/19283
index 4bdf2b3..400148c 100644 (file)
@@ -1,6 +1,6 @@
 /* Front-end tree definitions for GNU compiler.
    Copyright (C) 1989, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-   2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+   2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -147,7 +147,7 @@ extern const enum tree_code_class tree_code_type[];
    expression.  */
 
 #define IS_EXPR_CODE_CLASS(CLASS)\
-       (((CLASS) - tcc_reference) <= (tcc_expression - tcc_reference))
+       ((CLASS) >= tcc_reference && (CLASS) <= tcc_expression)
 
 /* Returns nonzero iff NODE is an expression of some kind.  */