Parted common.h into two files common_t.h. By this config.h
authorGötz Lindenmaier <goetz@ipd.info.uni-karlsruhe.de>
Mon, 18 Mar 2002 16:26:14 +0000 (16:26 +0000)
committerGötz Lindenmaier <goetz@ipd.info.uni-karlsruhe.de>
Mon, 18 Mar 2002 16:26:14 +0000 (16:26 +0000)
  as well as the preprocessor flags are no more visible externaly.
  Adapted include directives.

[r335]

ir/common/Makefile.in
ir/common/common.c
ir/common/common.h
ir/common/common_t.h [new file with mode: 0644]

index b730353..687e546 100644 (file)
@@ -14,8 +14,8 @@ INSTALL_HEADERS := bool.h common.h firm.h
 
 SOURCES = $(INSTALL_HEADERS)
 
-SOURCES += Makefile.in panic.c tune.h xgprintf.c xp_help.h common.c firm.c     \
-               misc.h panic.h xfprintf.c xoprintf.c xprintf.h
+SOURCES += Makefile.in panic.c tune.h xgprintf.c xp_help.h common.c firm.c \
+               misc.h panic.h xfprintf.c xoprintf.c xprintf.h common_t.h
 
 include $(topdir)/MakeRules
 
index 547f32b..a7381ab 100644 (file)
@@ -13,7 +13,7 @@
 # include <config.h>
 #endif
 
-#include "common.h"
+#include "common_t.h"
 #include "irgraph.h"
 
 /* returns the kind of the thing */
index fc95d23..8f400de 100644 (file)
 # ifndef _COMMON_H_
 # define _COMMON_H_
 
-/** Global flags.  Set these by autoconf?? **/
-
-/* When set Phi node constructino uses the values valid when the fragile
-   operation is executed.  Else it uses the values valid at the end of the
-   block with the fragile operation. */
-#define PRECISE_EXC_CONTEXT 1
-// #define PRECISE_EXC_CONTEXT 0
-
-/* There are two implementations of the Phi node construction.  The first
-   is faster, but does not work for blocks with more than 2 predecessors.
-   The second works always but is slower and causes more unnecessary Phi
-   nodes.
-   Select the implementations by the following preprocessor flag: */
-#define USE_FAST_PHI_CONSTRUCTION 0
-
-/* Further there are two versions of the fast Phi node construction.
-   If the following flag is set, new_r_Phi_in uses an explicit stack for
-   allocating and deallocating Phi nodes.  Else it uses the obstack
-   as a stack! */
-#define USE_EXPICIT_PHI_IN_STACK 1
-
-#define DEBUG_libfirm 1
-/* If this is defined debuging aids are created, e.g. a field in
-   ir_node uniquely numbering the nodes.
-   Warum war das auskommentiert?? (--enable-debug hat das nicht gesetzt.
-   #define DEBUG_libfirm 1
- * this is now set by the configure script as an option
- * use
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
- * instead
- */
-
-/* If this and DEBUG_libfirm are defined irdump uses the nodeid numbers as
-   labels for the vcg nodes.  This makes the vcg graph better readable.
-   Sometimes it's useful to see the pointer values, though. */
-#define NODEID_AS_LABEL 1
-
 /* a list of firm kinds */
 typedef enum {
   k_entity,
@@ -64,5 +25,4 @@ firm_kind get_kind(void *firm_thing);
 /* returns a string. */
 const char* print_firm_kind(void *firm_thing);
 
-
 # endif /*_COMMON_H_ */
diff --git a/ir/common/common_t.h b/ir/common/common_t.h
new file mode 100644 (file)
index 0000000..8449fe2
--- /dev/null
@@ -0,0 +1,53 @@
+/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
+** All rights reserved.
+**
+** Authors: Martin Trapp, Christian Schaefer &
+**          Goetz Lindenmaier
+**
+** common_t.h: preprocessor flags
+*/
+
+/* $Id$ */
+
+# ifndef _COMMON_T_H_
+# define _COMMON_T_H_
+
+#include "common.h"
+
+/** Global flags.  Set these by autoconf?? **/
+
+/* When set Phi node construction uses the values valid when the fragile
+   operation is executed.  Else it uses the values valid at the end of the
+   block with the fragile operation. */
+#define PRECISE_EXC_CONTEXT 1
+// #define PRECISE_EXC_CONTEXT 0
+
+/* There are two implementations of the Phi node construction.  The first
+   is faster, but does not work for blocks with more than 2 predecessors.
+   The second works always but is slower and causes more unnecessary Phi
+   nodes.
+   Select the implementations by the following preprocessor flag: */
+#define USE_FAST_PHI_CONSTRUCTION 0
+
+/* Further there are two versions of the fast Phi node construction.
+   If the following flag is set, new_r_Phi_in uses an explicit stack for
+   allocating and deallocating Phi nodes.  Else it uses the obstack
+   as a stack! */
+#define USE_EXPLICIT_PHI_IN_STACK 1
+
+/*
+/* If this is defined debuging aids are created, e.g. a field in
+ * ir_node uniquely numbering the nodes.
+ * #define DEBUG_libfirm 1
+ * This is now set by the configure script as an option.
+ */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+/* If this and DEBUG_libfirm are defined irdump uses the nodeid numbers as
+   labels for the vcg nodes.  This makes the vcg graph better readable.
+   Sometimes it's useful to see the pointer values, though. */
+#define NODEID_AS_LABEL 1
+
+# endif /*_COMMON_T_H_ */