From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2876 invoked by alias); 15 May 2009 22:19:21 -0000 Received: (qmail 2868 invoked by uid 22791); 15 May 2009 22:19:20 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from web111613.mail.gq1.yahoo.com (HELO web111613.mail.gq1.yahoo.com) (67.195.23.100) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Fri, 15 May 2009 22:19:15 +0000 Received: (qmail 75981 invoked by uid 60001); 15 May 2009 22:19:13 -0000 Message-ID: <124933.73562.qm@web111613.mail.gq1.yahoo.com> Received: from [70.98.240.34] by web111613.mail.gq1.yahoo.com via HTTP; Fri, 15 May 2009 15:19:13 PDT References: <861076.29856.qm@web111612.mail.gq1.yahoo.com> Date: Sat, 16 May 2009 01:31:00 -0000 From: Jamie Prescott Subject: Re: 4.4 API changes To: Diego Novillo Cc: gcc@gcc.gnu.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-05/txt/msg00413.txt.bz2 > From: Diego Novillo > To: Jamie Prescott > 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