This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [ast-optimizer-branch] PATCH for some sanity checks
- From: Richard Henderson <rth at redhat dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 10 Jun 2002 13:33:50 -0700
- Subject: Re: [ast-optimizer-branch] PATCH for some sanity checks
- References: <wvlfzzyrzsg.fsf@prospero.cambridge.redhat.com>
On Sat, Jun 08, 2002 at 08:32:31AM +0100, Jason Merrill wrote:
> + /** {{{ simple_tmp_var_p ()
> +
> + Returns true if T is a SIMPLE temporary variable, false otherwise. */
> +
> + bool
> + simple_tmp_var_p (t)
> + tree t;
> + {
> + /* FIXME this could trigger for other local artificials, too. */
> + return (TREE_CODE (t) == VAR_DECL && DECL_ARTIFICIAL (t)
> + && !TREE_STATIC (t) && !DECL_EXTERNAL (t));
> + }
> +
> /** {{{ make_type_writable ()
Missed the closing }}}.
Though frankly I think that Diego is going to have to bite
the bullet and stop using them, as that's not how the bulk
of GCC is written.
r~