OSDN Git Service

gcc/ada:
[pf3gnuchains/gcc-fork.git] / gcc / fortran / trans.h
index 9ee8148..72f8a43 100644 (file)
@@ -630,7 +630,10 @@ enum gfc_array_kind
 };
 
 /* Array types only.  */
-struct GTY(()) lang_type        {
+/* FIXME: the variable_size annotation here is needed because these types are
+   variable-sized in some other frontends.  Due to gengtype deficiency the GTY
+   options of such types have to agree across all frontends. */
+struct GTY((variable_size))    lang_type        {
   int rank;
   enum gfc_array_kind akind;
   tree lbound[GFC_MAX_DIMENSIONS];
@@ -644,7 +647,7 @@ struct GTY(())      lang_type        {
   tree base_decl[2];
 };
 
-struct GTY(()) lang_decl {
+struct GTY((variable_size)) lang_decl {
   /* Dummy variables.  */
   tree saved_descriptor;
   /* Assigned integer nodes.  Stringlength is the IO format string's length.