This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Refine verify_expr and LHS
- From: Eric Christopher <echristo at redhat dot com>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 25 Jun 2004 11:29:19 -0700
- Subject: Re: Refine verify_expr and LHS
- References: <10406251821.AA12041@vlsi1.ultra.nyu.edu>
> +
> + /* Check operand N for being valid GIMPLE and give error MSG if not. */
> + #define CHECK_OP(N, MSG) \
> + do { if (TREE_CODE_CLASS (TREE_CODE (TREE_OPERAND (t, N))) != 'c' \
> + && !is_gimple_val (TREE_OPERAND (t, N))) \
> + { error (MSG); return TREE_OPERAND (t, N); }} while (0)
>
Can you just make this a function? It seems generically useful.
-eric
--
Eric Christopher <echristo@redhat.com>