+2009-06-30 Ira Rosen <irar@il.ibm.com>
+
+ PR tree-optimization/40542
+ * tree-vect-analyze.c (vect_determine_vectorization_factor): Don't
+ vectorize volatile types.
+
2009-06-29 Richard Guenther <rguenther@suse.de>
PR tree-optimization/40579
+2009-06-30 Ira Rosen <irar@il.ibm.com>
+
+ PR tree-optimization/40542
+ * gcc.dg/vect/pr40542.c: New test.
+
2009-06-29 Richard Guenther <rguenther@suse.de>
PR tree-optimization/40579
--- /dev/null
+/* { dg-do compile } */
+
+void
+volarr_cpy(char *d, volatile char *s)
+{
+ int i;
+
+ for (i = 0; i < 16; i++)
+ d[i] = s[i];
+}
+
+/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail *-*-* } } } */
+/* { dg-final { cleanup-tree-dump "vect" } } */
+
print_generic_expr (vect_dump, stmt, TDF_SLIM);
}
+ if (stmt_ann (stmt)->has_volatile_ops)
+ {
+ if (vect_print_dump_info (REPORT_UNVECTORIZED_LOOPS))
+ fprintf (vect_dump, "not vectorized: stmt has volatile"
+ " operands");
+
+ return false;
+ }
+
gcc_assert (stmt_info);
/* skip stmts which do not need to be vectorized. */