From 2934018d2785fa77b1e1e4fdd5c92139210b5056 Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Wed, 12 Oct 2016 16:56:44 +0200 Subject: [PATCH] rs6000: Use "dg-warning ... 0" in a few places GCC used to give warnings for line # 1 for these, but it prints no line number anymore. Adjust. gcc/testsuite/ * gcc.target/powerpc/warn-1.c: Change line number in dg-warning. * gcc.target/powerpc/warn-2.c: Ditto. From-SVN: r241056 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/powerpc/warn-1.c | 2 +- gcc/testsuite/gcc.target/powerpc/warn-2.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e5c33960e79..4aed4b81d2e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-10-12 Segher Boessenkool + + * gcc.target/powerpc/warn-1.c: Change line number in dg-warning. + * gcc.target/powerpc/warn-2.c: Ditto. + 2016-10-12 Robert Suchanek * gcc.dg/vect/slp-26.c: Check if vectorized for MIPS MSA. diff --git a/gcc/testsuite/gcc.target/powerpc/warn-1.c b/gcc/testsuite/gcc.target/powerpc/warn-1.c index f4cb4372fdb..f345106678a 100644 --- a/gcc/testsuite/gcc.target/powerpc/warn-1.c +++ b/gcc/testsuite/gcc.target/powerpc/warn-1.c @@ -3,7 +3,7 @@ /* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-options "-O -mvsx -mno-altivec" } */ -/* { dg-warning "-mvsx and -mno-altivec are incompatible" "" { target *-*-* } 1 } */ +/* { dg-warning "-mvsx and -mno-altivec are incompatible" "" { target *-*-* } 0 } */ double foo (double *x, double *y) diff --git a/gcc/testsuite/gcc.target/powerpc/warn-2.c b/gcc/testsuite/gcc.target/powerpc/warn-2.c index 45f490c057b..02e8268f854 100644 --- a/gcc/testsuite/gcc.target/powerpc/warn-2.c +++ b/gcc/testsuite/gcc.target/powerpc/warn-2.c @@ -4,7 +4,7 @@ /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */ /* { dg-options "-O -mcpu=power7 -mno-altivec" } */ -/* { dg-warning "-mno-altivec disables vsx" "" { target *-*-* } 1 } */ +/* { dg-warning "-mno-altivec disables vsx" "" { target *-*-* } 0 } */ double foo (double *x, double *y) -- 2.30.2