This is the mail archive of the 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]: Separate target and host config files

Nathan Sidwell wrote:
Zack Weinberg wrote:

From here, grepping the desired defines out of auto-host.h is
preferable, because it is then clear that the grep statement defines
the desired subset.  If we go with your template file, I for one will
forever be wondering whether the template file is up-to-date, and
furthermore whether we might somehow have (potential) macros in
auto-target.h that *aren't* in auto-host.h.

I'm not wedded to grep - I just want this done by means of a
transformation rule rather than a manually-created, to-be-hand-edited
subset file.

I understand your concern. We'll have to manually edit the names being
grepped for, so that bit of maintaince doesn't go away, it merely moves
(from a vaguely standard place to a nonstandard or makefile).
The other danger, of placing a name in the template file that does not
exist in auto-host.h would be averted though.  Hmm, autoconf really ought
to have a mechanism to verify that, but if it does, I don't know what it

I'll investigate a grep mechanism and see how it looks.

If it's a subset, we could alsot put:


around the things in auto-host.h that we want on the target. That would also make the subset explicit but it might be hard to do make that play nice with autoheader.

Mark Mitchell
CodeSourcery, LLC
(916) 791-8304

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