alias.c: Include ipa-utils.h.
authorJan Hubicka <jh@suse.cz>
Sat, 1 Jun 2019 16:36:49 +0000 (18:36 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 1 Jun 2019 16:36:49 +0000 (16:36 +0000)
commite4b44fd741ee25aa5ad086949ccfbcbd3736c0f3
treede277309e24560ad8eaec387435ea436ae9943ba
parent5a2a2fb3152a801b5652bb65c380d92db2d900d3
alias.c: Include ipa-utils.h.

* alias.c: Include ipa-utils.h.
(get_alias_set): Try to complete ODR type via ODR type hash lookup.
* ipa-devirt.c (prevailing_odr_type): New.
* ipa-utils.h (previaling_odr_type): Declare.

* g++.dg/lto/alias-1_0.C: New testcase.
* g++.dg/lto/alias-1_1.C: New testcase.

From-SVN: r271837
gcc/ChangeLog
gcc/alias.c
gcc/ipa-devirt.c
gcc/ipa-utils.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/alias-1_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/alias-1_1.C [new file with mode: 0644]