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]

Re: macros in .md files


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

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