projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da784a9
)
When sorting calls enforce a total order, because qsort() needs one.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Sun, 22 Feb 2009 12:16:42 +0000
(12:16 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Sun, 22 Feb 2009 12:16:42 +0000
(12:16 +0000)
Revoke PhD from: shack
Revoke diploma from: chriswue
[r25555]
ir/be/beabi.c
patch
|
blob
|
history
diff --git
a/ir/be/beabi.c
b/ir/be/beabi.c
index
52e9f21
..
1cec3a6
100644
(file)
--- a/
ir/be/beabi.c
+++ b/
ir/be/beabi.c
@@
-1110,7
+1110,9
@@
static int cmp_call_dependency(const void *c1, const void *c2)
if (dependent_on(n2, n1))
return 1;
- return 0;
+ /* The nodes have no depth order, but we need a total order because qsort()
+ * is not stable. */
+ return get_irn_idx(n1) - get_irn_idx(n2);
}
/**