From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 91087 invoked by alias); 4 Dec 2015 18:50:19 -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 91077 invoked by uid 89); 4 Dec 2015 18:50:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qk0-f182.google.com Received: from mail-qk0-f182.google.com (HELO mail-qk0-f182.google.com) (209.85.220.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 04 Dec 2015 18:50:18 +0000 Received: by qkdb5 with SMTP id b5so7106962qkd.0 for ; Fri, 04 Dec 2015 10:50:15 -0800 (PST) X-Received: by 10.55.197.195 with SMTP id k64mr12077537qkl.25.1449255015848; Fri, 04 Dec 2015 10:50:15 -0800 (PST) Received: from ?IPv6:2601:181:c000:c497:a2a8:cdff:fe3e:b48? ([2601:181:c000:c497:a2a8:cdff:fe3e:b48]) by smtp.googlemail.com with ESMTPSA id j64sm5997042qhc.36.2015.12.04.10.50.15 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 04 Dec 2015 10:50:15 -0800 (PST) Subject: Re: [PTX] var emission To: GCC Patches References: <5661DEF1.2000708@acm.org> Cc: Alexander Monakov From: Nathan Sidwell Message-ID: <5661E066.8040601@acm.org> Date: Fri, 04 Dec 2015 18:50:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <5661DEF1.2000708@acm.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2015-12/txt/msg00624.txt.bz2 On 12/04/15 13:44, Nathan Sidwell wrote: > I've committed this patch to unify the variable emission machinery. All four > hooks were doing small variations of a common theme. This introduces > nvptx_assemble_decl_begin to do the common work. While there, I expanded the > init initialization code to work with multi-dimensional arrays. I forgot to mention that undefined decls are now emitted with the expected size, rather than a plain '.b8'. This fixed one of the struct compatibility tests, and I suspect a bunch of other inter-linking cases. nathan