Hi,
this patch adds quotes to the comment argument of a dg-message directive
when the comment is a plain number, to avoid confusion with line numbers.
Committed as obvious.
Thanks,
- Tom
Add quotes to numerical comment arg of dg directive
2017-05-01 Tom de Vries <t...@codesourcery.com>
* 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.
---
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 +++---
3 files changed, 7 insertions(+), 7 deletions(-)
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 631032e..ec53cbe 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 b322d26..eaea470 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 3e5fc4f..efc4a0b 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 ();