diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-09-04 14:14:28 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-09-04 14:14:28 +0000 |
commit | 4befb9f45e01a38d5cf225ca9d2d3e0b7a60c653 (patch) | |
tree | 37a2f18b9ddc64a6fda6a6cc4c075c72734d0ce7 /gcc/ipa.c | |
parent | 2f90489d16664569d24c3bc621f4cd99b49c1180 (diff) | |
download | gcc-4befb9f45e01a38d5cf225ca9d2d3e0b7a60c653.tar.gz |
* Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
* ipa-devirt.c: Include diganostic.h
(odr_type_d): Add types and types_set.
(hash_type_name): Work for types with vtables during LTO.
(odr_hasher::remove): Fix comment; destroy types_set.
(add_type_duplicate): New function,
(get_odr_type): Use it.
(dump_type_inheritance_graph): Dump type duplicates.
* ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
graph.
* tree.c (types_same_for_odr): Give exact answers on types with
virtual tables.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202258 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r-- | gcc/ipa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ipa.c b/gcc/ipa.c index b1759ae876c..37b6629b206 100644 --- a/gcc/ipa.c +++ b/gcc/ipa.c @@ -218,6 +218,8 @@ symtab_remove_unreachable_nodes (bool before_inlining_p, FILE *file) #ifdef ENABLE_CHECKING verify_symtab (); #endif + if (optimize && flag_devirtualize) + build_type_inheritance_graph (); if (file) fprintf (file, "\nReclaiming functions:"); #ifdef ENABLE_CHECKING |