egcs needs a system.h?
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Fri Feb 13 10:58:00 GMT 1998
> Any binaries generated during the stage 0 and executed during the
> stage 0 are for the build machine. Some binaries may have
> 2 copies, one for the host machine and the other for the
> build machine. They have to be compiled twice. It is very tricky.
> It took me a while to get it working. Read gcc/build-make may
> help a little bit.
>
> Here is my old patch.
>
> --
> H.J. Lu (hjl@gnu.org)
> ---
> Fri Aug 15 17:47:14 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
>
> * configure.in (--with-auto-config.h): New argument. Create
> auto-config.h and exit.
> (build-auto-config.h): Create it if the build machine is not
> the same as the host machine.
> (hconfig.h): Include build-auto-config.h if the build machine
> is not the same as the host machine. Otherwise include
> auto-config.h.
HJ,
I read gcc/build-make and I'm still not sure how a system.h
would conflict with anything you've mentioned. Let me be more explicit
about what I propose. Given any source file in gcc, they could do the
following:
#include "the-appropriate-gcc-config-file.h"
#include "gansidecl.h"
#include "system.h"
#include "whatever-local-gcc-includes-you-want.h"
I don't see this conflicting with your patch. Remember I'm not
proposing any *config.h file (host or build) include system.h directly,
(is that possibility what bothered you?) I'm saying that each individual
C source file would include the appropriate *config.h file and after
that would include system.h. I hope this allays your concerns.
--Kaveh
--
Kaveh R. Ghazi Project Manager / Custom Development
ghazi@caip.rutgers.edu ICon CMT Corp.
More information about the Gcc
mailing list