+2017-05-03 Tom de Vries <tom@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.
+
2017-05-02 David Malcolm <dmalcolm@redhat.com>
* gcc.dg/plugin/diagnostic-test-show-locus-bw.c
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" } */
#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++)
#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++)
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" } */
red ++;
}
-void worker (void) /* { dg-message "declared here" 2 } */
+void worker (void) /* { dg-message "declared here" "2" } */
{
gang (); /* { dg-error "routine call uses" } */
worker ();
red ++;
}
-void gang (void) /* { dg-message "declared here" 3 } */
+void gang (void) /* { dg-message "declared here" "3" } */
{
gang ();
worker ();