OSDN Git Service

* tree-ssa-dom.c (simple_iv_increment_p): New function.
[pf3gnuchains/gcc-fork.git] / gcc / c-dump.c
index 73b973e..6e0d502 100644 (file)
@@ -1,5 +1,5 @@
 /* Tree-dumping functionality for C-family languages.
-   Copyright (C) 2002, 2004 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
    Written by Mark Mitchell <mark@codesourcery.com>
 
 This file is part of GCC.
@@ -32,9 +32,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 void
 dump_stmt (dump_info_p di, tree t)
 {
-  location_t *locus = EXPR_LOCUS (t);
-  if (locus)
-    dump_int (di, "line", locus->line);
+  if (EXPR_HAS_LOCATION (t))
+    dump_int (di, "line", EXPR_LINENO (t));
 }
 
 /* Dump any C-specific tree codes and attributes of common codes.  */
@@ -81,8 +80,8 @@ c_dump_tree (void *dump_info, tree t)
 
     case SWITCH_STMT:
       dump_stmt (di, t);
-      dump_child ("cond", SWITCH_COND (t));
-      dump_child ("body", SWITCH_BODY (t));
+      dump_child ("cond", SWITCH_STMT_COND (t));
+      dump_child ("body", SWITCH_STMT_BODY (t));
       break;
 
     case WHILE_STMT: