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]

Re: intl-compat.c bootstrap failure


> 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)

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