pragma-align.c (sixteen): Use 8-byte alignment on LP64 targets.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Thu, 4 Nov 2004 22:07:17 +0000 (23:07 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 4 Nov 2004 22:07:17 +0000 (22:07 +0000)
* gcc.dg/pragma-align.c (sixteen): Use 8-byte alignment
on LP64 targets.

From-SVN: r90082

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pragma-align.c

index a499d04..4e27d51 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * gcc.dg/pragma-align.c (sixteen): Use 8-byte alignment
+       on LP64 targets.
+
 2004-11-04  Joseph S. Myers  <joseph@codesourcery.com>
 
        * gcc.dg/asm-qual-1.c, gcc.dg/declspec-15.c, gcc.dg/declspec-16.c,
index 7386932..00f4009 100644 (file)
@@ -9,7 +9,11 @@ struct {
         long two;
 } defaultalign;
 
+#if defined(__LP64__)
+#pragma pack(8)
+#else
 #pragma pack(4)
+#endif
 struct {
         char one;
         long two;