This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ast-optimizer-branch] PATCH for some sanity checks


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]