projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Grrr, CVS still messes up XML comments
[libfirm]
/
testprograms
/
recursions.c
diff --git
a/testprograms/recursions.c
b/testprograms/recursions.c
index
c70332e
..
a6d5add
100644
(file)
--- a/
testprograms/recursions.c
+++ b/
testprograms/recursions.c
@@
-33,7
+33,7
@@
ir_graph *make_method(char *name, int n_locs) {
ir_node *make_Call(ir_graph *c, int n_args, ir_node **args) {
ir_node *make_Call(ir_graph *c, int n_args, ir_node **args) {
- entity *ent = get_irg_ent(c);
+ entity *ent = get_irg_ent
ity
(c);
type *mtp = get_entity_type(ent);
symconst_symbol sym;
sym.entity_p = ent;
type *mtp = get_entity_type(ent);
symconst_symbol sym;
sym.entity_p = ent;
@@
-49,9
+49,9
@@
ir_node *make_Call(ir_graph *c, int n_args, ir_node **args) {
void close_method(int n_ins, ir_node **ins) {
ir_node *x = new_Return (get_store(), n_ins, ins);
void close_method(int n_ins, ir_node **ins) {
ir_node *x = new_Return (get_store(), n_ins, ins);
- mature_
b
lock (get_cur_block());
- add_i
n_edge
(get_cur_end_block(), x);
- mature_
b
lock (get_cur_end_block());
+ mature_
immB
lock (get_cur_block());
+ add_i
mmBlock_pred
(get_cur_end_block(), x);
+ mature_
immB
lock (get_cur_end_block());
finalize_cons(current_ir_graph);
}
finalize_cons(current_ir_graph);
}
@@
-172,10
+172,10
@@
main(void)
entity **free_methods;
int arr_len;
entity **free_methods;
int arr_len;
- cgana(&arr_len, &free_methods
, 0
);
+ cgana(&arr_len, &free_methods);
compute_callgraph();
find_callgraph_recursions();
compute_callgraph();
find_callgraph_recursions();
- dump_callgraph("");
+ //dump_callgraph(""); /* Order of edges depends on set.c, which is not deterministic. */
cg_construct(arr_len, free_methods);
printf("Use xvcg to view these graphs:\n");
cg_construct(arr_len, free_methods);
printf("Use xvcg to view these graphs:\n");