From patchwork Wed Aug 21 17:19:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 1150991 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-507461-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="dmvcb1xP"; 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="e4x93QZ9"; 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 46DDv44yR9z9s3Z for ; Thu, 22 Aug 2019 03:20:16 +1000 (AEST) 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=CnI1Nj86NriqTgg3+esp09N9NMkEb8forQDyAxJnVCEUT6 d0+yl+75wE5XmKJO/2R0gRZ06BiaCL9b+bLmDGVME5bimiLYrjDoRXi5goyl3Nc8 qBoFoWrgB+XTp7yzXkaMPdOJm2gn0yZJZ8iRP2+Etx/++/O8ZmHLJ9U5DKkqg= 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=rX1bdKnLLYhMLShCs9TmrzQ9vfE=; b=dmvcb1xP0O99L4cb32Fd dgS2JpxWWDSOqCbN01dy4Kn5ba1nIUD+85+90QiPR7d2kT88NSBtM/7ZrgpN8oSB F19p7bRsqmoRih/zYFGl7W8h5Zb+2i+o88W9xxofT9sJRVIgSZSQCDYPTODQX4j7 BhSd1y04BcUDUtwDs6y89n0= Received: (qmail 94024 invoked by alias); 21 Aug 2019 17:20:10 -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 94009 invoked by uid 89); 21 Aug 2019 17:20:09 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-10.7 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.1 spammy= X-HELO: mail-lj1-f174.google.com Received: from mail-lj1-f174.google.com (HELO mail-lj1-f174.google.com) (209.85.208.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 21 Aug 2019 17:20:08 +0000 Received: by mail-lj1-f174.google.com with SMTP id l1so2861288lji.12 for ; Wed, 21 Aug 2019 10:20:08 -0700 (PDT) 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=UtgUqSpZcq/PHS3Xj8HdkfarDpiEPBbbsMdi5xECCIk=; b=e4x93QZ9G2yQEQyIxHHK4xhyaT0auiBBf3DAbpvD4eWbDexrPR2yJBCLyymc869F1q z6WAefrTttH7ckZiuhrrEQRe6mVCTujBAUWxVmLtlW+p5Z3H9oJELLk6LRCVJ084AreS sGeoNmNWOB97THQcNhggUnm+qR7goR57ZWLTczOFtRS6aF6LXvTceW1uxSWY0hwokI8r HwarqA+W2I7TXrbxWD+R0tuAPr7J6y2ZqX4oBIrxNUfItXP1njjN7BETdK2W8/90qttd Fdvx5EAgE7NQkoIgdc86H2TejhLNRDCPI+gZljd9zKceJqoHix2wNGRx2Z9pguoqfRSD Sm7g== MIME-Version: 1.0 From: Ian Lance Taylor Date: Wed, 21 Aug 2019 10:19:54 -0700 Message-ID: Subject: Go patch committed: Don't use pkgpath for fieldtrack of unexported field To: gcc-patches , gofrontend-dev This patch to the Go frontend fixes it to not use the full package path for the fieldtrack information generated for an unexported field. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed to mainline. Ian Index: gcc/go/gofrontend/MERGE =================================================================== --- gcc/go/gofrontend/MERGE (revision 274800) +++ gcc/go/gofrontend/MERGE (working copy) @@ -1,4 +1,4 @@ -7da359f4659fffff051c05ff442037cfa61febd5 +82d27f0f140f33406cf59c0fb262f6dba3077f8e The first line of this file holds the git revision number of the last merge done from the gofrontend repository. Index: gcc/go/gofrontend/expressions.cc =================================================================== --- gcc/go/gofrontend/expressions.cc (revision 274800) +++ gcc/go/gofrontend/expressions.cc (working copy) @@ -13795,7 +13795,7 @@ Field_reference_expression::do_lower(Gog if (nt != NULL) s.append(Gogo::unpack_hidden_name(nt->name())); s.push_back('.'); - s.append(field->field_name()); + s.append(Gogo::unpack_hidden_name(field->field_name())); s.push_back('"'); // We can't use a string here, because internally a string holds a