CVS-19981211: PATCH for crash in fix-headers caused by cpplib.c
Dave Brolley
brolley@cygnus.com
Mon Dec 14 12:42:00 GMT 1998
Zack Weinberg wrote:
> On Mon, 14 Dec 1998 15:53:52 +0100 (MET), Manfred Hollstein wrote:
> > > Your patch points out a case I hadn't considered. What should we do
> > > when we see #include_next in a file included by an absolute path, or
> > > in the primary source file? (These are handled identically by
> > > cpplib.) Right now we dump core. Your patch makes cpp give a "No
> > > include path in which to find %s" error message. Another possible
> > > behavior would be to treat it as an ordinary #include. I don't see an
> > > obvious reason to prefer either of the two non-crashing behaviors.
> >
Personal opinion.....in the case of an absolute path, give the message that there
was no search to continue. In the case of #include_next in primary file, treat it
like an ordinary #include.
Dave
More information about the Gcc-patches
mailing list