[PATCH]: Separate target and host config files

Nathan Sidwell nathan@codesourcery.com
Wed May 4 14:43:00 GMT 2005


Hi,
this patch fixes the problem with runtime checking that Mike Stump uncovered.
The problem is that we did not have an auto-target.h equivalent of auto-host.h.
As such, including 'tconfig.h' did not get you any target side configuration
switches from configure, whereas 'config.h' would get you the host side
equivalents.  Some of the target files would explicitly include 'auto-host.h'
to get at some configuration #defines.  This is of course ugly and dangerous.

This patch fixes the problem by adding a new 'tconfig.in' template and
amending the configure machinery to create auto-target.h from that, and
inlude that file in 'tconfig.h'.  This allowed me to remove the #include
auto-host.h from the target side libraries.  I also uncovered a couple
of typos with the runtime checking configure processing.

booted and tested on i686-pc-linux-gnu, both with and without checking.
I manually confirmed that libgcov, which is the only runtime library
currently using runtime gcc_asserts, was built correctly in both cases.

ok?

nathan

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

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: conf-runtime.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050504/42caa8cd/attachment.ksh>


More information about the Gcc-patches mailing list