This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/67742] 3rd-level restrict ignored
- From: "vries at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 04 Nov 2015 14:19:15 +0000
- Subject: [Bug tree-optimization/67742] 3rd-level restrict ignored
- Auto-submitted: auto-generated
- References: <bug-67742-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67742
--- Comment #7 from vries at gcc dot gnu.org ---
Author: vries
Date: Wed Nov 4 14:18:43 2015
New Revision: 229755
URL: https://gcc.gnu.org/viewcvs?rev=229755&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/tree-ssa/restrict-7.c
trunk/gcc/testsuite/gcc.dg/tree-ssa/restrict-8.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-structalias.c