aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-08-12 15:10:47 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2009-08-12 15:10:47 +0000
commitdaad02781a10022ac810312c46fda483809c3634 (patch)
tree637efc702dde071c504b6d68951b06bfb3f2b5c1 /gcc/gimplify.c
parent30de16328a546dd06011235d86ef573dc2ffba6e (diff)
downloadgcc-daad02781a10022ac810312c46fda483809c3634.zip
gcc-daad02781a10022ac810312c46fda483809c3634.tar.gz
gcc-daad02781a10022ac810312c46fda483809c3634.tar.bz2
alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
2009-08-12 Richard Guenther <rguenther@suse.de> * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P. * gimplify.c (gimplify_modify_expr): Do not use lang_hooks.types_compatible_p. * tree-ssa.c (useless_type_conversion_p): For aggregates just return false if the canonical types differ. From-SVN: r150695
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r--gcc/gimplify.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index dc8d0c0..eaea16d 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -4322,8 +4322,7 @@ gimplify_modify_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p,
/* Insert pointer conversions required by the middle-end that are not
required by the frontend. This fixes middle-end type checking for
for example gcc.dg/redecl-6.c. */
- if (POINTER_TYPE_P (TREE_TYPE (*to_p))
- && lang_hooks.types_compatible_p (TREE_TYPE (*to_p), TREE_TYPE (*from_p)))
+ if (POINTER_TYPE_P (TREE_TYPE (*to_p)))
{
STRIP_USELESS_TYPE_CONVERSION (*from_p);
if (!useless_type_conversion_p (TREE_TYPE (*to_p), TREE_TYPE (*from_p)))