]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
altivec-3.C (baz, baz2): Check one component of structs at a time.
authorAlan Modra <amodra@bigpond.net.au>
Tue, 11 Jan 2005 13:02:43 +0000 (13:02 +0000)
committerAlan Modra <amodra@gcc.gnu.org>
Tue, 11 Jan 2005 13:02:43 +0000 (23:32 +1030)
* g++.dg/ext/altivec-3.C (baz, baz2): Check one component of structs
at a time.
* g++.dg/ext/altivec_check.h: Support compiling as C.

From-SVN: r93184

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/altivec-3.C
gcc/testsuite/g++.dg/ext/altivec_check.h

index 1bfdfb84b1dc3bbbedc05e8bdcf276c745d53092..a28010510cfc76f3703bf58cd724f2bb8a61eaa5 100644 (file)
@@ -1,3 +1,9 @@
+2005-01-11  Alan Modra  <amodra@bigpond.net.au>
+
+       * g++.dg/ext/altivec-3.C (baz, baz2): Check one component of structs
+       at a time.
+       * g++.dg/ext/altivec_check.h: Support compiling as C.
+
 2005-01-10  Roger Sayle  <roger@eyesopen.com>
 
        PR c++/19355
index a5e7308bb05068fdec59a90c70c18ab547812701..f2812fc91a1590aed6a1186e29855901c6d7460e 100644 (file)
@@ -75,11 +75,15 @@ void baz (int i, ... )
       
     CHECK_INVARIANT (vec_all_eq (v_i, v_g));
     CHECK_INVARIANT (j == i_1);
-    CHECK_INVARIANT (vx.x == vx_g.x && vec_all_eq(vx.v, vx_g.v) && vx.y == vx_g.y);
+    CHECK_INVARIANT (vx.x == vx_g.x);
+    CHECK_INVARIANT (vec_all_eq (vx.v, vx_g.v));
+    CHECK_INVARIANT (vx.y == vx_g.y);
     CHECK_INVARIANT (k == i_1);
     CHECK_INVARIANT (vec_all_eq (v2_i, v2_g));
     CHECK_INVARIANT (l == i_1);
-    CHECK_INVARIANT (vx2.x == vx2_g.x && vec_all_eq(vx2.v, vx2_g.v) && vx2.y == vx2_g.y);
+    CHECK_INVARIANT (vx2.x == vx2_g.x);
+    CHECK_INVARIANT (vec_all_eq (vx2.v, vx2_g.v));
+    CHECK_INVARIANT (vx2.y == vx2_g.y);
 }
 
 void quux (int i, ... )
@@ -110,7 +114,9 @@ void baz2 (int i, ... )
     va_end(ap);
     vxi.v = vx.v;
 
-    CHECK_INVARIANT (vx.x == vx_g.x && vec_all_eq(vx.v, vx_g.v) && vx.y == vx_g.y);
+    CHECK_INVARIANT (vx.x == vx_g.x);
+    CHECK_INVARIANT (vec_all_eq (vx.v, vx_g.v));
+    CHECK_INVARIANT (vx.y == vx_g.y);
     CHECK_INVARIANT (vec_all_eq (vxi.v, vx_g.v));
 }
 
index 234af02c4d104cd84a4533a6e29b038fd253ee19..9e8b3f78ac2b9a72d7e5adfd1ca5e8b901410de8 100644 (file)
@@ -2,7 +2,11 @@
 /* Contributed by Ziemowit Laski  <zlaski@apple.com>  */
 
 #include <signal.h>
-extern "C" void exit(int);
+extern
+#ifdef __cplusplus
+"C"
+#endif
+void exit(int);
 
 void 
 sig_ill_handler (int sig)