mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user