macros in .md files

Jim Wilson
Tue Oct 17 15:20:00 GMT 2000

In article < > you write:
>The facility already exists for a target to have its MD file passed
>through CPP.    See md_cppflags in

The sparc port used to use this.  I hated it.  I don't know how many times
I added a comment, and then had to re-edit it to change "can't" to "can not"
or make some other similarly silly change.

While the idea of having macros has some merit, I'd disagree that using cpp is
a good idea.  Anything that tries to pass non-C code through the C preprocessor
is fundamentally broken.  (Yes, imake is fundamentally broken.  Ask anyone
who has ever tried to work on cpp how much trouble imake is.)  This is perhaps
less of an issue now that we have tradcpp, however, I still think that we
shouldn't encourage this problem by using this misfeature ourselves.


More information about the Gcc-patches mailing list