This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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?




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]