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]
Other format: [Raw text]

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
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 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 is.

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

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk


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