From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE [129.70.160.84]) by sourceware.org (Postfix) with ESMTPS id 3EEB83858C31 for ; Fri, 17 Feb 2023 12:34:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3EEB83858C31 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: sourceware.org; spf=none smtp.mailfrom=cebitec.uni-bielefeld.de Received: from localhost (localhost [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id E5975B968F; Fri, 17 Feb 2023 13:34:27 +0100 (CET) X-Virus-Scanned: amavisd-new at CeBiTec.Uni-Bielefeld.DE Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Vat2z4bQzyAs; Fri, 17 Feb 2023 13:34:27 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p5085574e.dip0.t-ipconnect.de [80.133.87.78]) (Authenticated sender: ro) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id 82E9EB90FD; Fri, 17 Feb 2023 13:34:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=CeBiTec.Uni-Bielefeld.DE; s=20200306; t=1676637267; bh=/363dtPR7nVmNylnXfVTPJ2xJx+N/ZMlflFN7seGz5c=; h=From:To:Cc:Subject:Date:From; b=OIKHBDoAREmbrp6EONBOsz4YrxO+I9wyjLplLsLho/sgdlAsYwbGPEA9ebuasxVrs OHVFAupdJJNdkWUv2/6VcJ49inqz2L852z6bPTTB0KIbW3WItxxtX5M/8wj7rx/3zi ez1YfILso69ccD+lH/Nq18GNy4JnYwA9H63BdDFBeltPX49H7WTInUA3iwwYO9j//6 3yil2iN7oHUWx3r6CcKBcVg9SjZ2EoUx7QevshKi1qScpRTgW0NUqffFIGXs9EMz0r bZxXI3wHpf/xNxVq+VQrqsXsqdyiK1RBBdNMYRDby1UrJOSHT8LevPQ9fMqhLeAfGu hB4FVvrpKdSKA== From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Petr Sumbera Subject: [COMMITTED] contrib: Fix make_sunver.pl warning Date: Fri, 17 Feb 2023 13:34:27 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (usg-unix-v) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Status: No, score=-3795.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,GIT_PATCH_0,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --=-=-= Content-Type: text/plain 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). Committed to trunk. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University 2023-01-20 Petr Sumbera contrib: * make_sunver.pl: Escape brace. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=sol2-contrib-make_sunver.patch # HG changeset patch # Parent a9c533b97d6828dce4fa8418864a1fa65f5c46b3 contrib: Fix make_sunver.pl warning diff --git a/contrib/make_sunver.pl b/contrib/make_sunver.pl --- 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 { --=-=-=--