aboutsummaryrefslogtreecommitdiff
path: root/gcc/alias.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2008-09-17 11:42:11 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2008-09-17 11:42:11 +0000
commit791f17147f98a1bdd8be36d677272c57ce933196 (patch)
tree7a9cca363d997be715d76fb169665299d0a9b318 /gcc/alias.c
parent03e74118561be5f560dad6c09836d93b9f77205d (diff)
downloadgcc-791f17147f98a1bdd8be36d677272c57ce933196.zip
gcc-791f17147f98a1bdd8be36d677272c57ce933196.tar.gz
gcc-791f17147f98a1bdd8be36d677272c57ce933196.tar.bz2
re PR middle-end/37385 (ICE in set_mem_alias_set with the vectorizer and function pointers)
2008-09-17 Richard Guenther <rguenther@suse.de> PR middle-end/37385 PR tree-optimization/37491 * alias.c (get_alias_set): Use the canonical type. * tree-vect-transform.c (vectorizable_store): Use the type of the lhs for the vector type. Adjust checking. (vectorizable_load): Adjust checking. From-SVN: r140412
Diffstat (limited to 'gcc/alias.c')
-rw-r--r--gcc/alias.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/alias.c b/gcc/alias.c
index 56660ec..35a40bc 100644
--- a/gcc/alias.c
+++ b/gcc/alias.c
@@ -604,8 +604,11 @@ get_alias_set (tree t)
}
/* Variant qualifiers don't affect the alias set, so get the main
- variant. If this is a type with a known alias set, return it. */
+ variant. Always use the canonical type as well.
+ If this is a type with a known alias set, return it. */
t = TYPE_MAIN_VARIANT (t);
+ if (TYPE_CANONICAL (t))
+ t = TYPE_CANONICAL (t);
if (TYPE_ALIAS_SET_KNOWN_P (t))
return TYPE_ALIAS_SET (t);