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] | |
Hello, I read http://gcc.gnu.org/onlinedocs/gccint/Trees.html#Trees to know how to use the internal representation used by GCC. I'm looking for a field or a macro to get some informations. I'm afraid to see them missing. Look at the example : typedef int t1; typedef int t2[16]; t1 var1[16]; // (1) t2 var2; // (2) (1) the original type of var1 is described by a ARRAY_TYPE node of INTEGER_TYPE. TREE_TYPE return the original type. The TREE_TYPE macro return the original type instead of the expected ARRAY_TYPE node of TYPE_DECL node : the informations about the typedef seems to be missing. (2) the original type of var2 is described by a ARRAY_TYPE node if INTEGER_TYPE. TREE_TYPE macro return the TYPE_DECL node. Is it possible to get the full informations in the case (1) ? Please see the attachment files to see the example (done using gcc3.0.4). Best regards Richard BUCHMANN
Attachment:
test_typedef4.cpp
Description: Text document
Attachment:
test_typedef4.cpp.tu
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |