From 969c37b70d25aa628a3d4b8348dbf42fb6484e1e Mon Sep 17 00:00:00 2001 From: Laurynas Biveinis Date: Wed, 15 Sep 2010 03:08:22 +0000 Subject: [PATCH] c-lang.h (struct lang_type): Add variable_size GTY option. gcc/ChangeLog: 2010-09-14 Laurynas Biveinis * c-lang.h (struct lang_type): Add variable_size GTY option. gcc/lto/ChangeLog: 2010-09-14 Laurynas Biveinis * lto-tree.h (struct lang_type): Add variable_size GTY option. From-SVN: r164295 --- gcc/ChangeLog | 4 ++++ gcc/c-lang.h | 2 +- gcc/lto/ChangeLog | 4 ++++ gcc/lto/lto-tree.h | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 624a77315b5d..0bdcf13b1a49 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2010-09-15 Laurynas Biveinis + + * c-lang.h (struct lang_type): Add variable_size GTY option. + 2010-09-14 H.J. Lu PR bootstrap/45672 diff --git a/gcc/c-lang.h b/gcc/c-lang.h index c0bdc7cb9e5b..4fe1835e5d23 100644 --- a/gcc/c-lang.h +++ b/gcc/c-lang.h @@ -24,7 +24,7 @@ along with GCC; see the file COPYING3. If not see #include "c-family/c-common.h" #include "ggc.h" -struct GTY(()) lang_type { +struct GTY((variable_size)) lang_type { /* In a RECORD_TYPE, a sorted array of the fields of the type. */ struct sorted_fields_type * GTY ((reorder ("resort_sorted_fields"))) s; /* In an ENUMERAL_TYPE, the min and max values. */ diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index d719217ed022..5e4955b80c7d 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,7 @@ +2010-09-15 Laurynas Biveinis + + * lto-tree.h (struct lang_type): Add variable_size GTY option. + 2010-09-08 Jan Hubicka * lto.c (real_file_count, real_file_decl_data): New static vars. diff --git a/gcc/lto/lto-tree.h b/gcc/lto/lto-tree.h index 671fa4ade26d..d6d3ee486c6c 100644 --- a/gcc/lto/lto-tree.h +++ b/gcc/lto/lto-tree.h @@ -33,7 +33,7 @@ struct GTY(()) lang_decl int dummy; /* Added because ggc does not like empty structs. */ }; -struct GTY(()) lang_type +struct GTY((variable_size)) lang_type { int dummy; /* Added because ggc does not like empty structs. */ };