> From: Diego Novillo <[email protected]>
> To: Jamie Prescott <[email protected]>
> Cc: [email protected]
> Sent: Friday, May 15, 2009 2:40:15 PM
> Subject: Re: 4.4 API changes
>
> On Fri, May 15, 2009 at 17:23, Jamie Prescott wrote:
>
> > I managed to migrate my code to 4.4, but I've some code I cannot figure out
> > how to translate.
> > Before, I was building the TRUE and FALSE instruction list using
> gimplify_and_add(),
> > and then a:
> >
> > build3(COND_EXPR, void_type_node, cond, a_case, b_case);
>
> Are you trying to generate gimple or generic? Both are different data
> structures now.
This is the varargs code, and I currently solved it by using
append_to_statement_list(),
and then adding the resulting tree to the pre_p and post_p using
gimplify_and_add().
Is it OK?
- Jamie