This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: gcc 3.2's cpp breaks configure scripts


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


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