From patchwork Tue Dec 1 06:02:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Funck X-Patchwork-Id: 550679 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 A98421401E7 for ; Tue, 1 Dec 2015 17:04:15 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=Fny15N37; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; q=dns; s=default; b=yoXZh177ICMn0wdsag3ugV5VjfM0pacgE4oplgqh1CX9gMH4+9 381aPFErb15ftdjeewZbQYqRvhb98MpQnaWzZrdUQVFRLsjRt38pEZVszmG5izgm aLO4ygeXNeBn6CFgVscaJjlX8sM0QdLOIA+UHid/yxSc5rK1MEqe2e4A4= 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:date :from:to:cc:subject:message-id:mime-version:content-type; s= default; bh=+q9G9zDyD/MUdYqxgkYvFySP2Qk=; b=Fny15N370/xgr0dP0MNh zLpG+nlZ9yHXrFLRWSpCGl4315xXonnrGQrXPTqykJPd2aaLLsfroh3hMN9tXPK/ gunspO4olWNmRbZ/7aaDDPH9HQS5BagFPst+b/DaE+aLqi9NJWuHQRpf7+Fyqvo0 5qdZpwk/8i212c95F8R3t2s= Received: (qmail 56483 invoked by alias); 1 Dec 2015 06:02:51 -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 56046 invoked by uid 89); 1 Dec 2015 06:02:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: mail-qg0-f100.google.com Received: from mail-qg0-f100.google.com (HELO mail-qg0-f100.google.com) (209.85.192.100) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 01 Dec 2015 06:02:44 +0000 Received: by qgea14 with SMTP id a14so11998869qge.2 for ; Mon, 30 Nov 2015 22:02:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=6EA/ihNv7k57Q5QJxAMoBEvOs3yLSocRGnRZ3GgRiyc=; b=gGEcbdrrpQT2B13GzyI4JRs+yRcKBzSRs1PBG2+PVwGIlxdz1IzdfubYbRS3ve4FQJ sPNNkscERPHxXeS3AcRaj2xuetsJW+pCPJtcuicet+p/soPiW+SuEkmfXbOooiOFh2sY Sgw02DjotVR+SGXD7hJpOlZM+RG04r66YlCP0Gb6dugN0/N4TVCGYbP2jxHSumofTIWM eQsOM+QzZNl47mDRYjqD/vRc6ZzUeM6TjDvJaNvgNTDYGM/VlFs2gEf8vFs69FH3suR5 by9qtrpCBH3NAYAcnBhFQBlo/1TOYqVkb4GbImDOKnI4ccVBCh7+0IDLszgFh/FMG7Vx 8DNQ== X-Gm-Message-State: ALoCoQnci2vWz6Yg1HWD+5fL4zl+ybA7WceY+ALpGwnRAVKgs5sIYmJ28JRw0MvMB4xrdfCrP1x3MyhUSglCIeMLPnj/40gc8A== X-Received: by 10.107.155.149 with SMTP id d143mr63474066ioe.145.1448949762315; Mon, 30 Nov 2015 22:02:42 -0800 (PST) Received: from intrepid.com (74-95-8-117-SFBA.hfc.comcastbusiness.net. [74.95.8.117]) by smtp-relay.gmail.com with ESMTPS id 10sm2670724igr.3.2015.11.30.22.02.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Nov 2015 22:02:42 -0800 (PST) X-Relaying-Domain: intrepid.com Received: from corp.local (localhost [127.0.0.1]) by corp.local (8.14.8/8.14.8) with ESMTP id tB162fqv031286; Mon, 30 Nov 2015 22:02:41 -0800 Received: (from gary@localhost) by corp.local (8.14.8/8.14.8/Submit) id tB162el2031285; Mon, 30 Nov 2015 22:02:40 -0800 Date: Mon, 30 Nov 2015 22:02:40 -0800 From: Gary Funck To: Gcc Patches Cc: Andrew MacLeod , Eric Botcazou , Steven Bosscher , Nenad Vukicevic Subject: [UPC 15/22] RTL changes Message-ID: <20151201060240.GA31274@intrepid.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes Background ---------- An overview email, describing the UPC-related changes is here: https://gcc.gnu.org/ml/gcc-patches/2015-12/msg00005.html The GUPC branch is described here: http://gcc.gnu.org/projects/gupc.html The UPC-related source code differences are summarized here: http://gccupc.org/gupc-changes All languages (c, c++, fortran, go, lto, objc, obj-c++) have been bootstrapped; no test suite regressions were introduced, relative to the GCC trunk. If you are on the cc-list, your name was chosen either because you are listed as a maintainer for the area that applies to the patches described in this email, or you were a frequent contributor of patches made to files listed in this email. In the change log entries included in each patch, the directory containing the affected files is listed, followed by the files. When the patches are applied, the change log entries will be distributed to the appropriate ChangeLog file. Overview -------- UPC pointers-to-shared have an internal representation which is defined as a 'struct' with three fields. Special logic is needed in promote_mode() to handle this case. 2015-11-30 Gary Funck gcc/ * explow.c (promote_mode): For UPC pointer-to-shared values, return the mode of the UPC PTS representation type. Index: gcc/explow.c =================================================================== --- gcc/explow.c (.../trunk) (revision 231059) +++ gcc/explow.c (.../branches/gupc) (revision 231080) @@ -794,6 +794,8 @@ promote_mode (const_tree type ATTRIBUTE_ case REFERENCE_TYPE: case POINTER_TYPE: *punsignedp = POINTERS_EXTEND_UNSIGNED; + if (SHARED_TYPE_P (TREE_TYPE (type))) + return TYPE_MODE (upc_pts_type_node); return targetm.addr_space.address_mode (TYPE_ADDR_SPACE (TREE_TYPE (type))); break;