projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unused variable.
[libfirm]
/
ir
/
debug
/
firm_ycomp.c
diff --git
a/ir/debug/firm_ycomp.c
b/ir/debug/firm_ycomp.c
index
9c2c937
..
a451bfd
100644
(file)
--- a/
ir/debug/firm_ycomp.c
+++ b/
ir/debug/firm_ycomp.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 16.11.2006
* @version $Id$
*/
* @date 16.11.2006
* @version $Id$
*/
-#ifdef HAVE_CONFIG_H
#include "config.h"
#include "config.h"
-#endif /* HAVE_CONFIG_H */
#include "assert.h"
#include "irhooks.h"
#include "assert.h"
#include "irhooks.h"
@@
-143,7
+141,7
@@
static int cmp_nodes(const void *a, const void *b) {
return n1->irn != n2->irn;
}
return n1->irn != n2->irn;
}
-static
INLINE
void send_cmd(firm_ycomp_dbg_t *dbg, const char *buf) {
+static
inline
void send_cmd(firm_ycomp_dbg_t *dbg, const char *buf) {
ssize_t res, len;
len = strlen(buf);
ssize_t res, len;
len = strlen(buf);
@@
-193,7
+191,7
@@
static void firm_ycomp_debug_init_realizer(firm_ycomp_dbg_t *dbg) {
/**
* Retrieve the appropriate realizer for given node.
*/
/**
* Retrieve the appropriate realizer for given node.
*/
-static
INLINE
unsigned get_node_realizer(ir_node *node) {
+static
inline
unsigned get_node_realizer(ir_node *node) {
unsigned realizer;
ir_opcode opc = get_irn_opcode(node);
unsigned realizer;
ir_opcode opc = get_irn_opcode(node);
@@
-224,7
+222,7
@@
static INLINE unsigned get_node_realizer(ir_node *node) {
/**
* Retrieve the appropriate realizer for given edge.
*/
/**
* Retrieve the appropriate realizer for given edge.
*/
-static
INLINE
unsigned get_edge_realizer(ir_node *src, ir_node *tgt) {
+static
inline
unsigned get_edge_realizer(ir_node *src, ir_node *tgt) {
unsigned realizer;
ir_mode *tgt_mode, *src_mode;
unsigned realizer;
ir_mode *tgt_mode, *src_mode;
@@
-311,9
+309,12
@@
static void firm_ycomp_debug_new_node(void *context, ir_graph *graph, ir_node *n
/**
* Clear the old irg if it has some data and create a new one.
*/
/**
* Clear the old irg if it has some data and create a new one.
*/
-static void firm_ycomp_debug_new_irg(void *context, ir_graph *irg, ir_entity *ent) {
+static void firm_ycomp_debug_new_irg(void *context, ir_graph *irg,
+ ir_entity *ent)
+{
firm_ycomp_dbg_t *dbg = context;
char buf[SEND_BUF_SIZE];
firm_ycomp_dbg_t *dbg = context;
char buf[SEND_BUF_SIZE];
+ (void) irg;
if (yy_dbg.has_data) {
send_cmd(dbg, "deleteGraph\n");
if (yy_dbg.has_data) {
send_cmd(dbg, "deleteGraph\n");
@@
-510,6
+511,7
@@
static void firm_ycomp_debug_turn_into_id(void *context, ir_node *old_node) {
*/
static void firm_ycomp_debug_dead_node_elim(void *context, ir_graph *irg, int start) {
firm_ycomp_dbg_t *dbg = context;
*/
static void firm_ycomp_debug_dead_node_elim(void *context, ir_graph *irg, int start) {
firm_ycomp_dbg_t *dbg = context;
+ (void) irg;
dbg->in_dead_node_elim = start != 0;
}
dbg->in_dead_node_elim = start != 0;
}