diff options
author | Richard Guenther <rguenther@suse.de> | 2011-05-09 16:00:48 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-05-09 16:00:48 +0000 |
commit | 0ca8de87c419963448108ba0fde0d818bd18df79 (patch) | |
tree | a79ad85086404751a02141c8c0a58cefebf305df /gcc/gimple.c | |
parent | b04fa7381131433b4019acea6b8e95aadd60aec4 (diff) | |
download | gcc-0ca8de87c419963448108ba0fde0d818bd18df79.zip gcc-0ca8de87c419963448108ba0fde0d818bd18df79.tar.gz gcc-0ca8de87c419963448108ba0fde0d818bd18df79.tar.bz2 |
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
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r-- | gcc/gimple.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c index 385c098..af86617 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -3208,6 +3208,8 @@ gimple_call_copy_skip_args (gimple stmt, bitmap args_to_skip) } +enum gtc_mode { GTC_MERGE = 0, GTC_DIAG = 1 }; + static hashval_t gimple_type_hash_1 (const void *, enum gtc_mode); /* Structure used to maintain a cache of some type pairs compared by @@ -3908,7 +3910,7 @@ pop: FOR_MERGING_P is true the an incomplete type and a complete type are considered different, otherwise they are considered compatible. */ -bool +static bool gimple_types_compatible_p (tree t1, tree t2, enum gtc_mode mode) { VEC(type_pair_t, heap) *sccstack = NULL; |