diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-11 06:28:35 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-11 06:28:35 +0000 |
commit | f0727156003b474e6bd987b4d704f7929dad0fd2 (patch) | |
tree | 420342e937a38ecbfb6c217f8abd0a9f255e7a29 /libobjc/encoding.c | |
parent | 291424c3d7a0bf798b55504743bec1c586a3bbd3 (diff) | |
download | gcc-f0727156003b474e6bd987b4d704f7929dad0fd2.tar.gz |
2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
PR libobjc/25346
* objc/objc-api.h (_C_BOOL): New define.
* encoding.c (objc_sizeof_type): Handle _C_BOOL.
(objc_alignof_type): Likewise.
(objc_skip_typespec): Likewise.
2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
PR libobjc/25346
* objc.dg/encode-7.m: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108378 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/encoding.c')
-rw-r--r-- | libobjc/encoding.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libobjc/encoding.c b/libobjc/encoding.c index efdc2f0a161..7f6004fb9ca 100644 --- a/libobjc/encoding.c +++ b/libobjc/encoding.c @@ -123,6 +123,10 @@ objc_sizeof_type (const char *type) } switch (*type) { + case _C_BOOL: + return sizeof (_Bool); + break; + case _C_ID: return sizeof (id); break; @@ -273,6 +277,10 @@ objc_alignof_type (const char *type) /* do nothing */; } switch (*type) { + case _C_BOOL: + return __alignof__ (_Bool); + break; + case _C_ID: return __alignof__ (id); break; @@ -496,6 +504,7 @@ objc_skip_typespec (const char *type) case _C_INT: case _C_UINT: case _C_LNG: + case _C_BOOL: case _C_ULNG: case _C_LNG_LNG: case _C_ULNG_LNG: |