added
authorBoris Boesler <boesler@ipd.info.uni-karlsruhe.de>
Mon, 5 Mar 2001 20:10:42 +0000 (20:10 +0000)
committerBoris Boesler <boesler@ipd.info.uni-karlsruhe.de>
Mon, 5 Mar 2001 20:10:42 +0000 (20:10 +0000)
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

and replaced C++ comments bt standard C comments

[r109]

18 files changed:
ir/ir/ircons.c
ir/ir/irdump.c
ir/ir/irflag.c
ir/ir/irgmod.c
ir/ir/irgopt.c
ir/ir/irgraph.c
ir/ir/irgwalk.c
ir/ir/irmode.c
ir/ir/irnode.c
ir/ir/irop.c
ir/ir/iropt.c
ir/ir/irprog.c
ir/ir/irvrfy.c
ir/tr/entity.c
ir/tr/mangle.c
ir/tr/type.c
ir/tr/type.h
ir/tr/typewalk.c

index 9d299f3..18f1b53 100644 (file)
@@ -9,6 +9,10 @@
 **   by Goetz Lindenmaier
 */
 
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 # include "irgraph_t.h"
 # include "irnode_t.h"
 # include "irmode_t.h"
index 0480f8c..45f4d03 100644 (file)
@@ -6,6 +6,10 @@
 ** irdump.h: dumping of an intermediate representation graph
 */
 
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 # include "irnode_t.h"
 # include "irgraph_t.h"
 # include "irprog.h"
index 1169a7a..784d74b 100644 (file)
@@ -6,6 +6,10 @@
 ** irflag --- optimization flags
 */
 
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 
 /* 0 - don't do this optimization
    1 - lets see, if there is a better graph */
index ec7cc6d..95d00f6 100644 (file)
@@ -7,6 +7,10 @@
 ** irgmod: ir graph modification
 */
 
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 # include "irnode_t.h"
 # include "irgraph_t.h"
 # include "irgmod.h"
index 92aff14..9f4c1a9 100644 (file)
@@ -6,6 +6,10 @@
 ** Optimizations for a whole ir graph, i.e., a procedure.
 */
 
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 # include <assert.h>
 
 # include "irgopt.h"
index 249fdb5..357996f 100644 (file)
@@ -6,6 +6,10 @@
 **
 */
 
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 # include "ircons.h"
 # include "irgraph_t.h"
 # include "irprog.h"
@@ -80,10 +84,11 @@ new_ir_graph (entity *ent, int n_loc)
   res->args    = new_Proj (res->start, mode_T, pns_args);
 
   add_in_edge(res->start_block, projX);
-  // The code generation needs it. leave it in now.
-  // Use of this edge is matter of discussion, unresolved. Also possible:
-  // add_in_edge(res->start_block, res->start_block), but invalid typed.
-
+  /*
+   * The code generation needs it. leave it in now.
+   * Use of this edge is matter of discussion, unresolved. Also possible:
+   * add_in_edge(res->start_block, res->start_block), but invalid typed.
+   */
   mature_block (res->current_block);
 
   /** Make a block to start with **/
index e8ea204..6290926 100644 (file)
@@ -8,6 +8,10 @@
 ** - execute the post function after recursion
 */
 
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 # include "irnode.h"
 # include "irgraph.h" /* visited flag */
 
index 1901632..3f9ddc8 100644 (file)
@@ -5,6 +5,10 @@
 **
 */
 
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 # include "irmode_t.h"
 # include <malloc.h>
 # include <stddef.h>
index a9fccc2..701de9e 100644 (file)
@@ -5,6 +5,10 @@
 **
 */
 
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "irnode_t.h"
 #include "irgraph_t.h"
 #include "ident_t.h"
index da6f27d..40b10f8 100644 (file)
@@ -5,6 +5,10 @@
 **
 */
 
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 # include "irop_t.h"
 # include "irnode_t.h"
 # include "misc.h"
index c85202c..05ffcef 100644 (file)
@@ -6,6 +6,10 @@
 ** iropt --- optimizations intertwined with IR construction.
 */
 
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 # include "irnode_t.h"
 # include "irgraph_t.h"
 # include "iropt_t.h"
@@ -1002,7 +1006,7 @@ optimize_in_place (ir_node *n)
   }
 
   /* remove unnecessary nodes */
-  //if (get_opt_constant_folding())
+  /*if (get_opt_constant_folding()) */
   if (get_opt_constant_folding() || get_irn_op(n) == op_Phi)
     n = equivalent_node (n);
 
index f7355f2..2e00771 100644 (file)
@@ -6,6 +6,10 @@
 ** irprog.c: ir representation of a program
 */
 
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 # include "irprog_t.h"
 # include "array.h"
 # include "obst.h"
index 74e0ee7..1deb11b 100644 (file)
@@ -6,6 +6,10 @@
 x**
 */
 
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 # include "irgraph_t.h"
 # include "irvrfy.h"
 # include "irgwalk.h"
@@ -52,8 +56,8 @@ irn_vrfy (ir_node *n)
     break;
   case iro_Return:
     op1mode = get_irn_mode(in[1]);
-      /* Return: BB x M x data1 x ... x datan --> X */
-    //printf("mode: %s, code %s\n", ID_TO_STR(n->mode->name), ID_TO_STR(n->op->name));
+    /* Return: BB x M x data1 x ... x datan --> X */
+    /* printf("mode: %s, code %s\n", ID_TO_STR(n->mode->name), ID_TO_STR(n->op->name));*/
     assert ( op1mode == mode_M );  /* operand M */
     for (i=2; i < get_irn_arity(n); i++) {
       assert ( mode_is_data(get_irn_mode(in[i])) );  /* operand datai */
index 91043f3..eb4d407 100644 (file)
@@ -5,7 +5,12 @@
 **
 */
 
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 # include <stdlib.h>
+# include <stddef.h>
 # include "entity_t.h"
 # include "entity.h"
 # include "mangle.h"
index 03f91c1..b13f303 100644 (file)
@@ -5,6 +5,10 @@
 **
 */
 
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 # include "mangle.h"
 # include <obstack.h>
 # include "obst.h"
index d1bdeac..1020e9c 100644 (file)
@@ -8,6 +8,10 @@
 ** type.c: datastructures to hold type information.
 */
 
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 # include "type.h"
 # include "irprog.h"  /* So that constructors can add the type to global
                         data structure. */
@@ -26,7 +30,7 @@ init (void)
 /*******************************************************************/
 
 type_class *
-new_type_class (ident *name)//, int members)
+new_type_class (ident *name) /*, int members) */
 {
   type_class *res;
 
@@ -165,7 +169,7 @@ set_class_size (type_class *clss, int size) {
 /*******************************************************************/
 
 type_strct *
-new_type_strct (ident *name)//, int members)
+new_type_strct (ident *name) /*, int members) */
 {
   type_strct *res;
 
@@ -244,7 +248,7 @@ new_type_method (ident *name, int arity, int n_res)
   add_irp_type((type *) res);   /* Remember the new type global. */
   res->kind = k_type_method;
 
-  res->name = name;   // do I need the name, or is the name in entity sufficient?
+  res->name = name;   /* do I need the name, or is the name in entity sufficient? */
   res->arity = arity;
   res->param_type = (type **) xmalloc (sizeof (type *) * arity);
   res->n_res  = n_res;
@@ -339,7 +343,7 @@ new_type_union (ident *name, int n_types)
   res = (type_union *) xmalloc (sizeof (type_union));
   add_irp_type((type *) res);   /* Remember the new type global. */
   res->kind = k_type_union;
-  res->name = name;   // do I need a name?
+  res->name = name;   /* do I need a name? */
   res->n_types = n_types;
   /*
   res->unioned_type = (int *) xmalloc (sizeof (int) * n_types);
index 8c16654..9c749ac 100644 (file)
@@ -191,11 +191,11 @@ typedef struct entity entity;
 #endif
 
 /* for recursive type definiton */
-//#ifndef _TYPE_TYPEDEF_
-//#define _TYPE_TYPEDEF_
+/*#ifndef _TYPE_TYPEDEF_ */
+/*#define _TYPE_TYPEDEF_ */
 /* to resolve recursion between entity.h and irgraph.h */
 typedef union type type;
-//#endif
+/*#endif */
 
 
 /* visited flag to traverse the type information */
index 36935f7..5f136b6 100644 (file)
@@ -9,6 +9,10 @@
 ** - execute the post function after recursion
 */
 
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include <stdlib.h>
 #include <stdio.h>
 #include "irgwalk.h"
@@ -78,7 +82,7 @@ void type_walk_2(type_or_ent *tore,
       {
        int i;
        ((type_class *)tore)->visit = type_visited;
-       //CS
+       /* CS */
        for (i=0; i<get_class_n_member((type_class *)tore); i++)
          {
            type_walk_2((type_or_ent *)get_class_member((type_class *)tore, i),
@@ -101,7 +105,7 @@ void type_walk_2(type_or_ent *tore,
        int i;
 
        ((type_strct *)tore)->visit = type_visited;
-       //CS
+       /* CS */
        for (i=0; i<get_strct_n_member((type_strct *)tore); i++)
          {
            type_walk_2((type_or_ent *)get_strct_member((type_strct *)tore, i),