PR c/69973
* targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
PR c/69973
* gcc.dg/pr69973.c: New test.
From-SVN: r234002
2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
+ PR c/69973
+ * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
+
PR rtl-optimization/69941
* postreload.c (reload_combine_recognize_pattern): Ensure all uses of
the reg share its mode.
HOST_WIDE_INT
default_vector_alignment (const_tree type)
{
- return tree_to_shwi (TYPE_SIZE (type));
+ HOST_WIDE_INT align = tree_to_shwi (TYPE_SIZE (type));
+ if (align > MAX_OFILE_ALIGNMENT)
+ align = MAX_OFILE_ALIGNMENT;
+ return align;
}
bool
2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
+ PR c/69973
+ * gcc.dg/pr69973.c: New test.
+
PR rtl-optimization/69941
* gcc.dg/torture/pr69941.c: New test.
--- /dev/null
+/* { dg-do compile } */
+typedef int v4si __attribute__ ((vector_size (1 << 29)));