* 4.4 API changes
@ 2009-05-15 22:17 Jamie Prescott
2009-05-15 22:19 ` Diego Novillo
0 siblings, 1 reply; 4+ messages in thread
From: Jamie Prescott @ 2009-05-15 22:17 UTC (permalink / raw)
To: gcc
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);
Where 'a_case' and 'b_case' were tree's.
Now I build two gimple_seq's in the same way, but I cannot see how to pass them to build3().
Is there an API to get the first tree out of the gimple_seq? Or, is there a build3() equivalent
that accepts gimple_seq's?
- Jamie
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 4.4 API changes
2009-05-15 22:17 4.4 API changes Jamie Prescott
@ 2009-05-15 22:19 ` Diego Novillo
2009-05-16 1:31 ` Jamie Prescott
0 siblings, 1 reply; 4+ messages in thread
From: Diego Novillo @ 2009-05-15 22:19 UTC (permalink / raw)
To: Jamie Prescott; +Cc: gcc
On Fri, May 15, 2009 at 17:23, Jamie Prescott <jpresss@yahoo.com> 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.
Diego.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 4.4 API changes
2009-05-15 22:19 ` Diego Novillo
@ 2009-05-16 1:31 ` Jamie Prescott
2009-05-16 9:38 ` Eric Botcazou
0 siblings, 1 reply; 4+ messages in thread
From: Jamie Prescott @ 2009-05-16 1:31 UTC (permalink / raw)
To: Diego Novillo; +Cc: gcc
> From: Diego Novillo <dnovillo@google.com>
> To: Jamie Prescott <jpresss@yahoo.com>
> Cc: gcc@gcc.gnu.org
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-05-16 6:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-15 22:17 4.4 API changes Jamie Prescott
2009-05-15 22:19 ` Diego Novillo
2009-05-16 1:31 ` Jamie Prescott
2009-05-16 9:38 ` Eric Botcazou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).