Q about edge structures

jlquinn@optonline.net jlquinn@optonline.net
Wed May 26 18:17:00 GMT 2004


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?





More information about the Gcc mailing list