2006-10-08 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/28862
* stor-layout.c (relayout_decl): Don't zero the alignment if it
was set by the user.
2006-10-08 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/28862
* gcc.c-torture/compile/vector-align-1.c: New test
From-SVN: r117567
+2006-10-08 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR middle-end/28862
+ * stor-layout.c (relayout_decl): Don't zero the alignment if it
+ was set by the user.
+
2006-09-21 Steven Bosscher <steven@gcc.gnu.org>
PR middle-end/26983
{
DECL_SIZE (decl) = DECL_SIZE_UNIT (decl) = 0;
DECL_MODE (decl) = VOIDmode;
- DECL_ALIGN (decl) = 0;
+ if (!DECL_USER_ALIGN (decl))
+ DECL_ALIGN (decl) = 0;
SET_DECL_RTL (decl, 0);
layout_decl (decl, 0);
+2006-10-08 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR middle-end/28862
+ * gcc.c-torture/compile/vector-align-1.c: New test.
+
2006-10-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.dg/builtins-config.h: Ensure we use -std=c99 on solaris2.
--- /dev/null
+/* Check to make sure the alignment on vectors is not being lost. */
+
+/* If some target has a Max alignment less than 128, please create
+ a #ifdef around the alignment and add your alignment. */
+#define alignment 128
+
+char x __attribute__((aligned(alignment),vector_size(2)));
+
+
+int f[__alignof__(x) == alignment?1:-1];
+