This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] decl lang hooks
- From: Marek Polacek <polacek at redhat dot com>
- To: Nathan Sidwell <nathan at acm dot org>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Joseph Myers <joseph at codesourcery dot com>
- Date: Tue, 9 May 2017 13:01:00 +0200
- Subject: Re: [PATCH] decl lang hooks
- Authentication-results: sourceware.org; auth=none
- 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 at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 79363EC2F6
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 79363EC2F6
- References: <90b92a42-d32e-a108-5094-b59224ab7755@acm.org>
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