]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
altivec-23.c: Do not use a typedef name as a type specifier...
authorBen Elliston <bje@au.ibm.com>
Sun, 18 Nov 2007 09:56:39 +0000 (09:56 +0000)
committerBen Elliston <bje@gcc.gnu.org>
Sun, 18 Nov 2007 09:56:39 +0000 (20:56 +1100)
* gcc.target/powerpc/altivec-23.c: Do not use a typedef name as a
type specifier, as they are not permitted according to the AltiVec
Programming Interface Manual.

From-SVN: r130268

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/altivec-23.c

index fcf6395b4b98477b82eeac188d1304590defe9a2..62d039e27eb915b90bbfdb880b800c13a7ee2572 100644 (file)
@@ -1,3 +1,9 @@
+2007-11-18  Ben Elliston  <bje@au.ibm.com>
+
+       * gcc.target/powerpc/altivec-23.c: Do not use a typedef name as a
+       type specifier, as they are not permitted according to the AltiVec
+       Programming Interface Manual.
+
 2007-11-17  Tobias Burnus  <burnus@net-b.de>
 
        PR fortran/34133
index c8851a4614bbcde939158d358613b660c0dd8d45..3b039f73b0b6bc57c7211f417e56dd1e791ccf42 100644 (file)
@@ -8,9 +8,8 @@
 
 #include <altivec.h>
 
-typedef int bt;
-typedef vector bt vt;
-typedef struct { vt x; bt y[sizeof(vt) / sizeof (bt)]; } st;
+typedef vector int vt;
+typedef struct { vt x; int y[sizeof(vt) / sizeof (int)]; } st;
 #define INIT { 1, 2, 3, 4 }
 
 void f ()