This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: intl-compat.c bootstrap failure
- To: gcc-patches at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Subject: Re: intl-compat.c bootstrap failure
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Mon, 5 Jun 2000 17:20:51 -0400 (EDT)
> Kaveh R. Ghazi wrote :
> > > From: "Philippe De Muyter" <phdm@macqel.be>
> > >
> > > [...]
> > > but `IN_GCC' is not defined ! And adding merely -DIN_GCC to the
> > > command-line flags does not work because gansidecl.h, xm-alloca.h,
> > > etc are not found !
> > >
> > > What's the proper fix ?
> > > Philippe
> >
> > I think you need to somehow pass the following flags into the intl
> > directory.
> >
> > > -DIN_GCC -I$(top_srcdir) -I$(top_srcdir)/../include -I$(top_srcdir)/config
> >
> > (I'm assuming $top_srcdir is the gcc directory. You may have to adjust(?))
>
> I'd rather think that config.h should include unconditionnaly `auto-host.h'.
> Currently, config.h on my platform only includes the other files #ifdef IN_GCC.
> What's the purpose of a config.h file that is empty if IN_GCC is not defined ?
You also need gansidecl.h to get the correct defines for const, inline, etc,
in stages 2 and 3. You probably don't need the other headers included by
gcc/config.h but including them is unlikely to hurt. The advantage to just
using "-DIN_GCC" is that you don't have to change anything other than
Makefile.in. This has worked for me on two different platforms.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)