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 09:36:03AM -0800, Zack Weinberg wrote:

 > I propose the syntax
 > 
 >   %:function(args)  
 > 
 > to return a string which is substituted, and

BTW, I was just thinking about this a little ... and it occurred to me
that a LOT of the ugliness of specs can be cleaned up by this.  Really,
in a way that's similar to how the TARGET_*_CPP_BUILTINS were done, but
while still keeping them "in specs"...

For example, take a look at config/mips/mips.h, ASM_SPEC... note the
long, somewhat annoying string of stuff used to pass the ABI flag to
the assembler... That whole string of stuff could be replaced by a
single:

	%:mips_asm_abi_flag()

which could emit the ABI flag to the assembler with the same precision
used to get CPP built-ins right (by switching on the mips_abi variable).

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>


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