re PR fortran/31588 (gfortran should be able to output Makefile dependencies with...
authorAndrew Pinski <andrew_pinski@playstation.sony.com>
Wed, 26 Mar 2008 03:32:13 +0000 (03:32 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Wed, 26 Mar 2008 03:32:13 +0000 (20:32 -0700)
2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR target/31588
        * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
        error_mark_node's.

2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR target/31588
        * g++.dg/ext/altivec-15.C: New testcase.

From-SVN: r133541

gcc/ChangeLog
gcc/config/rs6000/rs6000-c.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/altivec-15.C [new file with mode: 0644]

index 70c9ec34125a864d2ec43f16ac400fd5d2c9c201..824dabdd28d0dd51d49aedc1bb096f91d9ffc9a2 100644 (file)
@@ -1,3 +1,9 @@
+2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
+
+       PR target/31588
+       * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
+       error_mark_node's.
+
 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
 
        PR rtl-optimization/35232
index 08537117628686493eaa7d81e2ae33744c464da8..d0830bba7e0536347b54400491ba509414402b1c 100644 (file)
@@ -2421,6 +2421,8 @@ rs6000_builtin_type_compatible (tree t, int id)
 {
   tree builtin_type;
   builtin_type = rs6000_builtin_type (id);
+  if (t == error_mark_node)
+    return false;
   if (INTEGRAL_TYPE_P (t) && INTEGRAL_TYPE_P (builtin_type))
     return true;
   else
index 8ba4e6e9dcc8974a6d8dfd1e1e30602ca129333b..66c0e0cd8e25e827d9cec42076473ea2d9907ed9 100644 (file)
@@ -1,3 +1,8 @@
+2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
+
+       PR target/31588
+       * g++.dg/ext/altivec-15.C: New testcase.
+
 2008-03-25  Andrew Pinski  <pinskia@gmail.com>
 
        PR objc/29197
diff --git a/gcc/testsuite/g++.dg/ext/altivec-15.C b/gcc/testsuite/g++.dg/ext/altivec-15.C
new file mode 100644 (file)
index 0000000..c300348
--- /dev/null
@@ -0,0 +1,13 @@
+/* { dg-do compile { target powerpc*-*-* } } */
+/* { dg-require-effective-target powerpc_altivec_ok } */
+/* { dg-options "-maltivec" } */
+
+struct SubData
+{
+    inline const Float Clamp(Float f, Float f0, Float f1) // { dg-error "" }
+    }
+    inline const void SinCos(Float angle, Float& sine, Float& cosine) // { dg-error "" }
+    {
+        C0 = __builtin_vec_splat(_simdCosEstCoefficients, 0); // { dg-error "" }
+        C1 = __builtin_vec_splat(_simdCosEstCoefficients, 1); // { dg-error "" }
+