About building conditional expressions

2007-01-23 Thread Ferad Zyulkyarov
Hi, In the old references there is a function "build" that is used for building tree nodes. Using this function one can build a conditional expression as follows: build(EQ_EXPR, integet_type_node, left, rith); which is left == right But, as I noticed this function "build" is not maintained (use

Re: About building conditional expressions

2007-01-23 Thread Steven Bosscher
On 1/23/07, Ferad Zyulkyarov <[EMAIL PROTECTED]> wrote: But, as I noticed this function "build" is not maintained (used) by gcc any more. Instead build, what else may I use to create a conditional expression node? Look for buildN where N is a small integer ;-) I think you want build2 for EQ_EX

Re: About building conditional expressions

2007-01-23 Thread Ferad Zyulkyarov
Thanks a lot, that's it On 1/23/07, Steven Bosscher <[EMAIL PROTECTED]> wrote: On 1/23/07, Ferad Zyulkyarov <[EMAIL PROTECTED]> wrote: > But, as I noticed this function "build" is not maintained (used) by > gcc any more. Instead build, what else may I use to create a > conditional expression nod

Re: About building conditional expressions

2007-01-23 Thread Tom Tromey
> "Ferad" == Ferad Zyulkyarov <[EMAIL PROTECTED]> writes: Ferad> build(EQ_EXPR, integet_type_node, left, rith); Ferad> which is left == right Ferad> But, as I noticed this function "build" is not maintained (used) by Ferad> gcc any more. Instead build, what else may I use to create a Ferad> c

Re: About building conditional expressions

2007-01-23 Thread Ferad Zyulkyarov
Hi, I've noticed that you've asked a few questions about trees on the list. You might want to read a tutorial on trees in GCC; there are a few kicking around out there. Sure I would like to look at any tutorial. I found some, but most of them were not complete :( I would appreciate if you can