aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc/encoding.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-12-18 19:31:18 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1995-12-18 19:31:18 -0500
commit3ea4ff2e264ccf1b5f3c63657f7fbca9894339ab (patch)
tree797155e18c39f855b67bdbb1fdbf988de15f6944 /gcc/objc/encoding.c
parentfef610bec3e43ba3ebd7b7b50b176138443fef6e (diff)
downloadgcc-3ea4ff2e264ccf1b5f3c63657f7fbca9894339ab.zip
gcc-3ea4ff2e264ccf1b5f3c63657f7fbca9894339ab.tar.gz
gcc-3ea4ff2e264ccf1b5f3c63657f7fbca9894339ab.tar.bz2
(objc_alignof_type): Handle _C_PTR case.
From-SVN: r10807
Diffstat (limited to 'gcc/objc/encoding.c')
-rw-r--r--gcc/objc/encoding.c2
1 files changed, 2 insertions, 0 deletions
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*);