projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mark ebp output of leave as ignore
[libfirm]
/
ir
/
be
/
beifg_pointer.c
diff --git
a/ir/be/beifg_pointer.c
b/ir/be/beifg_pointer.c
index
5f0b8a9
..
5dfc09f
100644
(file)
--- a/
ir/be/beifg_pointer.c
+++ b/
ir/be/beifg_pointer.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-200
7
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-24,9
+24,7
@@
* @date 18.11.2005
* @version $Id$
*/
* @date 18.11.2005
* @version $Id$
*/
-#ifdef HAVE_CONFIG_H
#include "config.h"
#include "config.h"
-#endif
#include <stdlib.h>
#include <stdlib.h>
@@
-85,9
+83,11
@@
typedef struct _ptr_iter_t {
/* PRIVATE FUNCTIONS */
/* PRIVATE FUNCTIONS */
-static void *ptr_irn_data_init(ir_phase *ph, ir_node *irn, void *data)
+static void *ptr_irn_data_init(ir_phase *ph,
const
ir_node *irn, void *data)
{
ptr_head_t *head = phase_alloc(ph, sizeof(*head));
{
ptr_head_t *head = phase_alloc(ph, sizeof(*head));
+ (void) irn;
+ (void) data;
INIT_LIST_HEAD(&head->list);
return head;
}
INIT_LIST_HEAD(&head->list);
return head;
}
@@
-109,10
+109,9
@@
static ptr_head_t *ptr_get_new_head(ifg_pointer_t *ifg)
static void write_pointers(bitset_t *live, ifg_pointer_t *ifg)
{
ir_node *live_irn;
static void write_pointers(bitset_t *live, ifg_pointer_t *ifg)
{
ir_node *live_irn;
- bitset_pos_t elm;
+ bitset_pos_t
elm;
- bitset_foreach_irn(ifg->env->irg, live, elm, live_irn)
- {
+ bitset_foreach_irn(ifg->env->irg, live, elm, live_irn) {
ptr_head_t *head = phase_get_or_set_irn_data(&ifg->ph, live_irn);
ptr_head_t *element = ptr_get_new_head(ifg);
ptr_head_t *head = phase_get_or_set_irn_data(&ifg->ph, live_irn);
ptr_head_t *element = ptr_get_new_head(ifg);
@@
-603,16
+602,16
@@
static ir_node *ifg_pointer_neighbours_begin(const void *self, void *iter, const
static ir_node *ifg_pointer_neighbours_next(const void *self, void *iter)
{
static ir_node *ifg_pointer_neighbours_next(const void *self, void *iter)
{
+ (void) self;
return get_next_neighbour(iter);
}
static void ifg_pointer_neighbours_break(const void *self, void *iter)
{
ptr_iter_t *it = iter;
return get_next_neighbour(iter);
}
static void ifg_pointer_neighbours_break(const void *self, void *iter)
{
ptr_iter_t *it = iter;
+ (void) self;
bitset_free(it->visited_neighbours);
bitset_free(it->visited_neighbours);
-
- return;
}
static ir_node *ifg_pointer_nodes_begin(const void *self, void *iter)
}
static ir_node *ifg_pointer_nodes_begin(const void *self, void *iter)
@@
-622,11
+621,14
@@
static ir_node *ifg_pointer_nodes_begin(const void *self, void *iter)
static ir_node *ifg_pointer_nodes_next(const void *self, void *iter)
{
static ir_node *ifg_pointer_nodes_next(const void *self, void *iter)
{
+ (void) self;
return get_next_irn(iter);
}
static void ifg_pointer_nodes_break(const void *self, void *iter)
{
return get_next_irn(iter);
}
static void ifg_pointer_nodes_break(const void *self, void *iter)
{
+ (void) self;
+ (void) iter;
return;
}
return;
}
@@
-666,7
+668,7
@@
static const be_ifg_impl_t ifg_pointer_impl = {
be_ifg_t *be_ifg_pointer_new(const be_chordal_env_t *env)
{
be_ifg_t *be_ifg_pointer_new(const be_chordal_env_t *env)
{
- ifg_pointer_t *ifg
= xmalloc(sizeof(*ifg)
);
+ ifg_pointer_t *ifg
= XMALLOC(ifg_pointer_t
);
ifg->impl = &ifg_pointer_impl;
ifg->env = env;
ifg->impl = &ifg_pointer_impl;
ifg->env = env;