From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9458 invoked by alias); 5 Apr 2009 15:19:56 -0000 Received: (qmail 9443 invoked by uid 48); 5 Apr 2009 15:19:45 -0000 Date: Sun, 05 Apr 2009 15:19:00 -0000 Message-ID: <20090405151945.9442.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/39641] Compiling Linux 2.6.28.6 ends with a segfault on net/core/skbuff.c In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "lasse-gccbug-2009 at mail dot plastictree dot net" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-04/txt/msg00372.txt.bz2 ------- Comment #3 from lasse-gccbug-2009 at mail dot plastictree dot net 2009-04-05 15:19 ------- Segfault does not occur when omitting '-ffreestanding'. Segfault does not occur when using '-save-temps'. When I add '-save-temps' to 'arch/x86/Makefile' in the same location in which '-ffreestanding' occurs, 'make' runs through. I have not tested whether the resulting kernel works. Moreover, in that Makefile, it reads: # temporary until string.h is fixed KBUILD_CFLAGS += -ffreestanding So, it appears that '-ffreestanding' is itself a workaround for something. Another approach: obtain 'skbuff.i' via '-save-temps' and then copy it to 'net/core/skbuff.c'. Then 'make' will also run through. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39641