- activated WITH_UNKNOWN
[libfirm] / ir / ana / structure.c
index a0017a7..fe90fb4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
@@ -24,9 +24,7 @@
  * @date     5.4.2007
  * @version  $Id$
  */
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
 
 #include "firm_common.h"
 #include "irnode_t.h"
@@ -74,7 +72,7 @@ union ir_reg_or_blk {
 };
 
 /* The debug handle. */
-DEBUG_ONLY(firm_dbg_module_t *dbg;)
+DEBUG_ONLY(static firm_dbg_module_t *dbg;)
 
 /**
  * Returns the link of a region.
@@ -1002,7 +1000,7 @@ static void reduce(walk_env *env, ir_region *reg) {
 ir_reg_tree *construct_region_tree(ir_graph *irg) {
        walk_env env;
        ir_graph *rem = current_ir_graph;
-       ir_reg_tree *res = xmalloc(sizeof(*res));
+       ir_reg_tree *res = XMALLOC(ir_reg_tree);
 
        obstack_init(&res->obst);