This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: macros in .md files
- To: gcc-patches at gcc dot gnu dot org
- Subject: Re: macros in .md files
- From: Jim Wilson <wilson at cygnus dot com>
- Date: Tue, 17 Oct 2000 15:22:15 -0700
In article <10010172154.AA22433@vlsi1.ultra.nyu.edu> you write:
>The facility already exists for a target to have its MD file passed
>through CPP. See md_cppflags in configure.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.
Jim