summaryrefslogtreecommitdiff
path: root/libgomp/env.c
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2021-11-05 14:42:21 +0100
committerThomas Schwinge <thomas@codesourcery.com>2021-11-09 16:51:57 +0100
commit00c9ce13a64e324dabd8dfd236882919a3119479 (patch)
treecd7c26fd021469f14f643d1f4d804c996f4f976b /libgomp/env.c
parent7798ae1a15055fe956978453ea62932d680ace72 (diff)
downloadgcc-00c9ce13a64e324dabd8dfd236882919a3119479.tar.gz
Restore 'GOMP_OPENACC_DIM' environment variable parsing
... that got broken by recent commit c057ed9c52c6a63a1a692268f916b1a9131cd4b7 "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.
Diffstat (limited to 'libgomp/env.c')
-rw-r--r--libgomp/env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgomp/env.c b/libgomp/env.c
index df10ff656b6..75018e8c252 100644
--- a/libgomp/env.c
+++ b/libgomp/env.c
@@ -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;