diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-08 12:32:19 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-08 12:32:19 +0000 |
commit | b06e8cd5450a19377dbf8576e18e750b406b27c5 (patch) | |
tree | 1f7fb017d2dd22276b4e2f71fd3fd1a72e5b5a43 /gcc/lto-streamer-out.c | |
parent | daa9f80e06402d35cd7e4b16bd72dc828a90369f (diff) | |
download | gcc-b06e8cd5450a19377dbf8576e18e750b406b27c5.tar.gz |
2011-12-08 Richard Guenther <rguenther@suse.de>
PR lto/50747
* lto-streamer-out.c (produce_symtab): Remove asserts.
* g++.dg/opt/pr50747-1_0.C: New testcase.
* g++.dg/opt/pr50747-2_0.C: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182108 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-streamer-out.c')
-rw-r--r-- | gcc/lto-streamer-out.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c index e5c79d11f62..80bf9e9fd4f 100644 --- a/gcc/lto-streamer-out.c +++ b/gcc/lto-streamer-out.c @@ -1450,11 +1450,7 @@ produce_symtab (struct output_block *ob, them indirectly or via vtables. Do not output them to symbol table: they end up being undefined and just consume space. */ if (!node->address_taken && !node->callers) - { - gcc_assert (node->analyzed); - gcc_assert (DECL_DECLARED_INLINE_P (node->decl)); - continue; - } + continue; if (DECL_COMDAT (node->decl) && cgraph_comdat_can_be_unshared_p (node)) continue; |