From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 113618 invoked by alias); 9 May 2017 11:01:07 -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 113301 invoked by uid 89); 9 May 2017 11:01:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 09 May 2017 11:01:05 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 79363EC2F6; Tue, 9 May 2017 11:01:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 79363EC2F6 Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=polacek@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 79363EC2F6 Received: from redhat.com (ovpn-204-80.brq.redhat.com [10.40.204.80]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v49B10SM014587 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 9 May 2017 07:01:03 -0400 Date: Tue, 09 May 2017 11:09:00 -0000 From: Marek Polacek To: Nathan Sidwell Cc: GCC Patches , Joseph Myers Subject: Re: [PATCH] decl lang hooks Message-ID: <20170509110100.GD4910@redhat.com> References: <90b92a42-d32e-a108-5094-b59224ab7755@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <90b92a42-d32e-a108-5094-b59224ab7755@acm.org> User-Agent: Mutt/1.8.0 (2017-02-23) X-SW-Source: 2017-05/txt/msg00624.txt.bz2 On Mon, May 08, 2017 at 03:16:13PM -0400, Nathan Sidwell wrote: > +/* Return the list of decls in the global namespace. */ > + > +static > +tree get_global_decls () > +{ > + return NAMESPACE_LEVEL (global_namespace)->names; > +} > + > +/* Push DECL into the current scope. */ > + > +static > +tree cxx_pushdecl (tree decl) > +{ > + return pushdecl (decl); > +} These look weird - I'd expect to see "static tree" on the same line. Marek