diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2015-06-04 18:38:50 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2015-06-04 16:38:50 +0000 |
commit | 9cb9b9379e8683825f064c91cd283fd0fb97a738 (patch) | |
tree | c8294be6e931cc9efefd835049d806e5c39a7f5a /gcc/lto | |
parent | 19cd26a6b937349161ef2f7ae6bf41cee61bc81b (diff) | |
download | gcc-9cb9b9379e8683825f064c91cd283fd0fb97a738.tar.gz |
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
Diffstat (limited to 'gcc/lto')
-rw-r--r-- | gcc/lto/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/lto/lto.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index db0214beb31..2d6ddf5cdc7 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,7 @@ +2015-06-04 Jan Hubicka <hubicka@ucw.cz> + + * lto.c (hash_canonical_type): Use tree_code_for_canonical_type_merging. + 2015-06-03 Jan Hubicka <hubicka@ucw.cz> * lto.c (iterative_hash_canonical_type, diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index 75774a10600..498eb80450f 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. */ |