This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Fix for [Bug tree-optimization/37573] [4.4 Regression] gcc-4.4 regression: incorrect code generation with -O1 -ftree-vectorize
- From: "Sebastian Pop" <spop at gcc dot gnu dot org>
- To: "GCC Patches" <gcc-patches at gcc dot gnu dot org>, "Richard Guenther" <rguenther at suse dot de>
- Date: Sun, 2 Nov 2008 23:45:34 -0600
- Subject: [patch] Fix for [Bug tree-optimization/37573] [4.4 Regression] gcc-4.4 regression: incorrect code generation with -O1 -ftree-vectorize
Hi Richi,
what is the status of this bug? Isn't the proposed fix correct?
Thanks,
Sebastian
Index: tree-data-ref.c
===================================================================
--- tree-data-ref.c (revision 141542)
+++ tree-data-ref.c (working copy)
@@ -551,6 +551,7 @@ split_constant_offset_1 (tree type, tree
enum machine_mode pmode;
int punsignedp, pvolatilep;
+ op0 = TREE_OPERAND (op0, 0);
if (!handled_component_p (op0))
return false;