Handle recursive restrict in function parameter
commit06e9790ef7b1c8ec728c3e7a9189b8ddb14e3bfc
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Nov 2015 14:18:43 +0000 (4 14:18 +0000)
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Nov 2015 14:18:43 +0000 (4 14:18 +0000)
treef051827ec3e48c8f18fd51a45e5498be1c22330f
parent677f472f9078605799808e84aff44ee85a2aa080
Handle recursive restrict in function parameter

2015-11-04  Tom de Vries  <tom@codesourcery.com>

PR tree-optimization/67742
* tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
field.
(push_fields_onto_fieldstack): Handle restrict_pointed_type field.
(create_variable_info_for_1): Add and handle handle_param parameter.
Add restrict handling.
(create_variable_info_for): Call create_variable_info_for_1 with extra
arg.
(make_param_constraints): Drop restrict_name parameter.  Ignore
vi->only_restrict_pointers.
(intra_create_variable_infos): Call create_variable_info_for_1 with
extra arg.  Remove restrict handling.  Call make_param_constraints with
one less arg.

* gcc.dg/tree-ssa/restrict-7.c: New test.
* gcc.dg/tree-ssa/restrict-8.c: New test.

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