From 962913a561fe994e50f980fa11ff34c4c97401fe Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Wed, 3 May 2017 07:32:49 +0000 Subject: [PATCH] Add quotes to numerical comment arg of dg directive 2017-05-03 Tom de Vries * c-c++-common/goacc/data-default-1.c: Add quotes to numerical comment arg of dg directive. * c-c++-common/goacc/routine-3.c: Same. * c-c++-common/goacc/routine-4.c: Same. From-SVN: r247536 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/c-c++-common/goacc/data-default-1.c | 4 ++-- gcc/testsuite/c-c++-common/goacc/routine-3.c | 4 ++-- gcc/testsuite/c-c++-common/goacc/routine-4.c | 6 +++--- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 33a5cde0ab1..8cfebd41456 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2017-05-03 Tom de Vries + + * c-c++-common/goacc/data-default-1.c: Add quotes to numerical comment + arg of dg directive. + * c-c++-common/goacc/routine-3.c: Same. + * c-c++-common/goacc/routine-4.c: Same. + 2017-05-02 David Malcolm * gcc.dg/plugin/diagnostic-test-show-locus-bw.c diff --git a/gcc/testsuite/c-c++-common/goacc/data-default-1.c b/gcc/testsuite/c-c++-common/goacc/data-default-1.c index 631032e6869..ec53cbed517 100644 --- a/gcc/testsuite/c-c++-common/goacc/data-default-1.c +++ b/gcc/testsuite/c-c++-common/goacc/data-default-1.c @@ -6,13 +6,13 @@ int main () int n = 2; int ary[2]; -#pragma acc parallel default (none) /* { dg-message "'parallel' construct" 2 } */ +#pragma acc parallel default (none) /* { dg-message "'parallel' construct" "2" } */ { ary[0] /* { dg-error "not specified in enclosing" } */ = n; /* { dg-error "not specified in enclosing" } */ } -#pragma acc kernels default (none) /* { dg-message "'kernels' construct" 2 } */ +#pragma acc kernels default (none) /* { dg-message "'kernels' construct" "2" } */ { ary[0] /* { dg-error "not specified in enclosing" } */ = n; /* { dg-error "not specified in enclosing" } */ diff --git a/gcc/testsuite/c-c++-common/goacc/routine-3.c b/gcc/testsuite/c-c++-common/goacc/routine-3.c index b322d267769..eaea470fac0 100644 --- a/gcc/testsuite/c-c++-common/goacc/routine-3.c +++ b/gcc/testsuite/c-c++-common/goacc/routine-3.c @@ -2,7 +2,7 @@ #pragma acc routine gang int -gang () /* { dg-message "declared here" 3 } */ +gang () /* { dg-message "declared here" "3" } */ { #pragma acc loop gang worker vector for (int i = 0; i < 10; i++) @@ -14,7 +14,7 @@ gang () /* { dg-message "declared here" 3 } */ #pragma acc routine worker int -worker () /* { dg-message "declared here" 2 } */ +worker () /* { dg-message "declared here" "2" } */ { #pragma acc loop worker vector for (int i = 0; i < 10; i++) diff --git a/gcc/testsuite/c-c++-common/goacc/routine-4.c b/gcc/testsuite/c-c++-common/goacc/routine-4.c index 3e5fc4f5d77..efc4a0b95e5 100644 --- a/gcc/testsuite/c-c++-common/goacc/routine-4.c +++ b/gcc/testsuite/c-c++-common/goacc/routine-4.c @@ -35,7 +35,7 @@ void seq (void) red ++; } -void vector (void) /* { dg-message "declared here" 1 } */ +void vector (void) /* { dg-message "declared here" "1" } */ { gang (); /* { dg-error "routine call uses" } */ worker (); /* { dg-error "routine call uses" } */ @@ -61,7 +61,7 @@ void vector (void) /* { dg-message "declared here" 1 } */ red ++; } -void worker (void) /* { dg-message "declared here" 2 } */ +void worker (void) /* { dg-message "declared here" "2" } */ { gang (); /* { dg-error "routine call uses" } */ worker (); @@ -87,7 +87,7 @@ void worker (void) /* { dg-message "declared here" 2 } */ red ++; } -void gang (void) /* { dg-message "declared here" 3 } */ +void gang (void) /* { dg-message "declared here" "3" } */ { gang (); worker (); -- 2.30.2