From patchwork Fri Nov 9 19:04:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 995717 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-489569-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=golang.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="UTD47RSL"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=golang-org.20150623.gappssmtp.com header.i=@golang-org.20150623.gappssmtp.com header.b="hwIcPq1A"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42s8hh3sncz9sDn for ; Sat, 10 Nov 2018 06:04:19 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=Annokq3RwjFasAKeHQ5JeUAYxgNw2dE3s81C6DH9fb3GJ/ 0vVPivxOsaIKclOrezpN/uug6saWDljMHrCS48Ir5gLP3S1o6I7ILJEgxs/Gu7V0 oFsQkB3jG7RN5nMgJK8nHInpFiVb6qmgY2fIHCr4VkEp2/7xqi6Cs3t+mB9c4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=wZos8zebdtKYUGWKtTAyUwvhgFA=; b=UTD47RSL2AMjx9b3H0Zk ntyDOcpwoYzi/I4H04fdkjwZWg4g6Y8Fs8tEUBILnTijwgQWrAhscWIamuxqat3x 9SlY/17uBAOSZho8XEf/wXOpW3cv4IT7y/U/BJr4M2S6qPGZ+kBYw5TQxzrhn7Zj umWwrn8Vx+M94lhCNCBizUE= Received: (qmail 30043 invoked by alias); 9 Nov 2018 19:04:12 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 30026 invoked by uid 89); 9 Nov 2018 19:04:11 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-11.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=Than X-HELO: mail-lj1-f177.google.com Received: from mail-lj1-f177.google.com (HELO mail-lj1-f177.google.com) (209.85.208.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 09 Nov 2018 19:04:10 +0000 Received: by mail-lj1-f177.google.com with SMTP id x85-v6so2502150ljb.2 for ; Fri, 09 Nov 2018 11:04:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golang-org.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=DAkX/g5/qyqDxSCE/SFxLXv1ISFsNNa4rX9ZyCPcY/s=; b=hwIcPq1AIIatUYcl3YRO/3zP+UrEYfEb65jgsV+37b5FuPcTyBSRickpFiYCOz0b/R znm3vHVBuh1EBbNZIckqyHz+ewT4f4kFSg4KccTCXGU0UCYauveo24/yVBydIcdd1inF nAXskNF8tUHM7/HBbeVt5KW+7k3F/REdjKRZowp/9Dw7Lwgx0A9tkByebxFizG6dynRU wV1j3/txTAmAYx+0b2Xrj2YQ1lnM9kve/LK4Eq0OjLziz/YcXucOyEG5ZugIO3Xd5CE5 A9dqMiKyP5E3V50aRgUJovRxXLcyMBkp0wYx+VPuy43oJbvAJAfgkaHQ1CrJRC///bpL eiVQ== MIME-Version: 1.0 Received: by 2002:a05:6504:497:0:0:0:0 with HTTP; Fri, 9 Nov 2018 11:04:06 -0800 (PST) From: Ian Lance Taylor Date: Fri, 9 Nov 2018 11:04:06 -0800 Message-ID: Subject: libgo patch committed: Fix typo in gccgo name mangling in cgo To: gcc-patches , gofrontend-dev@googlegroups.com This patch by Than McIntosh fixes a typo in cmd/cgo in the gccgo name mangling recipe. The code to implement new-style gccgo name mangling had a recipe that didn't quite match the one in the compiler (incorrect handling for '.'). This showed up as a failure in the gotools cgo test if the directory containing the test run included a "." character. Bootstrapped and ran Go tests on x86_64-pc-linux-gnu. Committed to mainline. Ian Index: gcc/go/gofrontend/MERGE =================================================================== --- gcc/go/gofrontend/MERGE (revision 265974) +++ gcc/go/gofrontend/MERGE (working copy) @@ -1,4 +1,4 @@ -da8c968474690d1e77442ac3361b2302ea8e1f36 +559fae430b81595efe151222385192a07a9fc3c3 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. Index: libgo/go/cmd/cgo/out.go =================================================================== --- libgo/go/cmd/cgo/out.go (revision 265710) +++ libgo/go/cmd/cgo/out.go (working copy) @@ -1261,7 +1261,7 @@ func gccgoPkgpathToSymbolNew(ppath strin for _, c := range []byte(ppath) { switch { case 'A' <= c && c <= 'Z', 'a' <= c && c <= 'z', - '0' <= c && c <= '9', '_' == c: + '0' <= c && c <= '9', c == '_', c == '.': bsl = append(bsl, c) default: changed = true