This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Feature Request: sizeof/typeof/offsetof for bit-fields
- From: Daurnimator <quae at daurnimator dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 28 Aug 2018 14:12:45 +1000
- Subject: Feature Request: sizeof/typeof/offsetof for bit-fields
I'm writing a binding generator and would love a way to get the size, type,
and offset of bit fields of an arbitrary struct.
To implement, it appears that 'bit_position' in tree.c has the information
required.
As a stranger to GCC development, what is the process to get such an
extension?
Daurn.