aboutsummaryrefslogtreecommitdiff
path: root/gcc/alias.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2007-07-05 21:21:10 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2007-07-05 21:21:10 +0000
commite11e491dbfa0d4b134e653647a0bf1b645e17327 (patch)
treeb8b99cf6b54105440df3df5219090d25018ce180 /gcc/alias.c
parentf6cdc43257653ea4aeff8554f3e1ba48cd0e2dfe (diff)
downloadgcc-e11e491dbfa0d4b134e653647a0bf1b645e17327.zip
gcc-e11e491dbfa0d4b134e653647a0bf1b645e17327.tar.gz
gcc-e11e491dbfa0d4b134e653647a0bf1b645e17327.tar.bz2
re PR middle-end/32639 (ptrmem1.C now ICE's on mainline)
2007-07-05 Richard Guenther <rguenther@suse.de> PR middle-end/32639 * alias.c (get_alias_set): Tread METHOD_TYPE the same as FUNCTION_TYPE. * tree-ssa.c (useless_type_conversion_p): Check canonical types early. From-SVN: r126389
Diffstat (limited to 'gcc/alias.c')
-rw-r--r--gcc/alias.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/alias.c b/gcc/alias.c
index 7c258c7..a47e291 100644
--- a/gcc/alias.c
+++ b/gcc/alias.c
@@ -620,7 +620,8 @@ get_alias_set (tree t)
/* There are no objects of FUNCTION_TYPE, so there's no point in
using up an alias set for them. (There are, of course, pointers
and references to functions, but that's different.) */
- else if (TREE_CODE (t) == FUNCTION_TYPE)
+ else if (TREE_CODE (t) == FUNCTION_TYPE
+ || TREE_CODE (t) == METHOD_TYPE)
set = 0;
/* Unless the language specifies otherwise, let vector types alias