aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@redhat.com>2005-01-07 09:24:49 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2005-01-07 09:24:49 +0000
commit4600cc14275bb31771b3a5ee914125af1796064b (patch)
treea9379b79c34eb190b2daa4187b666e401fec5ac3 /gcc
parent2a0958c5f6dcc88ec21418f65ff0a75e50c592ef (diff)
downloadgcc-4600cc14275bb31771b3a5ee914125af1796064b.zip
gcc-4600cc14275bb31771b3a5ee914125af1796064b.tar.gz
gcc-4600cc14275bb31771b3a5ee914125af1796064b.tar.bz2
* tree.h (IS_EXPR_CODE_CLASS): Use a straight-forward range check.
From-SVN: r93044
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tree.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7b8fca5..110e8a6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/tree.h b/gcc/tree.h
index 4bdf2b3..400148c 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -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. */