From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 0C5A03858C3A; Tue, 9 Nov 2021 16:03:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0C5A03858C3A MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-5061] Restore 'GOMP_OPENACC_DIM' environment variable parsing X-Act-Checkin: gcc X-Git-Author: Thomas Schwinge X-Git-Refname: refs/heads/master X-Git-Oldrev: 7798ae1a15055fe956978453ea62932d680ace72 X-Git-Newrev: 00c9ce13a64e324dabd8dfd236882919a3119479 Message-Id: <20211109160347.0C5A03858C3A@sourceware.org> Date: Tue, 9 Nov 2021 16:03:47 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Nov 2021 16:03:47 -0000 https://gcc.gnu.org/g:00c9ce13a64e324dabd8dfd236882919a3119479 commit r12-5061-g00c9ce13a64e324dabd8dfd236882919a3119479 Author: Thomas Schwinge Date: Fri Nov 5 14:42:21 2021 +0100 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. Diff: --- libgomp/env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;