blob: d757e0245a002039048c9711ad75ce15895b6d5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
typedef struct basic_block_def *basic_block;
typedef struct gimple_seq_node_d *gimple_seq_node;
typedef struct gimple_seq_d *gimple_seq;
typedef struct
{
gimple_seq_node ptr;
gimple_seq seq;
basic_block bb;
} gimple_stmt_iterator;
typedef void *gimple;
extern void exit(int);
struct gimple_seq_node_d
{
gimple stmt;
struct gimple_seq_node_d *next;
};
struct gimple_seq_d
{
};
static __inline__ gimple_stmt_iterator
gsi_start (gimple_seq seq)
{
gimple_stmt_iterator i;
i.seq = seq;
return i;
}
static __inline__ unsigned char
gsi_end_p (gimple_stmt_iterator i)
{
return i.ptr == ((void *)0);
}
static __inline__ void
gsi_next (gimple_stmt_iterator *i)
{
i->ptr = i->ptr->next;
}
static __inline__ gimple
gsi_stmt (gimple_stmt_iterator i)
{
return i.ptr->stmt;
}
void
c_warn_unused_result (gimple_seq seq)
{
gimple_stmt_iterator i;
for (i = gsi_start (seq); !gsi_end_p (i); gsi_next (&i))
{
gimple g = gsi_stmt (i);
if (!g) exit(0);
}
}
|