From: Andrew Pinski Date: Wed, 26 Mar 2008 03:32:13 +0000 (+0000) Subject: re PR fortran/31588 (gfortran should be able to output Makefile dependencies with... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fd88fd0992aaad1329f310d6ed4782b9f95d8b22;p=gcc.git re PR fortran/31588 (gfortran should be able to output Makefile dependencies with -M* options) 2008-03-25 Andrew Pinski PR target/31588 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle error_mark_node's. 2008-03-25 Andrew Pinski PR target/31588 * g++.dg/ext/altivec-15.C: New testcase. From-SVN: r133541 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 70c9ec34125..824dabdd28d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-03-25 Andrew Pinski + + PR target/31588 + * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle + error_mark_node's. + 2008-03-25 Richard Sandiford PR rtl-optimization/35232 diff --git a/gcc/config/rs6000/rs6000-c.c b/gcc/config/rs6000/rs6000-c.c index 08537117628..d0830bba7e0 100644 --- a/gcc/config/rs6000/rs6000-c.c +++ b/gcc/config/rs6000/rs6000-c.c @@ -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 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8ba4e6e9dcc..66c0e0cd8e2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-03-25 Andrew Pinski + + PR target/31588 + * g++.dg/ext/altivec-15.C: New testcase. + 2008-03-25 Andrew Pinski 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 index 00000000000..c3003489a17 --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/altivec-15.C @@ -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 "" } +