[Bug c/11654] New: gcc seg fault when using pre-compiled headers and -gstabs
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
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
Reply to: