tree.c (type_with_interoperable_signedness): New.
authorJan Hubicka <hubicka@ucw.cz>
Sat, 10 Oct 2015 19:43:49 +0000 (21:43 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 10 Oct 2015 19:43:49 +0000 (19:43 +0000)
commit9c4eeafc11dbd996949b3a0c3f5196e7c45ef92f
treea70d4b968b6a34668f485e3a39033f4dc68cf53c
parent05486daafd85d56f457ab6808a02de02d53d60b3
tree.c (type_with_interoperable_signedness): New.

* tree.c (type_with_interoperable_signedness): New.
(gimple_canonical_types_compatible_p): Use it.
* tree.h (type_with_interoperable_signedness): Declare

* lto.c (hash_canonical_type): Honor
type_with_interoperable_signedness.

* gfortran.dg/lto/bind_c-2_0.f90: New testcase.
* gfortran.dg/lto/bind_c-2_1.c: New testcase.
* gfortran.dg/lto/bind_c-3_0.f90: New testcase.
* gfortran.dg/lto/bind_c-3_1.c: New testcase.
* gfortran.dg/lto/bind_c-4_0.f90: New testcase.
* gfortran.dg/lto/bind_c-4_1.c: New testcase.
* gfortran.dg/lto/bind_c-5_0.f90: New testcase.
* gfortran.dg/lto/bind_c-5_1.c: New testcase.

From-SVN: r228680
13 files changed:
gcc/lto/ChangeLog
gcc/lto/lto.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/lto/bind_c-2_0.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/lto/bind_c-2_1.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/lto/bind_c-3_0.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/lto/bind_c-3_1.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/lto/bind_c-4_0.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/lto/bind_c-4_1.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/lto/bind_c-5_0.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/lto/bind_c-5_1.c [new file with mode: 0644]
gcc/tree.c
gcc/tree.h