------- 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

Reply via email to