projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sparc: va_arg functions may not use omit-fp
[libfirm]
/
ir
/
be
/
beabihelper.c
diff --git
a/ir/be/beabihelper.c
b/ir/be/beabihelper.c
index
7d3efb5
..
b957609
100644
(file)
--- a/
ir/be/beabihelper.c
+++ b/
ir/be/beabihelper.c
@@
-411,7
+411,7
@@
static ir_node *add_to_keep(ir_node *last_keep,
return last_keep;
}
return last_keep;
}
-
static void add_missing_keep_walker(ir_node *node, void *data
)
+
void be_add_missing_keeps_node(ir_node *node
)
{
int n_outs, i;
unsigned *found_projs;
{
int n_outs, i;
unsigned *found_projs;
@@
-419,7
+419,7
@@
static void add_missing_keep_walker(ir_node *node, void *data)
ir_mode *mode = get_irn_mode(node);
ir_node *last_keep;
ir_node **existing_projs;
ir_mode *mode = get_irn_mode(node);
ir_node *last_keep;
ir_node **existing_projs;
- (void) data;
+
if (mode != mode_T) {
if (!has_real_user(node)) {
const arch_register_req_t *req = arch_get_irn_register_req(node);
if (mode != mode_T) {
if (!has_real_user(node)) {
const arch_register_req_t *req = arch_get_irn_register_req(node);
@@
-483,6
+483,12
@@
static void add_missing_keep_walker(ir_node *node, void *data)
}
}
}
}
+static void add_missing_keep_walker(ir_node *node, void *data)
+{
+ (void)data;
+ be_add_missing_keeps_node(node);
+}
+
void be_add_missing_keeps(ir_graph *irg)
{
irg_walk_graph(irg, add_missing_keep_walker, NULL, NULL);
void be_add_missing_keeps(ir_graph *irg)
{
irg_walk_graph(irg, add_missing_keep_walker, NULL, NULL);
@@
-582,10
+588,10
@@
static int cmp_call_dependency(const void *c1, const void *c2)
* We MUST NOT order c > a and b > c. */
h1 = get_irn_height(heights, n1);
h2 = get_irn_height(heights, n2);
* We MUST NOT order c > a and b > c. */
h1 = get_irn_height(heights, n1);
h2 = get_irn_height(heights, n2);
- if (h1 < h2) return
-
1;
- if (h1 > h2) return
1;
+ if (h1 < h2) return
1;
+ if (h1 > h2) return
-
1;
/* Same height, so use a random (but stable) order */
/* Same height, so use a random (but stable) order */
- return get_irn_idx(n
1) - get_irn_idx(n2
);
+ return get_irn_idx(n
2) - get_irn_idx(n1
);
}
/**
}
/**