diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2019-10-10 15:04:44 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2019-10-10 13:04:44 +0000 |
commit | 019f36a648fd3f35e562eb7ddd3ff6393b30b4c7 (patch) | |
tree | 3bccfeacaa19816afb231f29ac6f6a4f55cf7b36 /gcc/cgraph.c | |
parent | 9142736ee21629b159504a474f686cabb1612579 (diff) |
re PR middle-end/92037 (LTO bootstrap broken in selftests)
PR middle-end/92037
* cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
rather than ggc_alloc_cleared to alloc symbol table.
* toplev.c (general_init): Likewise.
* cgraph.h (symbol_table): Explicitly construct every field.
From-SVN: r276804
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 0c3c6e7cac4..8b752d83809 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -3835,7 +3835,7 @@ symbol_table_test::symbol_table_test () { gcc_assert (saved_symtab == NULL); saved_symtab = symtab; - symtab = new (ggc_cleared_alloc <symbol_table> ()) symbol_table (); + symtab = new (ggc_alloc <symbol_table> ()) symbol_table (); } /* Destructor. Restore the old value of symtab. */ |