This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH]: Separate target and host config files
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
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 mkconfig.sh 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.
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
firstname.lastname@example.org :: http://www.planetfall.pwp.blueyonder.co.uk