From 9fbc46dc213871984b377a2b622a7ca8817fb0ad Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 26 Feb 2003 10:14:40 +0000 Subject: [PATCH] init_firm() takes now a parameter, the old behavior is enfrced with NULL. [r830] --- testprograms/array-heap_example.c | 2 +- testprograms/array-stack_example.c | 2 +- testprograms/call_str_example.c | 2 +- testprograms/cond_example.c | 2 +- testprograms/const_ent_example.c | 2 +- testprograms/const_eval_example.c | 2 +- testprograms/dead_block_example.c | 2 +- testprograms/empty.c | 2 +- testprograms/endless_loop.c | 2 +- testprograms/float_example.c | 2 +- testprograms/global_cse.c | 2 +- testprograms/global_var_example.c | 2 +- testprograms/if_else_example.c | 2 +- testprograms/if_example.c | 2 +- testprograms/if_while_example.c | 2 +- testprograms/inheritance_example.c | 2 +- testprograms/irr_cf_example.c | 2 +- testprograms/irr_loop_example.c | 2 +- testprograms/memory_example.c | 2 +- testprograms/oo_inline_example.c | 2 +- testprograms/oo_program_example.c | 2 +- testprograms/three_cfpred_example.c | 2 +- testprograms/while_example.c | 2 +- 23 files changed, 23 insertions(+), 23 deletions(-) diff --git a/testprograms/array-heap_example.c b/testprograms/array-heap_example.c index c22621229..eeb7e222a 100644 --- a/testprograms/array-heap_example.c +++ b/testprograms/array-heap_example.c @@ -69,7 +69,7 @@ main(void) ir_graph *main_irg; ir_node *array, *array_ptr, *c3, *elt, *val, *x; - init_firm (); + init_firm (NULL); /* make basic type information for primitive type int. In Sather primitive types are represented by a class. diff --git a/testprograms/array-stack_example.c b/testprograms/array-stack_example.c index 10ac2a4bf..af8eb0ef5 100644 --- a/testprograms/array-stack_example.c +++ b/testprograms/array-stack_example.c @@ -59,7 +59,7 @@ main(void) ir_graph *main_irg; ir_node *array_ptr, *c3, *elt, *val, *x; - init_firm (); + init_firm (NULL); printf("\nCreating an IR graph: ARRAY-STACK_EXAMPLE...\n"); diff --git a/testprograms/call_str_example.c b/testprograms/call_str_example.c index ff4f0badd..19e5082ac 100644 --- a/testprograms/call_str_example.c +++ b/testprograms/call_str_example.c @@ -36,7 +36,7 @@ int main(int argc, char **argv) printf("\nCreating an IR graph: CALL_STR_EXAMPLE...\n"); /* init library */ - init_firm (); + init_firm (NULL); string_ptr = new_type_pointer ( id_from_str ("ptr_to_string", 13), diff --git a/testprograms/cond_example.c b/testprograms/cond_example.c index 9dff71c06..dfbbcf6a2 100644 --- a/testprograms/cond_example.c +++ b/testprograms/cond_example.c @@ -35,7 +35,7 @@ int main(int argc, char **argv) printf("\nCreating an IR graph: COND_EXAMPLE...\n"); /* init library */ - init_firm (); + init_firm (NULL); /*** Make basic type information for primitive type int. ***/ prim_t_int = new_type_primitive(id_from_str ("int", 3), mode_Is); diff --git a/testprograms/const_ent_example.c b/testprograms/const_ent_example.c index a0d8bb3e0..c9df09a3c 100644 --- a/testprograms/const_ent_example.c +++ b/testprograms/const_ent_example.c @@ -48,7 +48,7 @@ int main(int argc, char **argv) printf("Creating type information...\n"); /** init library */ - init_firm (); + init_firm (NULL); /** make idents for all used identifiers in the program. */ Ci = id_from_str("C", strlen("C")); diff --git a/testprograms/const_eval_example.c b/testprograms/const_eval_example.c index 941620c1c..66c21f437 100644 --- a/testprograms/const_eval_example.c +++ b/testprograms/const_eval_example.c @@ -38,7 +38,7 @@ main(void) printf("\nCreating an IR graph: CONST_EVAL_EXAMPLE...\n"); - init_firm (); + init_firm (NULL); /*** Make basic type information for primitive type int. ***/ prim_t_int = new_type_primitive(id_from_str ("int", 3), mode_Is); diff --git a/testprograms/dead_block_example.c b/testprograms/dead_block_example.c index e7513b8b4..5a4d04002 100644 --- a/testprograms/dead_block_example.c +++ b/testprograms/dead_block_example.c @@ -55,7 +55,7 @@ int main(int argc, char **argv) *deadBlock, *x; /* init library */ - init_firm (); + init_firm (NULL); /*** Make basic type information for primitive type int. ***/ prim_t_int = new_type_primitive(id_from_str ("int", 3), mode_Is); diff --git a/testprograms/empty.c b/testprograms/empty.c index 7a26984e7..0a43fb93e 100644 --- a/testprograms/empty.c +++ b/testprograms/empty.c @@ -35,7 +35,7 @@ int main(int argc, char **argv) printf("\nCreating an IR graph: EMPTY...\n"); /* init library */ - init_firm (); + init_firm (NULL); /** Build type information for the procedure. **/ diff --git a/testprograms/endless_loop.c b/testprograms/endless_loop.c index 661395ee7..e4b098833 100644 --- a/testprograms/endless_loop.c +++ b/testprograms/endless_loop.c @@ -47,7 +47,7 @@ main(void) printf("\nCreating an IR graph: ENDLESS_LOOP_EXAMPLE...\n"); - init_firm (); + init_firm (NULL); set_optimize(1); set_opt_constant_folding(1); diff --git a/testprograms/float_example.c b/testprograms/float_example.c index 783ada129..a3994e1a7 100644 --- a/testprograms/float_example.c +++ b/testprograms/float_example.c @@ -37,7 +37,7 @@ int main(int argc, char **argv) printf("\nCreating an IR graph: EMPTY...\n"); /* init library */ - init_firm (); + init_firm (NULL); /** Build type information for the procedure. **/ diff --git a/testprograms/global_cse.c b/testprograms/global_cse.c index 4f2772d21..9e7ba99c0 100644 --- a/testprograms/global_cse.c +++ b/testprograms/global_cse.c @@ -43,7 +43,7 @@ main(void) printf("\nCreating an IR graph: GLOBAL_CSE_EXAMPLE...\n"); - init_firm (); + init_firm (NULL); set_optimize(1); set_opt_constant_folding(1); diff --git a/testprograms/global_var_example.c b/testprograms/global_var_example.c index d149a1494..056b25bb4 100644 --- a/testprograms/global_var_example.c +++ b/testprograms/global_var_example.c @@ -43,7 +43,7 @@ int main(int argc, char **argv) printf("\nCreating an IR graph: GLOBAL_VAR ...\n"); /* init library */ - init_firm (); + init_firm (NULL); /* make basic type information for primitive type int. In Sather primitive types are represented by a class. diff --git a/testprograms/if_else_example.c b/testprograms/if_else_example.c index f4f9246e4..cd1a4783b 100644 --- a/testprograms/if_else_example.c +++ b/testprograms/if_else_example.c @@ -44,7 +44,7 @@ int main(int argc, char **argv) printf("\ncreating an IR graph: IF_ELSE_EXAMPLE...\n"); /* init library */ - init_firm (); + init_firm (NULL); /*** Make basic type information for primitive type int. ***/ prim_t_int = new_type_primitive(id_from_str ("int", 3), mode_Is); diff --git a/testprograms/if_example.c b/testprograms/if_example.c index 3758a1d53..2d1f424b0 100644 --- a/testprograms/if_example.c +++ b/testprograms/if_example.c @@ -38,7 +38,7 @@ main(void) printf("\nCreating an IR graph: IF_EXAMPLE...\n"); - init_firm (); + init_firm (NULL); #define CLASSNAME "IF_EXAMPLE" #define METHODNAME "IF_EXAMPLE_main" diff --git a/testprograms/if_while_example.c b/testprograms/if_while_example.c index cc3587d6e..7c60272e5 100644 --- a/testprograms/if_while_example.c +++ b/testprograms/if_while_example.c @@ -46,7 +46,7 @@ main(void) printf("\nCreating an IR graph: IF_WHILE_EXAMPLE...\n"); - init_firm (); + init_firm (NULL); turn_off_edge_labels(); set_optimize(1); diff --git a/testprograms/inheritance_example.c b/testprograms/inheritance_example.c index 03bdc2700..0e9490729 100644 --- a/testprograms/inheritance_example.c +++ b/testprograms/inheritance_example.c @@ -48,7 +48,7 @@ int main(int argc, char **argv) printf("\nCreating type information...\n"); /** init library */ - init_firm (); + init_firm (NULL); /** make idents for all used identifiers in the program. */ ii = id_from_str("i", strlen("i")); diff --git a/testprograms/irr_cf_example.c b/testprograms/irr_cf_example.c index 722230874..96e27ab25 100644 --- a/testprograms/irr_cf_example.c +++ b/testprograms/irr_cf_example.c @@ -56,7 +56,7 @@ int main(int argc, char **argv) printf("\nCreating an IR graph: IRR_CF...\n"); /* init library */ - init_firm (); + init_firm (NULL); set_opt_constant_folding(0); /* so that stupid test are not evaluated. */ /* FIRM was designed for oo languages where all methods belong to a class. diff --git a/testprograms/irr_loop_example.c b/testprograms/irr_loop_example.c index 3129af8b2..6d8da5733 100644 --- a/testprograms/irr_loop_example.c +++ b/testprograms/irr_loop_example.c @@ -47,7 +47,7 @@ int main(int argc, char **argv) /* init library */ - init_firm (); + init_firm (NULL); set_opt_constant_folding (0); /* so that the stupid tests are not optimized. */ set_opt_cse(1); set_opt_dead_node_elimination(1); diff --git a/testprograms/memory_example.c b/testprograms/memory_example.c index b6a6e796e..5e2706b43 100644 --- a/testprograms/memory_example.c +++ b/testprograms/memory_example.c @@ -66,7 +66,7 @@ main(void) printf("\nCreating an IR graph: MEMORY_EXAMPLE...\n"); - init_firm (); + init_firm (NULL); set_opt_dead_node_elimination (1); diff --git a/testprograms/oo_inline_example.c b/testprograms/oo_inline_example.c index 0c250c41c..af2122c17 100644 --- a/testprograms/oo_inline_example.c +++ b/testprograms/oo_inline_example.c @@ -58,7 +58,7 @@ main(void) int i; - init_firm (); + init_firm (NULL); set_optimize(1); set_opt_inline (1); diff --git a/testprograms/oo_program_example.c b/testprograms/oo_program_example.c index 73ae9c907..dcd5ca0ea 100644 --- a/testprograms/oo_program_example.c +++ b/testprograms/oo_program_example.c @@ -55,7 +55,7 @@ main(void) int i; - init_firm (); + init_firm (NULL); set_opt_constant_folding(1); set_opt_cse(1); diff --git a/testprograms/three_cfpred_example.c b/testprograms/three_cfpred_example.c index 1570e1833..51a04e13c 100644 --- a/testprograms/three_cfpred_example.c +++ b/testprograms/three_cfpred_example.c @@ -59,7 +59,7 @@ int main(int argc, char **argv) *scndCondBlock, *Block2, *Block3, *x; /* init library */ - init_firm (); + init_firm (NULL); set_optimize(1); diff --git a/testprograms/while_example.c b/testprograms/while_example.c index 69d2bdfb1..6039d4507 100644 --- a/testprograms/while_example.c +++ b/testprograms/while_example.c @@ -42,7 +42,7 @@ main(void) printf("\nCreating an IR graph: WHILE_EXAMPLE...\n"); - init_firm (); + init_firm (NULL); set_optimize(1); set_opt_constant_folding(1); -- 2.20.1