diff options
author | Mark Mitchell <mmitchell@usa.net> | 1998-03-23 22:20:22 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1998-03-23 22:20:22 +0000 |
commit | 4da0595618774151d44c3d1a51b292fc8ef62e85 (patch) | |
tree | 5d4d12caf5415d626dad027daca8fd3f42e94848 /gcc | |
parent | 545f2aab0ccf20944997f3ae51d2e039c2237dc3 (diff) | |
download | gcc-4da0595618774151d44c3d1a51b292fc8ef62e85.zip gcc-4da0595618774151d44c3d1a51b292fc8ef62e85.tar.gz gcc-4da0595618774151d44c3d1a51b292fc8ef62e85.tar.bz2 |
* tree.h (IS_EXPR_CODE_CLASS): New macro.
From-SVN: r18783
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/tree.h | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0de7195..5bac6bb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +1998-03-22 Mark Mitchell <mmitchell@usa.net> + + * tree.h (IS_EXPR_CODE_CLASS): New macro. + Mon Mar 23 23:18:48 1998 Jeffrey A Law (law@cygnus.com) * h8300.h (CONST_COSTS): Remove definition. @@ -51,6 +51,13 @@ enum tree_code { extern char tree_code_type[MAX_TREE_CODES]; #define TREE_CODE_CLASS(CODE) tree_code_type[(int) (CODE)] +/* Returns non-zero iff CLASS is the tree-code class of an + expression. */ + +#define IS_EXPR_CODE_CLASS(CLASS) \ + (CLASS == '<' || CLASS == '1' || CLASS == '2' || CLASS == '3' \ + || CLASS == 'e') + /* Number of argument-words in each kind of tree-node. */ extern int tree_code_length[MAX_TREE_CODES]; |