* lto-symtab.c: Include alias.h
commit3f8f2e54f4ba872ffda5094c62d39e1f8383c920
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Nov 2015 22:22:37 +0000 (25 22:22 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Nov 2015 22:22:37 +0000 (25 22:22 +0000)
treeb128369d416f1bc592a1609dd628ce3d44c5432f
parent2de9250e63d49c78dcffaa69a675b20c7a980a37
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230911 138bc75d-0d04-0410-961f-82ee72b054a4
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]