From 3ea4ff2e264ccf1b5f3c63657f7fbca9894339ab Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 18 Dec 1995 19:31:18 -0500 Subject: (objc_alignof_type): Handle _C_PTR case. From-SVN: r10807 --- gcc/objc/encoding.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc') diff --git a/gcc/objc/encoding.c b/gcc/objc/encoding.c index 811fd3c..822c222 100644 --- a/gcc/objc/encoding.c +++ b/gcc/objc/encoding.c @@ -111,6 +111,7 @@ objc_sizeof_type(const char* type) return sizeof(double); break; + case _C_PTR: case _C_ATOM: case _C_CHARPTR: return sizeof(char*); @@ -217,6 +218,7 @@ objc_alignof_type(const char* type) return __alignof__(double); break; + case _C_PTR: case _C_ATOM: case _C_CHARPTR: return __alignof__(char*); -- cgit v1.1