Problem with --enable-c-cpplib and precompiled sources

Dave Brolley brolley@cygnus.com
Wed Dec 9 13:00:00 GMT 1998


I'm just about to install a patch that should fix this.

Dave

Andris Pavenis wrote:

> Hi!
>
> I tried to build egcs-1.1.1 release for DJGPP with configure option
> --enable-c-cpplib. All things I have tested works except compiling already
> precompiled source (see stack trace in attachment). This happens even with
> empty file so contents doesn't mater.
>
> >From  'gcc -c -v xxx.ii'   I'm getting SIGSEGV:
>
> cpp_buffer *
> cpp_push_buffer (pfile, buffer, length)
>      cpp_reader *pfile;
>      U_CHAR *buffer;
>      long length;
> {
>   register cpp_buffer *buf = CPP_BUFFER (pfile);
>                         ############    I'm getting buf==NULL here so SIGSEGV is
>                  ############   natural
>   if (buf == pfile->buffer_stack)
>     {
>       cpp_fatal (pfile, "%s: macro or `#include' recursion too deep",
>        buf->fname);
>       return NULL;
>     }
>   buf--;
>   bzero ((char *) buf, sizeof (cpp_buffer));
>
> Andris
>
>   ----------------------------------------------------------------------
> The following section of this message contains a file attachment
> prepared for transmission using the Internet MIME message format.
> If you are using Pegasus Mail, or any another MIME-compliant system,
> you should be able to save it or view it from within your mailer.
> If you cannot, please ask your system administrator for assistance.
>
>    ---- File information -----------
>      File:  xxx.l1
>      Date:  8 Dec 1998, 13:46
>      Size:  1379 bytes.
>      Type:  Text
>
>   ----------------------------------------------------------------------
>
>    xxx.l1   Name: xxx.l1
>             Type: unspecified type (Application/Octet-stream)






More information about the Gcc-bugs mailing list