lto-symtab.c: Include alias.h
authorJan Hubicka <hubicka@ucw.cz>
Wed, 25 Nov 2015 22:22:37 +0000 (23:22 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 25 Nov 2015 22:22:37 +0000 (22:22 +0000)
commit22bea0be95010c6efc39649d06e0f15c90ca38c4
treeb128369d416f1bc592a1609dd628ce3d44c5432f
parentc74f743ae4537e887a0b71411422b7984c2edde1
lto-symtab.c: Include alias.h

* lto-symtab.c: Include alias.h
(warn_type_compatibility_p): Replace types_compatible_p checks by
TBAA and size checks; set bit 2 if locations are TBAA incompatible.
(lto_symtab_merge): Compare DECL sizes.
(lto_symtab_merge_decls_2): Warn about TBAA in compatibility.
* gfortran.dg/lto/bind_c-6_0.f90: New testcase.
* gfortran.dg/lto/bind_c-6_1.c: New testcase.

From-SVN: r230911
gcc/lto/ChangeLog
gcc/lto/lto-symtab.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/20100603-1_0.C
gcc/testsuite/gfortran.dg/lto/bind_c-6_0.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/lto/bind_c-6_1.c [new file with mode: 0644]