OSDN Git Service

Do not use an explicit alignment value as certain file formats cannot support
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Feb 2002 16:18:33 +0000 (16:18 +0000)
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Feb 2002 16:18:33 +0000 (16:18 +0000)
particularly large alignments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49545 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/align1.C

index 44fbcd9..54f1556 100644 (file)
@@ -1,5 +1,9 @@
 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
 
+       * g++.dg/ext/align1.C: Do not use an explicit alignment value
+        as certain file formats cannot support particularly large
+        alignments.
+
        * g++.dg/warn/weak1.C: Expect a warning from COFF toolchains,
        and do not expect to be able to link the executable.
 
index 23dcf74..6c960c3 100644 (file)
@@ -1,19 +1,20 @@
 // Test that __attribute__ ((aligned)) is preserved.
-// Cygwin does not support alignment greater than 16
+// The alignment used to be 64 but Cygwin does not
+// support an alignment greater than 16 and COFF 
+// not support an alignment greater than 4.
 
 extern "C" int printf (const char *, ...);
 
-typedef float at[4][4] __attribute__ ((aligned (64)));
+typedef float at[4][4] __attribute__ ((aligned));
 
 float dummy[4][4][15];
 
 static volatile at a1[15];
-// { dg-warning "object file alignment" "" { target i?86-pc-cygwin } 10 }
 
-float f1 __attribute__ ((aligned (64)));
-// { dg-warning "object file alignment" "" { target i?86-pc-cygwin } 13 }
+float f1 __attribute__ ((aligned));
 
-int main()
+int
+main (void)
 {
   printf ("%d %d\n", __alignof (a1), __alignof (f1));
   return (__alignof (a1) < __alignof (f1));