public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/11654] New: gcc seg fault when using pre-compiled headers and -gstabs
@ 2003-07-24  2:19 gcc at tridgell dot net
  2003-07-24  2:33 ` [Bug c/11654] " pinskia at physics dot uc dot edu
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: gcc at tridgell dot net @ 2003-07-24  2:19 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11654

           Summary: gcc seg fault when using pre-compiled headers and -
                    gstabs
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gcc at tridgell dot net
                CC: debian-gcc at lists dot debian dot org,gcc-bugs at gcc
                    dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu

I get a "internal compiler error: Segmentation fault" when using pre-compiled
headers and -gstabs and the pre-compiled header is included indirectly via
another include. The bug does not occur without pre-compiled headers.

I am using the Debian unstable gcc-snapshot package, identified as:
    gcc version 3.4 20030706 (experimental)
I have asked the debian maintainer, and apparently this corresponds exactly with
the 20030706 gcc snapshot.

The simplest test case I have found is as follows:

test.c:
    #include "test.h"

    void test(void) {}

test.h:
   #include "includes.h"

includes.h:
   /* an empty header */

Makefile:
   CC=gcc-snapshot
   CFLAGS=-gstabs

   all: includes.h.gch test.o

   test.o: test.c
        $(CC) $(CFLAGS) -c test.c

   includes.h.gch: includes.h
        $(CC) $(CFLAGS) -c includes.h -o includes.h.gch

   clean:
        rm -f *~ *.o *.gch


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-12-19 10:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-24  2:19 [Bug c/11654] New: gcc seg fault when using pre-compiled headers and -gstabs gcc at tridgell dot net
2003-07-24  2:33 ` [Bug c/11654] " pinskia at physics dot uc dot edu
2003-07-24  2:48 ` [Bug pch/11654] " pinskia at physics dot uc dot edu
2003-07-24  6:46 ` geoffk at geoffk dot org
2003-07-24 11:12 ` pinskia at physics dot uc dot edu
2003-11-07 22:12 ` cvs-commit at gcc dot gnu dot org
2003-12-16 18:19 ` geoffk at gcc dot gnu dot org
2003-12-19 10:01 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).