* fold-const.c (operand_equal_p): Drp flag_strict_aliasing check.
authorJan Hubicka <hubicka@ucw.cz>
Mon, 7 Dec 2015 18:50:07 +0000 (19:50 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 7 Dec 2015 18:50:07 +0000 (18:50 +0000)
From-SVN: r231377

gcc/ChangeLog
gcc/fold-const.c

index f843e4be54b4ee5aee9abc84f6f515e0e5e18037..4fc7ffaa25569681cc235ef491d58865d1a5713f 100644 (file)
@@ -1,3 +1,7 @@
+2015-12-07  Jan Hubicka  <hubicka@ucw.cz>
+
+       * fold-const.c (operand_equal_p): Drp flag_strict_aliasing check.
+
 2015-12-07  Nathan Sidwell  <nathan@acm.org>
 
        * config//nvptx/nvptx.c (write_return): New.
index 16bff5f07be9f249e21325b08087f9e8141bdd57..553a9c37d7a46318857970828840b1b2d6bed868 100644 (file)
@@ -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))