This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How to parse a record bitmask field in plugin?
- From: crasypantz <ihavecrazypants at hotmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 26 Jan 2016 14:04:52 -0700 (MST)
- Subject: How to parse a record bitmask field in plugin?
- Authentication-results: sourceware.org; auth=none
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.