tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: depreciate asm with -traditional-cpp?



On Wed, Sep 16, 2009 at 07:09:57AM -0400, der Mouse wrote:
 > > (Background of my question is that I'm playing with clang which
 > > doesn't support "-traditional-cpp".)
 > 
 > Perhaps the i386 files in question are in fact C-compatible enough to
 > use a standard C preprocessor, but I think it would be a bad idea to
 > depend on that.

I don't think there are likely to be any assembly languages where
there's a problem. Also, the gcc folks dropped -traditional on
asm-with-cpp ages ago and as far as I know it didn't bite anyone.

 > I'd prefer to either find/build a tradition-compatible
 > preprocessor for them or switch to a more generic preprocessor (eg m4).

m4 is a problem in its own right; we'd be better off coming up with
something new.

On a couple occasions I've thought about deploying make's preprocessor
language as a general-purpose macro processor. Couldn't be entirely
compatible though (or reuse the existing implementation) so it's a bit
problematic.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index