This is the mail archive of the gcc-help@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]

How to parse a record bitmask field in plugin?


I am having difficulty getting the type name of an integer bit mask field.
For example:

struct Something {
    unsigned int unmasked;
    unsigned int masked:7;
}

Both field tree nodes for 'Something' have 'INTEGER_TYPE ==
TREE_CODE(node)'. For the 'unmasked' node I use 'TYPE_NAME(node)' to get the
type name 'unsigned int'. However, 'TREE_NAME' on the 'masked' node returns
null. How can I get the type name? I searched the archive and cannot find
anything related to the question. Hopefully I have not overlooked something
previously posted.

Again, your help is appreciated.



--
View this message in context: http://gcc.1065356.n5.nabble.com/How-to-parse-a-record-bitmask-field-in-plugin-tp1230118.html
Sent from the gcc - Help mailing list archive at Nabble.com.


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