alias.c (get_alias_set): Be ready for TYPE_CANONICAL of ptr_type_node to not be ptr_t...
authorJan Hubicka <hubicka@ucw.cz>
Sun, 7 Jun 2015 21:30:58 +0000 (23:30 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 7 Jun 2015 21:30:58 +0000 (21:30 +0000)
commitccb5ad373f204cc5690dabd1298503fde739a8ed
tree99c2edf394ef8a6f40706dc42eb4d7f0f1f7b48d
parentd7b35f22be0a732140022245c766fa323f1a768d
alias.c (get_alias_set): Be ready for TYPE_CANONICAL of ptr_type_node to not be ptr_to_node.

* alias.c (get_alias_set): Be ready for TYPE_CANONICAL
of ptr_type_node to not be ptr_to_node.
* tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
TREE_TYPE of pointers.
* gimple-expr.c (useless_type_conversion): Reorder the check for
function pointers and TYPE_CANONICAL.
* lto.c (hash_canonical_type): Do not hash TREE_CODE of TREE_TYPE of
pointers.
* gfortran.dg/lto/bind_c-1_0.f90: New testcase.
* gfortran.dg/lto/bind_c-1_1.c: New testcase.
* gcc.dg/lto/c-compatible-types_0.c: Rename to ...
* gcc.dg/lto/c-compatible-types-1_0.c: this one; fix template
* gcc.dg/lto/c-compatible-types_1.c: Rename to ...
* gcc.dg/lto/c-compatible-types-1_1.c: this one; harden for
-fshort-enum.

From-SVN: r224201
13 files changed:
gcc/ChangeLog
gcc/alias.c
gcc/gimple-expr.c
gcc/lto/ChangeLog
gcc/lto/lto.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/c-compatible-types-1_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/c-compatible-types-1_1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/c-compatible-types_0.c [deleted file]
gcc/testsuite/gcc.dg/lto/c-compatible-types_1.c [deleted file]
gcc/testsuite/gfortran.dg/lto/bind_c-1_0.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/lto/bind_c-1_1.c [new file with mode: 0644]
gcc/tree.c