re PR ipa/85960 (-fipa-pta and ifunc are incompatible)
authorRichard Biener <rguenther@suse.de>
Fri, 1 Jun 2018 08:20:08 +0000 (08:20 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 1 Jun 2018 08:20:08 +0000 (08:20 +0000)
commit07205c411f31eb5f433049461e0622f4681b2dca
tree51ae135e51d581c61a17e43bc72335528fd014a3
parenteeb59c16f849534b6cf03566151225c7b7fb92cd
re PR ipa/85960 (-fipa-pta and ifunc are incompatible)

2018-06-01  Richard Biener  <rguenther@suse.de>

PR ipa/85960
* tree-ssa-structalias.c (get_function_part_constraint):
Handle NULL fi->decl.
(find_func_aliases_for_call): Properly handle indirect
fi from direct call.
(find_func_clobbers): Likewise.
(ipa_pta_execute): Likewise.
(create_variable_info_for): For functions that are ifunc_resolver
resolve to a varinfo that contains the result of the resolver
call.
(associate_varinfo_to_alias): Do not treat ifunc resolvers as
aliases.

* gcc.dg/ipa/ipa-pta-19.c: New testcase.

From-SVN: r261056
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/ipa-pta-19.c [new file with mode: 0644]
gcc/tree-ssa-structalias.c