init_firm() has now a parameter default_initialize_local_variable_func_t, which is...
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 26 Feb 2003 10:02:27 +0000 (10:02 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 26 Feb 2003 10:02:27 +0000 (10:02 +0000)
for uninitialised local variables.

[r829]

ir/common/firm.c
ir/common/firm.h

index ff6a596..3fdc5df 100644 (file)
@@ -24,7 +24,7 @@
 # include "irgraph_t.h"
 
 void
-init_firm (void)
+init_firm (default_initialize_local_variable_func_t *func)
 {
   /* register the character 'I' as variable for ident outputs. */
   xprintf_register ('I', ident_print);
@@ -49,8 +49,8 @@ init_firm (void)
   init_mangle ();
   /* initalize all op codes an irnode can consist of */
   init_op ();
-  /* called once for each run of this library, empty right now... @@@!!!
-     init_cons (); */
+  /* called once for each run of this library */
+  init_cons (func);
   /* Builds a construct allowing to access all information to be constructed
      later. */
   init_irprog ();
index a5cabf5..5f5296f 100644 (file)
 
 /**
  * Initialize the firm library.
+ *
+ * @param func    This function is called, whenever a local variable is used before definition
+ *
+ * The parameter func may be NULL. In that case, the old FIRM behavior is conserved.
+ *
+ * @see default_initialize_local_variable_func_t
  */
-void init_firm (void);
+void init_firm (default_initialize_local_variable_func_t *func);
 
 # endif /* _FIRM_H_ */