How to parse a record bitmask field in plugin?

crasypantz ihavecrazypants@hotmail.com
Tue Jan 26 21:04:00 GMT 2016


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.



More information about the Gcc-help mailing list