From 9cb9b9379e8683825f064c91cd283fd0fb97a738 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 4 Jun 2015 18:38:50 +0200 Subject: lto.c (hash_canonical_type): Use tree_code_for_canonical_type_merging. * lto.c (hash_canonical_type): Use tree_code_for_canonical_type_merging. * tree.h (tree_code_for_canonical_type_merging): New function. * tree.c (gimple_canonical_types_compatible_p): Use tree_code_for_canonical_type_merging.. * gcc.dg/lto/c-compatible-types_0.c: New testcase. * gcc.dg/lto/c-compatible-types_1.c: New testcase. From-SVN: r224135 --- gcc/lto/ChangeLog | 4 ++++ gcc/lto/lto.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc/lto') diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index db0214b..2d6ddf5 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,7 @@ +2015-06-04 Jan Hubicka + + * lto.c (hash_canonical_type): Use tree_code_for_canonical_type_merging. + 2015-06-03 Jan Hubicka * lto.c (iterative_hash_canonical_type, diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index 75774a1..498eb80 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -319,7 +319,7 @@ hash_canonical_type (tree type) smaller sets; when searching for existing matching types to merge, only existing types having the same features as the new type will be checked. */ - hstate.add_int (TREE_CODE (type)); + hstate.add_int (tree_code_for_canonical_type_merging (TREE_CODE (type))); hstate.add_int (TYPE_MODE (type)); /* Incorporate common features of numerical types. */ -- cgit v1.1