From b31799f4e7a73997775b23d2619b9ae147a226b1 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Mon, 23 Jan 2012 11:19:22 +0000 Subject: [PATCH] tree-ssa-structalias.c (intra_create_variable_infos): Do not create fake variables for restrict-qualified pointers whose pointed-to... * tree-ssa-structalias.c (intra_create_variable_infos): Do not create fake variables for restrict-qualified pointers whose pointed-to type contains a placeholder. From-SVN: r183427 --- gcc/ChangeLog | 6 ++++++ gcc/tree-ssa-structalias.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 60697f85199..b953cd04d71 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-01-23 Eric Botcazou + + * tree-ssa-structalias.c (intra_create_variable_infos): Do not create + fake variables for restrict-qualified pointers whose pointed-to type + contains a placeholder. + 2012-01-23 Richard Guenther PR tree-optimization/51949 diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 5a55d1651ff..b65f5aac02c 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -5664,7 +5664,8 @@ intra_create_variable_infos (void) Treat restrict qualified references the same. */ if (TYPE_RESTRICT (TREE_TYPE (t)) && ((DECL_BY_REFERENCE (t) && POINTER_TYPE_P (TREE_TYPE (t))) - || TREE_CODE (TREE_TYPE (t)) == REFERENCE_TYPE)) + || TREE_CODE (TREE_TYPE (t)) == REFERENCE_TYPE) + && !type_contains_placeholder_p (TREE_TYPE (TREE_TYPE (t)))) { struct constraint_expr lhsc, rhsc; varinfo_t vi;