Message ID | CAFULd4b=WchxR-YZXVRfO3mjM0Q8cMRYZnVW=+Y9uiuzasEsEg@mail.gmail.com |
---|---|
State | New |
Headers | show |
> 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.
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; };