This is the mail archive of the gcc-patches@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] |
I noticed this while making a compat like testsuite for libobjc's objc_sizeof_type function which uses the encoding from the front-end which then takes the encoded type to do the sizeof for a type. The problem here is that _Bool is encoded as 'B' but is not handled in libobjc because it was added after the initial encoding patch.
I have some more fixes in this area soon too and then I will commit the automated generated testsuite (I think some of them will fail on some targets like ppc-darwin or ppc-aix or even i686-darwin since their target macros don't really take the correct alignment into account for some cases, I am fixing that slowly but surely).
Thanks, Andrew Pinski
ChangeLog: * objc/objc-api.h (_C_BOOL): New define. * encoding.c (objc_sizeof_type): Handle _C_BOOL. (objc_alignof_type): Likewise. (objc_skip_typespec): Likewise.
Attachment:
fixbool.diff.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |