From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 74189 invoked by alias); 30 Nov 2017 05:08:04 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 68129 invoked by uid 89); 30 Nov 2017 05:05:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.9 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,KAM_ASCII_DIVIDERS,KB_WAM_FROM_NAME_SINGLEWORD,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=HTo:D*googlegroups.com, H*Ad:D*googlegroups.com X-HELO: mail-wm0-f52.google.com Received: from mail-wm0-f52.google.com (HELO mail-wm0-f52.google.com) (74.125.82.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 30 Nov 2017 05:05:20 +0000 Received: by mail-wm0-f52.google.com with SMTP id i71so10515815wmf.2 for ; Wed, 29 Nov 2017 21:05:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=QvoV3+T2ZuOIHvMHR/OphpOr6IrwzDHMRmAuGzawWFk=; b=KsFP+0y8AZwOtQvH1Wr6gSoDt8cOIwqyy1uDdPFq5OG/87Je8fw5AY3zPdsyIrQjOd E9oZmSLYte96nbbwKeV9EJJBtcaiPA4RWsgJbIdjl+fbdFAU36PclZ0VGDzeXKIBTtOo ZrnEZQyswyjdbiFS619sX57rjz4X7nMUh6oMtkBiaal/I6MvvxQEVQPn7zFu8LexQ89K 6PpTtrXntEx3jBkBSaLkUZvkuwow4sWROfybc87UenXWeTgGtZ5ospRG3KKynIafAKlw 5kUZ2x97FbqKcso8t6o3gEf9joKOCVePf+XrIn1BY9lyxkB6ZsyiZ2N5NJrsym2ZbXK4 fdOA== X-Gm-Message-State: AJaThX72aHd9+coQxg4gxWjuvmHG7OYInDVRM7vG+aXDDXhuMP6byb7L n04LNuX91O19aCVMZV9uCpD2LmZZ6KUoHV6eobFmmGGn X-Google-Smtp-Source: AGs4zMY3VmTBHCK6mFn4h/rEdOIISG1of4v9jeAn1UlOnC1ulODCt7+aUmxNrOfDWT6BQNwuNej/689HmnNzm5Ospp4= X-Received: by 10.80.135.26 with SMTP id i26mr11055803edb.31.1512018317650; Wed, 29 Nov 2017 21:05:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.179.221 with HTTP; Wed, 29 Nov 2017 21:05:16 -0800 (PST) From: Ian Lance Taylor Date: Thu, 30 Nov 2017 09:18:00 -0000 Message-ID: Subject: Go patch committed: Don't make map zero value constant To: gcc-patches , "gofrontend-dev@googlegroups.com" Content-Type: multipart/mixed; boundary="94eb2c198e84b7d3ab055f2c3250" X-SW-Source: 2017-11/txt/msg02537.txt.bz2 --94eb2c198e84b7d3ab055f2c3250 Content-Type: text/plain; charset="UTF-8" Content-length: 357 This patch changes the Go frontend to not make the map zero value constant. The map zero value is a common symbol, and it doesn't really make sense to have a constant common symbol. Current GCC has started to reject this case, probably as part of the fix for PR 83100. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed to mainline. Ian --94eb2c198e84b7d3ab055f2c3250 Content-Type: text/plain; charset="US-ASCII"; name="patch.txt" Content-Disposition: attachment; filename="patch.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_jam0jbfi0 Content-length: 1631 SW5kZXg6IGdjYy9nby9nb2Zyb250ZW5kL01FUkdFCj09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT0KLS0tIGdjYy9nby9nb2Zyb250ZW5kL01FUkdFCShyZXZpc2lv biAyNTUwOTApCisrKyBnY2MvZ28vZ29mcm9udGVuZC9NRVJHRQkod29ya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0 cnVlLAorCQkJCQkgTWFwX3R5cGU6Onplcm9fdmFsdWVfYWxpZ24pOwogICBn b2dvLT5iYWNrZW5kKCktPmltcGxpY2l0X3ZhcmlhYmxlX3NldF9pbml0KHp2 YXIsIHpuYW1lLCBiYXJyYXlfdHlwZSwKLQkJCQkJICAgICAgZmFsc2UsIHRy dWUsIHRydWUsIE5VTEwpOworCQkJCQkgICAgICBmYWxzZSwgZmFsc2UsIHRy dWUsIE5VTEwpOwogICByZXR1cm4genZhcjsKIH0KIAo= --94eb2c198e84b7d3ab055f2c3250--