gimple.c (gimple_canonical_types, [...]): Move to lto/lto.c
authorRichard Biener <rguenther@suse.de>
Mon, 14 Oct 2013 12:06:38 +0000 (12:06 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 14 Oct 2013 12:06:38 +0000 (12:06 +0000)
commit83fd5d110eadec9102981082459e9fa5513b5124
tree5851ead175606fe8c897bc8ed1b707d4f2d9d845
parenta6dbd0f72b75340ceb96ea55ec18c01b6bee4ef2
gimple.c (gimple_canonical_types, [...]): Move to lto/lto.c

2013-10-14  Richard Biener  <rguenther@suse.de>

* gimple.c (gimple_canonical_types, canonical_type_hash_cache,
iterative_hash_canonical_type, gimple_canonical_type_hash,
gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
gimple_register_canonical_type, print_gimple_types_stats,
free_gimple_type_tables): Move to lto/lto.c
(gt-gimple.h): Do not include.
* gimple.h (gimple_register_canonical_type,
print_gimple_types_stats, free_gimple_type_tables): Remove.
* Makefile.in (GTFILES): Remove gimple.c.

lto/
* lto-lang.c (lto_init): Do not re-init canonical types here.
(lto_register_canonical_types): Move to ...
* lto.c (lto_register_canonical_types): ... here.
(gimple_canonical_types, canonical_type_hash_cache,
iterative_hash_canonical_type, gimple_canonical_type_hash,
gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
gimple_register_canonical_type): Add canonical type merging machinery
moved from gimple.c.
(read_cgraph_and_symbols): Init and free canonical type tables
here.
(print_lto_report_1): Report canonical type table stats here.

From-SVN: r203521
gcc/ChangeLog
gcc/Makefile.in
gcc/gimple.c
gcc/gimple.h
gcc/lto/ChangeLog
gcc/lto/lto-lang.c
gcc/lto/lto.c