diff mbox

: Bad gcc/gtype-desc.h generated when using sparse checkout

Message ID CAFULd4b=WchxR-YZXVRfO3mjM0Q8cMRYZnVW=+Y9uiuzasEsEg@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak July 24, 2012, 10:36 a.m. UTC
Hello!

Attached patch implements suggested solution [1] from thread, starting
at [2]. Patch works OK in my tree without ada directory.

gcc/lto/ChangeLog:

2012-07-24  Uros Bizjak  <ubizjak@gmail.com>

	* lto-tree.h (lang_decl): Add variable_size GTY option.

gcc/go/ChangeLog:

2012-07-24  Uros Bizjak  <ubizjak@gmail.com>

	* go-lang.c (lang_decl): Add variable_size GTY option.

gcc/c/ChangeLog:

2012-07-24  Uros Bizjak  <ubizjak@gmail.com>

	* c-lang.h (lang_decl): Add variable_size GTY option.

Tested on alphaev68-unknown-linux-gnu with all default languages + go + obj-c++.

OK for mainline?

[1] http://gcc.gnu.org/ml/gcc/2012-07/msg00057.html
[2] http://gcc.gnu.org/ml/gcc/2012-07/msg00054.html

Uros.

Comments

Laurynas Biveinis July 24, 2012, 10:38 a.m. UTC | #1
> gcc/lto/ChangeLog:
>
> 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
>
>         * lto-tree.h (lang_decl): Add variable_size GTY option.
>
> gcc/go/ChangeLog:
>
> 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
>
>         * go-lang.c (lang_decl): Add variable_size GTY option.
>
> gcc/c/ChangeLog:
>
> 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
>
>         * c-lang.h (lang_decl): Add variable_size GTY option.
>
> Tested on alphaev68-unknown-linux-gnu with all default languages + go + obj-c++.
>
> OK for mainline?

OK, thanks for doing this.
diff mbox

Patch

Index: gcc/lto/lto-tree.h
===================================================================
--- gcc/lto/lto-tree.h	(revision 189801)
+++ gcc/lto/lto-tree.h	(working copy)
@@ -28,7 +28,7 @@ 
   struct tree_identifier base;
 };
 
-struct GTY(()) lang_decl
+struct GTY((variable_size)) lang_decl
 {
   int dummy;  /* Added because ggc does not like empty structs.  */
 };
Index: gcc/go/go-lang.c
===================================================================
--- gcc/go/go-lang.c	(revision 189801)
+++ gcc/go/go-lang.c	(working copy)
@@ -50,7 +50,7 @@ 
 
 /* Language-dependent contents of a decl.  */
 
-struct GTY(()) lang_decl
+struct GTY((variable_size)) lang_decl
 {
   char dummy;
 };
Index: gcc/c/c-lang.h
===================================================================
--- gcc/c/c-lang.h	(revision 189801)
+++ gcc/c/c-lang.h	(working copy)
@@ -36,7 +36,7 @@ 
   tree objc_info;
 };
 
-struct GTY(()) lang_decl {
+struct GTY((variable_size)) lang_decl {
   char dummy;
 };