﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
2662	gcc 4.5.0 -Os does not generate correct code	bdubbs@…	bdubbs@…	"I'm moving this from #2628 because it is a gcc issue.

I went though an svn build of the latest gcc-4.5 (svn revision (revision 159398) and the kernel segfaults when optimizing for size:

KBUILD_CFLAGS   += -Os

Without this flag, the kernel boots fine.  The issue may be limited to x86_64.

With my configuration, the kernel is about 3.6M when optimized and about 4.1M without.

For a more detailed description of my experimentation, see
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44129

In the meantime there are a couple of options we have for lfs-svn:

 1. Revert gcc to the latest gcc-4.4.x
 2. Put a warning in the book not to optimize for size.  AFAIK, the only package that does that by default is the kernel.
 3. Do nothing and wait for gcc to release a fix.

"	defect	closed	high	6.7	Book	SVN	major	fixed		
