Replace absolute line numbers in gcc.target/powerpc

2017-05-05  Tom de Vries  <tom@codesourcery.com>

	PR testsuite/80557
	* gcc.target/powerpc/altivec-macros.c: Replace absolute line numbers.
	* gcc.target/powerpc/altivec-types-1.c: Same.

---
 gcc/testsuite/gcc.target/powerpc/altivec-macros.c  | 31 ++++++++++++----------
 gcc/testsuite/gcc.target/powerpc/altivec-types-1.c |  8 ++++--
 2 files changed, 23 insertions(+), 16 deletions(-)

diff --git a/gcc/testsuite/gcc.target/powerpc/altivec-macros.c b/gcc/testsuite/gcc.target/powerpc/altivec-macros.c
index c07eaa3..91bf120 100644
--- a/gcc/testsuite/gcc.target/powerpc/altivec-macros.c
+++ b/gcc/testsuite/gcc.target/powerpc/altivec-macros.c
@@ -23,42 +23,45 @@ _Pragma ("__vector")
 
 #undef __vector
 #define __vector __new_vector
+/* { dg-message "location of the previous"  "prev __vector defn"  { target *-*-* } .-1 } */
 
 #undef __pixel
 #define __pixel __new_pixel
+/* { dg-message "location of the previous"  "prev __pixel defn"   { target *-*-* } .-1 } */
 
 #undef __bool
 #define __bool __new_bool
+/* { dg-message "location of the previous"  "prev __bool defn"    { target *-*-* } .-1 } */
 
 #undef vector
 #define vector new_vector
+/* { dg-message "location of the previous"  "prev vector defn"    { target *-*-* } .-1 } */
 
 #undef pixel
 #define pixel new_pixel
+/* { dg-message "location of the previous"  "prev pixel defn"     { target *-*-* } .-1 } */
 
 #undef bool
 #define bool new_bool
+/* { dg-message "location of the previous"  "prev bool defn"      { target *-*-* } .-1 } */
 
 /* Re-definition of "unconditional" macros.  */
 /* Warnings should be generated as usual.  */
 
 #define __vector	__newer_vector
+/* { dg-warning "redefined" "__vector redefined"  { target *-*-* } .-1 } */
+
 #define __pixel		__newer_pixel
+/* { dg-warning "redefined" "__pixel redefined"   { target *-*-* } .-1 } */
+
 #define __bool		__newer_bool
+/* { dg-warning "redefined" "__bool redefined"    { target *-*-* } .-1 } */
+
 #define vector		newer_vector
+/* { dg-warning "redefined" "vector redefined"    { target *-*-* } .-1 } */
+
 #define pixel		newer_pixel
-#define bool		newer_bool
+/* { dg-warning "redefined" "pixel redefined"     { target *-*-* } .-1 } */
 
-/* { dg-warning "redefined" "__vector redefined"  { target *-*-* } 45 } */
-/* { dg-warning "redefined" "__pixel redefined"   { target *-*-* } 46 } */
-/* { dg-warning "redefined" "__bool redefined"    { target *-*-* } 47 } */
-/* { dg-warning "redefined" "vector redefined"    { target *-*-* } 48 } */
-/* { dg-warning "redefined" "pixel redefined"     { target *-*-* } 49 } */
-/* { dg-warning "redefined" "bool redefined"      { target *-*-* } 50 } */
-
-/* { dg-message "location of the previous"  "prev __vector defn"  { target *-*-* } 25 } */
-/* { dg-message "location of the previous"  "prev __pixel defn"   { target *-*-* } 28 } */
-/* { dg-message "location of the previous"  "prev __bool defn"    { target *-*-* } 31 } */
-/* { dg-message "location of the previous"  "prev vector defn"    { target *-*-* } 34 } */
-/* { dg-message "location of the previous"  "prev pixel defn"     { target *-*-* } 37 } */
-/* { dg-message "location of the previous"  "prev bool defn"      { target *-*-* } 40 } */
+#define bool		newer_bool
+/* { dg-warning "redefined" "bool redefined"      { target *-*-* } .-1 } */
diff --git a/gcc/testsuite/gcc.target/powerpc/altivec-types-1.c b/gcc/testsuite/gcc.target/powerpc/altivec-types-1.c
index bcce2a3..b26f16e 100644
--- a/gcc/testsuite/gcc.target/powerpc/altivec-types-1.c
+++ b/gcc/testsuite/gcc.target/powerpc/altivec-types-1.c
@@ -76,10 +76,16 @@ __vector __bool unsigned int vbui;	/* { dg-error "" } */
 __vector __bool signed int vbsi;	/* { dg-error "" } */
 __vector __bool unsigned vbuj;		/* { dg-error "" } */
 __vector __bool signed vbsj;		/* { dg-error "" } */
+
 __vector signed float vsf;		/* { dg-error "" } */
+/* { dg-message "note: previous" "prev vsf" { target *-*-* } .-1 } */
+
 __vector unsigned float vuf;		/* { dg-error "" } */
 __vector short float vsf;		/* { dg-error "" } */
+
 __vector signed double vsd;		/* { dg-error "" } */
+/* { dg-message "note: previous" "prev vsd" { target *-*-* } .-1 } */
+
 __vector unsigned double vud;		/* { dg-error "" } */
 __vector short double vsd;		/* { dg-error "" } */
 __vector __bool float vbf;		/* { dg-error "" } */
@@ -87,5 +93,3 @@ __vector __bool double vbd;		/* { dg-error "" } */
 __vector __bool short float blf;	/* { dg-error "" } */
 __vector __bool short double vlbd;	/* { dg-error "" } */
 
-/* { dg-message "note: previous" "prev vsf" { target *-*-* } 79 } */
-/* { dg-message "note: previous" "prev vsd" { target *-*-* } 82 } */
