From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1147) id 1053E3858C31; Fri, 17 Feb 2023 12:33:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1053E3858C31 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676637234; bh=QEEjepAyKSqrJm1nvxcalveFdBEVtYtOxO9k+Xnt+cQ=; h=From:To:Subject:Date:From; b=ZOuiUEhtkKg0PKdHw0f+1uhXZTJAT+auIHAQXAnyqirUfi3QAP2TO2vC6QjDYjVMf x/8RF4jLEyzOB2Rs7NQsip5Fyw2zSUW1tf0Ib15zXIXBmbR/C6I29PY2Ao4Q/xyvpD Z3gFrRQscXUyuVYvMvLl20lXzel6N8vT2t++wLZM= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Rainer Orth To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-6115] contrib: Fix make_sunver.pl warning X-Act-Checkin: gcc X-Git-Author: Rainer Orth X-Git-Refname: refs/heads/master X-Git-Oldrev: 4c4f0f7acd6b96ee744ef598cbea5c7046a33654 X-Git-Newrev: ae2c1d0a9dc33f4c309a589d9f68fcd31206500e Message-Id: <20230217123354.1053E3858C31@sourceware.org> Date: Fri, 17 Feb 2023 12:33:54 +0000 (GMT) List-Id: https://gcc.gnu.org/g:ae2c1d0a9dc33f4c309a589d9f68fcd31206500e commit r13-6115-gae2c1d0a9dc33f4c309a589d9f68fcd31206500e Author: Rainer Orth Date: Fri Feb 17 13:33:25 2023 +0100 contrib: Fix make_sunver.pl warning Petr informed me that perl 5.32 bundled with Solaris 11.4 warns about make_sunver.pl: Unescaped left brace in regex is passed through in regex; marked by <-- HERE in m/^([ \t]*){ <-- HERE $/ at /vol/gcc/src/hg/master/local/libgomp/../contrib/make_sunver.pl line 216. I didn't notice since I'm using a common installation of perl 5.12 across Solaris versions that doesn't show that warning. His patch fixes the issue. Tested on Solaris 11.3 (perl 5.12) and 11.4 (perl 5.32). 2023-01-20 Petr Sumbera contrib: * make_sunver.pl: Escape brace. Diff: --- contrib/make_sunver.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/make_sunver.pl b/contrib/make_sunver.pl index 8a90b1fea0d..32e639ed873 100644 --- a/contrib/make_sunver.pl +++ b/contrib/make_sunver.pl @@ -213,7 +213,7 @@ while () { if (/^[ \t]*$/) { print; next; } # Lines of the form '{' - if (/^([ \t]*){$/) { + if (/^([ \t]*)\{$/) { if ($in_extern) { print "$1##{\n"; } else {