tree-ssa-structalias.c: Include tree-cfg.h.
authorRichard Biener <rguenther@suse.de>
Thu, 6 Jun 2019 07:25:19 +0000 (07:25 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 6 Jun 2019 07:25:19 +0000 (07:25 +0000)
commited315c041f48f491d6310fe83810bb93cc3e5d17
treec39d72532d4b3cb1d9f09502f7a8087d40d9893a
parentc45c8424de8773ee4305a7932fb2a3ee878ea56a
tree-ssa-structalias.c: Include tree-cfg.h.

2019-06-06  Richard Biener  <rguenther@suse.de>

* tree-ssa-structalias.c: Include tree-cfg.h.
(make_heapvar): Do not make heap vars artificial.
(find_func_aliases_for_builtin_call): Handle stack allocation
functions.
(find_func_aliases): Delay processing of simple enough returns
in non-IPA mode.
(set_uids_in_ptset): Adjust.
(find_what_var_points_to): Likewise.
(solve_constraints): Do not dump points-to sets here.
(compute_points_to_sets): Post-process return statements,
amending the escaped solution.  Dump points-to sets afterwards.
(ipa_pta_execute): Dump points-to sets.

* gcc.dg/tree-ssa/alias-37.c: New testcase.
* gcc.dg/torture/20190604-1.c: Likewise.
* gcc.dg/tree-ssa/pta-callused.c: Adjust.

From-SVN: r271989
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/20190604-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/alias-37.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pta-callused.c
gcc/tree-ssa-structalias.c