[PATCH] make it safe to include basic-block.h and tree-flow.h from C++
Rafael Espíndola
rafael.espindola@gmail.com
Fri Dec 9 17:53:00 GMT 2005
> Actually your patch is incorrect and does not fix the real issue.
> The problem is in the struct edge_prediction.
> struct edge_prediction GTY((chain_next ("%h.next")))
> {
> struct edge_prediction *next;
> edge edge;
> enum br_predictor predictor;
> int probability;
> };
>
> You should change the name edge to something different.
> That will fix the issue without change all of edge in tree-flow.h.
I had to change only one edge definition in tree-flow.h: The one in
edge_prediction.
Changing the member name is likely to be a larger patch.
> -- Pinski
>
Rafael
More information about the Gcc-patches
mailing list