How to parse a record bitmask field in plugin?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux