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]

Re: How to GTYize a struct properly?


gengtype doesn't support anonymous structures or unions, you need to
give them a name.  (I don't remember if this is simply a limitation of
the existing implementation or if it's more fundamental.)

OK, naming them has helped. Out of curiosity, why does following


typedef int *lambda_vector;

typedef lambda_vector *lambda_matrix;

typedef struct GTY(())
{
 lambda_matrix matrix; /* <---- here */
 int rowsize;
 int colsize;
 int denominator;
} *lambda_trans_matrix;

make gengtype complain about unknown type "lambda_matrix"?

--
Laurynas


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