diff options
Diffstat (limited to 'gcc/java/java-tree.h')
-rw-r--r-- | gcc/java/java-tree.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h index 02f93e26fb7..65a758946a1 100644 --- a/gcc/java/java-tree.h +++ b/gcc/java/java-tree.h @@ -769,8 +769,7 @@ union lang_tree_node #define MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC(T) \ if (DECL_LANG_SPECIFIC (T) == NULL) \ { \ - DECL_LANG_SPECIFIC ((T)) \ - = ggc_alloc_cleared (sizeof (struct lang_decl)); \ + DECL_LANG_SPECIFIC ((T)) = GGC_CNEW (struct lang_decl); \ DECL_LANG_SPECIFIC (T)->desc = LANG_DECL_VAR; \ } @@ -900,7 +899,7 @@ struct lang_decl GTY(()) #define MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC(T) \ if (TYPE_LANG_SPECIFIC ((T)) == NULL) \ TYPE_LANG_SPECIFIC ((T)) \ - = ggc_alloc_cleared (sizeof (struct lang_type)); + = GGC_CNEW (struct lang_type); #define TYPE_DUMMY(T) (TYPE_LANG_SPECIFIC(T)->dummy_class) |