diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2015-12-07 19:50:07 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2015-12-07 18:50:07 +0000 |
commit | 2efd77e92ded2bc3540c60f8ffa856fa04582e2b (patch) | |
tree | 8b8c75ff7edc7cd3a740b91257fe81ec9612daf4 /gcc/fold-const.c | |
parent | 0beb7c71f1f5c889ea5dba550243fecc9ba82892 (diff) | |
download | gcc-2efd77e92ded2bc3540c60f8ffa856fa04582e2b.zip gcc-2efd77e92ded2bc3540c60f8ffa856fa04582e2b.tar.gz gcc-2efd77e92ded2bc3540c60f8ffa856fa04582e2b.tar.bz2 |
* fold-const.c (operand_equal_p): Drp flag_strict_aliasing check.
From-SVN: r231377
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 16bff5f..553a9c3 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -2987,14 +2987,13 @@ operand_equal_p (const_tree arg0, const_tree arg1, unsigned int flags) flags))) return 0; /* Verify that accesses are TBAA compatible. */ - if (flag_strict_aliasing - && (!alias_ptr_types_compatible_p - (TREE_TYPE (TREE_OPERAND (arg0, 1)), - TREE_TYPE (TREE_OPERAND (arg1, 1))) - || (MR_DEPENDENCE_CLIQUE (arg0) - != MR_DEPENDENCE_CLIQUE (arg1)) - || (MR_DEPENDENCE_BASE (arg0) - != MR_DEPENDENCE_BASE (arg1)))) + if (!alias_ptr_types_compatible_p + (TREE_TYPE (TREE_OPERAND (arg0, 1)), + TREE_TYPE (TREE_OPERAND (arg1, 1))) + || (MR_DEPENDENCE_CLIQUE (arg0) + != MR_DEPENDENCE_CLIQUE (arg1)) + || (MR_DEPENDENCE_BASE (arg0) + != MR_DEPENDENCE_BASE (arg1))) return 0; /* Verify that alignment is compatible. */ if (TYPE_ALIGN (TREE_TYPE (arg0)) |