diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2012-01-23 11:19:22 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2012-01-23 11:19:22 +0000 |
commit | b31799f4e7a73997775b23d2619b9ae147a226b1 (patch) | |
tree | 238a94bc32a5738bec64ec25f06c4858feb7c4a5 /gcc/tree-ssa-structalias.c | |
parent | ff06e6b1b87fcf22033349184060d92b7a948108 (diff) | |
download | gcc-b31799f4e7a73997775b23d2619b9ae147a226b1.zip gcc-b31799f4e7a73997775b23d2619b9ae147a226b1.tar.gz gcc-b31799f4e7a73997775b23d2619b9ae147a226b1.tar.bz2 |
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
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r-- | gcc/tree-ssa-structalias.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 5a55d16..b65f5aa 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; |