Restore 'GOMP_OPENACC_DIM' environment variable parsing

... that got broken by recent commit c057ed9c52
"openmp: Fix up strtoul and strtoull uses in libgomp", resulting in spurious
FAILs for tests specifying 'dg-set-target-env-var "GOMP_OPENACC_DIM" "[...]"'.

	libgomp/
	* env.c (parse_gomp_openacc_dim): Restore parsing.
This commit is contained in:
Thomas Schwinge 2021-11-05 14:42:21 +01:00
parent 7798ae1a15
commit 00c9ce13a6
1 changed files with 1 additions and 1 deletions

View File

@ -1243,7 +1243,7 @@ parse_gomp_openacc_dim (void)
errno = 0;
val = strtol (pos, &eptr, 10);
if (errno || eptr != pos || val < 0 || (unsigned)val != val)
if (errno || eptr == pos || val < 0 || (unsigned)val != val)
break;
goacc_default_dims[i] = (int)val;