lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p for diagnostics.
authorRichard Guenther <rguenther@suse.de>
Mon, 9 May 2011 16:00:48 +0000 (16:00 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 9 May 2011 16:00:48 +0000 (16:00 +0000)
commit0ca8de87c419963448108ba0fde0d818bd18df79
treea79ad85086404751a02141c8c0a58cefebf305df
parentb04fa7381131433b4019acea6b8e95aadd60aec4
lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p for diagnostics.

2011-05-09  Richard Guenther  <rguenther@suse.de>

* lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
for diagnostics.
(lto_symtab_merge): Likewise.  Do not register types here.
(lto_symtab_merge_decls_2): Likewise.
(lto_symtab_merge_decls_1): Likewise.
* gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
* gimple.c (enum gtc_mode): Declare.
(gimple_types_compatible_p): Make static.

From-SVN: r173575
gcc/ChangeLog
gcc/gimple.c
gcc/gimple.h
gcc/lto-symtab.c