PATCH, testsuite: fix PR 38362

Janis Johnson janis187@us.ibm.com
Fri Dec 19 18:00:00 GMT 2008


On Fri, 2008-12-19 at 15:19 +1100, Ben Elliston wrote:
> This patch corrects PR 38362 by passing -std=c++98, disabling the
> expansion of context-sensitive keywords for these test.  Tested on
> powerpc64-linux (with RUNTESTFLAGS=dg.exp=altivec-types-1.C, to minimise
> testing time).  Okay for mainline, as this is a 4.4 regression?
> 
> Thanks,
> Ben
> 
> 
> 2008-12-19  Ben Elliston  <bje@au.ibm.com>
> 
>         PR c++/38362
>         * g++.dg/ext/altivec-types-1.C (dg-options): Pass -std=c++98.
> 
> Index: g++.dg/ext/altivec-types-1.C
> ===================================================================
> --- g++.dg/ext/altivec-types-1.C        (revision 142828)
> +++ g++.dg/ext/altivec-types-1.C        (working copy)
> @@ -1,6 +1,6 @@
>  /* { dg-do compile { target powerpc*-*-linux* } } */
>  /* { dg-require-effective-target powerpc_altivec_ok } */
> -/* { dg-options "-maltivec" } */
> +/* { dg-options "-maltivec -std=c++98" } */
> 
>  /* Valid AltiVec vector types should be accepted with no warnings.  */
> 
> 

It's fine with me, but wait a few days to see if others who were
involved in the discussions about this issue have anything to say
about it.

Janis



More information about the Gcc-patches mailing list