This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/50698] pretending to create versioning for alias when not required


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50698

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-12 14:40:55 UTC ---
Patch:

Index: gcc/tree-data-ref.c
===================================================================
--- gcc/tree-data-ref.c (revision 179849)
+++ gcc/tree-data-ref.c (working copy)
@@ -589,9 +589,6 @@ split_constant_offset_1 (tree type, tree
        int punsignedp, pvolatilep;

        op0 = TREE_OPERAND (op0, 0);
-       if (!handled_component_p (op0))
-         return false;
-
        base = get_inner_reference (op0, &pbitsize, &pbitpos, &poffset,
                                    &pmode, &punsignedp, &pvolatilep, false);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]