This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 3.2's cpp breaks configure scripts
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Gareth Pearce <tilps at hotmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 1 Aug 2002 08:52:07 +0200
- Subject: Re: gcc 3.2's cpp breaks configure scripts
- References: <F30mZAfzsMHbXar1OtB0001a745@hotmail.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Aug 01, 2002 at 06:38:44AM +0000, Gareth Pearce wrote:
>
> > > hmmm maybe I should drop out of this thread before my ignorance shows
> >too
> > > much :)
> > >
> > > (looks in his linux /usr/include - finds limits.h - reads comments -
> >fails
> > > to see how 'not work' implies 'problem' - hmmm maybe its not supposed
> >to)
> > >
> >
> >Do
> >
> ># echo "#include <limits.h>" > x.c
> ># gcc -M x.c
> ># gcc -M x.c -I/usr/include
> >
>
> Hmm, I see, changed order (expected) - and gcc's syslimits not being called,
> but that seems okay since limits is already called... (ie it looks like the
> copy of linux I am looking at at least has been designed to handle this
> situation) *shrug*
> I see the possibility of breakage... not from the #include_next though. (ie,
> less potential breakage then if the #include_next wasnt there)
limits.h with -I/usr/include was actually broken already twice
in the history if I remember well and in both times changed after a while
so that it works, though it is quite ugly. This is not the case with
/usr/include/c++/<version> though and the more headers use #include_next
this means more (potential) problems.
Jakub