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]

[committed] Fix libobjc/25346, libobjc vs _Bool


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).


Committed to fix this problem.


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.

* objc.dg/encode-7.m: New test.




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]