lto.c (hash_canonical_type): Use tree_code_for_canonical_type_merging.
authorJan Hubicka <hubicka@ucw.cz>
Thu, 4 Jun 2015 16:38:50 +0000 (18:38 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 4 Jun 2015 16:38:50 +0000 (16:38 +0000)
commit9cb9b9379e8683825f064c91cd283fd0fb97a738
treec8294be6e931cc9efefd835049d806e5c39a7f5a
parent19cd26a6b937349161ef2f7ae6bf41cee61bc81b
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/ChangeLog
gcc/lto/ChangeLog
gcc/lto/lto.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/c-compatible-types_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/c-compatible-types_1.c [new file with mode: 0644]
gcc/tree.c
gcc/tree.h