Add quotes to numerical comment arg of dg directive

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.

From-SVN: r247536
This commit is contained in:
Tom de Vries 2017-05-03 07:32:49 +00:00 committed by Tom de Vries
parent 3fe691c509
commit 962913a561
4 changed files with 14 additions and 7 deletions

View file

@ -1,3 +1,10 @@
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

View file

@ -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" } */

View file

@ -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++)

View file

@ -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 ();