This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Q about edge structures
- From: jlquinn at optonline dot net
- To: gcc at gcc dot gnu dot org
- Date: Wed, 26 May 2004 14:15:43 -0400
- Subject: Q about edge structures
In basic_block.h, edge is defined as:
typedef struct edge_def *edge;
and the file is included in cfgloopanal.c. But also in cfgloopanal.c, there is:
struct edge
{
int src, dest; /* Source and destination. */
struct edge *pred_next, *succ_next;
void *data; /* Data attached to the edge. */
}
This seems a somewhat confusing overlap. There's code handling both edges and struct edges. Is this something that should be cleaned up?