From: Tom de Vries Date: Sat, 6 May 2017 07:17:05 +0000 (+0000) Subject: Replace absolute line numbers in gcc.target/powerpc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0e852c66f9b57704e1e725f78b9d221103235d67;p=gcc.git Replace absolute line numbers in gcc.target/powerpc 2017-05-06 Tom de Vries PR testsuite/80557 * gcc.target/powerpc/altivec-macros.c: Replace absolute line numbers. * gcc.target/powerpc/altivec-types-1.c: Same. From-SVN: r247716 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3a9402c7a1a..7c594f7579f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-05-06 Tom de Vries + + PR testsuite/80557 + * gcc.target/powerpc/altivec-macros.c: Replace absolute line numbers. + * gcc.target/powerpc/altivec-types-1.c: Same. + 2017-05-06 Tom de Vries PR testsuite/80557 diff --git a/gcc/testsuite/gcc.target/powerpc/altivec-macros.c b/gcc/testsuite/gcc.target/powerpc/altivec-macros.c index c07eaa36a49..91bf120cf8c 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 bcce2a3c911..b26f16ed3a8 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 } */