From 3ea4ff2e264ccf1b5f3c63657f7fbca9894339ab Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 18 Dec 1995 19:31:18 -0500 Subject: [PATCH] (objc_alignof_type): Handle _C_PTR case. From-SVN: r10807 --- gcc/objc/encoding.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/objc/encoding.c b/gcc/objc/encoding.c index 811fd3c989c..822c222f8e8 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*); -- 2.30.2