This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH/RFC] Support for spec predicate expressions


On Wed, Oct 30, 2002 at 10:59:27AM -0800, Jason R Thorpe wrote:
>  > - It would be nice if the syntax allowed the function to return a
>  >   string which would be substituted.  For instance, some of the work
>  >   I'm doing could use the ability to get at environment variables in
>  >   specs.
>  > 
>  > I propose the syntax
>  > 
>  >   %:function(args)  
>  > 
>  > to return a string which is substituted, and
> 
> ... yah, that's nicer, I agree.  Though, if we're just having the function
> return a spec to process, why bother with boolean expressions?  Seems like
> we can just push the logic into the function, in that case.

If you're happy with pushing the logic into the function, then yeah,
let's do it that way rather than having yet more syntax.  I didn't
want to stomp on your original concept.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]