working on type declaration

piervit@pvittet.com piervit@pvittet.com
Wed Mar 16 16:51:00 GMT 2011


Hello,

I would like to know at which level of GCC (GENERICS, GIMPLE...) I 
could get informations about the C types (created with typedef) which 
are defined.
I would like to parse type definition in order to know if the type is 
a pointer or not, for exemple, if I have the following type:

typedef struct _account{
   int    account_number;
   float  balance;
} * account;


I have tried to look at GIMPLE and IPA, however it looks like, at this 
state, the work is already done and the use of the type are replaced by 
the use of a "struct account * ". Moreover I can't find where this 
struct is keept in gcc.


Thanks

Pierre Vittet



More information about the Gcc-help mailing list