Re: a nifty feature for c preprocessor‏

2011-12-28 Thread R A
that all being said, i really don't think it's a hard feature to implement like i said, just whenever there is an 1) evaluation in the conditional directives or 2) #define is called, look for "eval", if there, evaluate the expression, then substitute token. the rest of the needs no tamperi

FW: a nifty feature for c preprocessor

2011-12-28 Thread R A
sorry: 2) it takes very little penalty, otherwise.

RE: a nifty feature for c preprocessor

2011-12-28 Thread R A
> And if you want portable pre-processing or code generation, use > something that generates the code rather than inventing tools and > features that don't exist, nor will ever exist. It is also quite common > to use scripts in languages like perl or python to generate tables and > other pre-calcu

Re: a nifty feature for c preprocessor

2011-12-28 Thread David Brown
On 28/12/11 21:57, R A wrote: yes, i do realize that c preprocessor is but a text substitution tool from days past when programmers where only starting to develop the rudimentaries of high-level programming. but the reason i'm sticking with the c preprocessor if the fact that code that i write f

Re: a nifty feature for c preprocessor

2011-12-28 Thread Jonathan Wakely
On 28 December 2011 21:06, Jonathan Wakely wrote: > On 28 December 2011 20:57, R A wrote: >> >> templates, i have no problem with, i wish there could be a C dialect that >> can integrate it, so i wouldn't have to be forced to use C++ and all the >> bloat that usually come from a lot of it's imple

Re: a nifty feature for c preprocessor

2011-12-28 Thread Jonathan Wakely
On 28 December 2011 20:57, R A wrote: > > templates, i have no problem with, i wish there could be a C dialect that can > integrate it, so i wouldn't have to be forced to use C++ and all the bloat > that usually come from a lot of it's implementation (by that i mean a > performance close to C i

RE: a nifty feature for c preprocessor

2011-12-28 Thread R A
yes, i do realize that c preprocessor is but a text substitution tool from days past when programmers where only starting to develop the rudimentaries of high-level programming. but the reason i'm sticking with the c preprocessor if the fact that code that i write from it is extremely portable.

return vs simple_return

2011-12-28 Thread Michael Eager
Hi -- I've run into a problem with the MicroBlaze backend where it is not recognizing a return pattern. I'm trying to modify the back end to use the 'simple_return' pattern, rather than 'return', since MicroBlaze has exactly what the documentation describes: a no-frills return instruction which

Re: FW: a nifty feature for c preprocessor

2011-12-28 Thread David Brown
On 28/12/2011 07:48, R A wrote: i'm an amateur programmer that just started learning C. i like most of the features, specially the c preprocessor that it comes packed with. it's an extremely portable way of implementing metaprogramming in C. though i've always thought it lacked a single feature

RE: A case exposing code sink issue

2011-12-28 Thread Jiangning Liu
> -Original Message- > From: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] On Behalf Of > Jiangning Liu > Sent: Tuesday, December 27, 2011 5:10 PM > To: 'Richard Guenther' > Cc: Michael Matz; gcc@gcc.gnu.org > Subject: RE: A case exposing code sink issue > > > > > The job to do th