diff options
author | Tom de Vries <tom@codesourcery.com> | 2017-05-06 07:16:53 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2017-05-06 07:16:53 +0000 |
commit | 63c40d9286bc4157faad04cad0c56f1a7f4a2d77 (patch) | |
tree | f5f61d3a3f948d7cab6ca52f0d725d34c1fdde23 | |
parent | b25b8f916255fe4618d48bebc083e68e5a02ad76 (diff) | |
download | gcc-63c40d9286bc4157faad04cad0c56f1a7f4a2d77.zip gcc-63c40d9286bc4157faad04cad0c56f1a7f4a2d77.tar.gz gcc-63c40d9286bc4157faad04cad0c56f1a7f4a2d77.tar.bz2 |
Replace absolute line numbers in gcc.target/spu
2017-05-06 Tom de Vries <tom@codesourcery.com>
PR testsuite/80557
* gcc.target/spu/Wmain.c: Replace absolute line numbers.
* gcc.target/spu/intrinsics-1.c: Same.
From-SVN: r247715
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/spu/Wmain.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/spu/intrinsics-1.c | 11 |
3 files changed, 15 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 32b59c5..3a9402c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,6 +1,12 @@ 2017-05-06 Tom de Vries <tom@codesourcery.com> PR testsuite/80557 + * gcc.target/spu/Wmain.c: Replace absolute line numbers. + * gcc.target/spu/intrinsics-1.c: Same. + +2017-05-06 Tom de Vries <tom@codesourcery.com> + + PR testsuite/80557 * gcc.target/arm/pr69180.c: Replace absolute line numbers. 2017-05-06 Tom de Vries <tom@codesourcery.com> diff --git a/gcc/testsuite/gcc.target/spu/Wmain.c b/gcc/testsuite/gcc.target/spu/Wmain.c index b6bfe41..d80e182 100644 --- a/gcc/testsuite/gcc.target/spu/Wmain.c +++ b/gcc/testsuite/gcc.target/spu/Wmain.c @@ -2,6 +2,6 @@ /* { dg-options "-Wmain -mstdmain" } */ int main (void *wrong)/* { dg-warning "first argument of 'main' should be 'int'" } */ + /* { dg-warning "'main' takes only zero or two arguments" "" { target *-*-* } .-1 } */ { - /* { dg-warning "'main' takes only zero or two arguments" "" { target *-*-* } 4 } */ } diff --git a/gcc/testsuite/gcc.target/spu/intrinsics-1.c b/gcc/testsuite/gcc.target/spu/intrinsics-1.c index 2720889..b8974f6 100644 --- a/gcc/testsuite/gcc.target/spu/intrinsics-1.c +++ b/gcc/testsuite/gcc.target/spu/intrinsics-1.c @@ -10,10 +10,15 @@ void f(void) int *a1; _Complex double b; gt = spu_cmpgt(a, N); /* { dg-error "parameter list" } */ + gt = spu_cmpgt(a, a1); /* { dg-error "integer from pointer without a cast" } */ + /* { dg-message "note: expected 'int'" "" { target *-*-* } .-1 } */ + gt = spu_cmpgt(a, b); /* { dg-error "parameter list" } */ + gt = spu_cmpgt(a, a); - a = spu_cmpgt(a, a); /* { dg-message "note: use -flax-vector-conversions to permit conversions between vectors with differing element types or numbers of subparts" } */ -/* { dg-message "note: expected 'int'" "" { target *-*-* } 13 } */ -/* { dg-error "incompatible types when assigning" "" { target *-*-* } 16 } */ + + a = spu_cmpgt(a, a); + /* { dg-message "note: use -flax-vector-conversions to permit conversions between vectors with differing element types or numbers of subparts" "" { target *-*-* } .-1 } */ + /* { dg-error "incompatible types when assigning" "" { target *-*-* } .-2 } */ } |