From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9943 invoked by alias); 24 Jul 2003 02:19:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 9935 invoked by uid 48); 24 Jul 2003 02:19:20 -0000 Date: Thu, 24 Jul 2003 02:19:00 -0000 From: "gcc at tridgell dot net" To: gcc-bugs@gcc.gnu.org Message-ID: <20030724021919.11654.gcc@tridgell.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/11654] New: gcc seg fault when using pre-compiled headers and -gstabs X-Bugzilla-Reason: CC X-SW-Source: 2003-07/txt/msg02804.txt.bz2 List-Id: 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