2018-06-01 Richard Biener <rguenther@suse.de>
commit38261d2518a299bca50948cc9a5a74fc339ae46e
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Jun 2018 08:20:08 +0000 (1 08:20 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Jun 2018 08:20:08 +0000 (1 08:20 +0000)
tree51ae135e51d581c61a17e43bc72335528fd014a3
parent4c9d340c819c22cad05f9f99320b1f2f1b4f92ab
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261056 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/ipa-pta-19.c [new file with mode: 0644]
gcc/tree-ssa-structalias.c