aboutsummaryrefslogtreecommitdiff
path: root/gcc/objcp/objcp-decl.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/objcp/objcp-decl.h')
-rw-r--r--gcc/objcp/objcp-decl.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/gcc/objcp/objcp-decl.h b/gcc/objcp/objcp-decl.h
index 0c4f67a..2da7e71 100644
--- a/gcc/objcp/objcp-decl.h
+++ b/gcc/objcp/objcp-decl.h
@@ -62,14 +62,11 @@ extern tree objcp_end_compound_stmt (tree, int);
#undef TYPE_OBJC_INFO
#define TYPE_OBJC_INFO(TYPE) LANG_TYPE_CLASS_CHECK (TYPE)->objc_info
#undef SIZEOF_OBJC_TYPE_LANG_SPECIFIC
-#define SIZEOF_OBJC_TYPE_LANG_SPECIFIC sizeof (struct lang_type_class)
+#define SIZEOF_OBJC_TYPE_LANG_SPECIFIC sizeof (struct lang_type)
#undef ALLOC_OBJC_TYPE_LANG_SPECIFIC
-#define ALLOC_OBJC_TYPE_LANG_SPECIFIC(NODE) \
- do { \
- TYPE_LANG_SPECIFIC (NODE) = (struct lang_type *) \
- ggc_internal_cleared_alloc (sizeof (struct lang_type_class)); \
- TYPE_LANG_SPECIFIC (NODE)->u.c.h.is_lang_type_class = 1; \
- } while (0)
+#define ALLOC_OBJC_TYPE_LANG_SPECIFIC(NODE) \
+ (TYPE_LANG_SPECIFIC (NODE) = (struct lang_type *) \
+ ggc_internal_cleared_alloc (SIZEOF_OBJC_TYPE_LANG_SPECIFIC))
#define OBJCP_ORIGINAL_FUNCTION(name, args) (name)args