[patch] tree-inline.c: Use CONSTANT_CLASS_P where possible.

Kazu Hirata kazu@cs.umass.edu
Fri Apr 1 13:56:00 GMT 2005


Hi,

Tested on i686-pc-linux-gnu.  Committed as obvious.

Kazu Hirata

2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>

	* tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where
	possible.

Index: tree-inline.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-inline.c,v
retrieving revision 1.175
diff -u -d -p -r1.175 tree-inline.c
--- tree-inline.c	30 Mar 2005 21:34:27 -0000	1.175
+++ tree-inline.c	1 Apr 2005 05:34:03 -0000
@@ -516,7 +516,7 @@ copy_body_r (tree *tp, int *walk_subtree
 
   /* If this is a constant, we have to copy the node iff the type will be
      remapped.  copy_tree_r will not copy a constant.  */
-  else if (TREE_CODE_CLASS (TREE_CODE (*tp)) == tcc_constant)
+  else if (CONSTANT_CLASS_P (*tp) == tcc_constant)
     {
       tree new_type = remap_type (TREE_TYPE (*tp), id);
 



More information about the Gcc-patches mailing list