This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/50698] pretending to create versioning for alias when not required
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 12 Oct 2011 14:40:55 +0000
- Subject: [Bug tree-optimization/50698] pretending to create versioning for alias when not required
- Auto-submitted: auto-generated
- References: <bug-50698-4@http.gcc.gnu.org/bugzilla/>
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);