I believe there is an optimization bug in gcc-4.5.0. When building with gcc-4.5.0 and setting the linux kernel flag CONFIG_CC_OPTIMIZE_FOR_SIZE, the kernel indicates a segfault upon boot.
Tested with the normal sysvinit and bash-static and the indication is the identical memory address with the error "kernel panic - not syncing: Attempted to kill init!" The error indications are almost identical to the post at: http://www.gossamer-threads.com/lists/linux/kernel/1210031 Clearing the optimization flag boots normally. Using gcc-4.4.3 does not show the problem. Tested on several kernels: 2.6.32.8, 2.6.33.4, 2.6.34-rc7. -- Summary: Building linux kernel with gcc-4.5.0 and CONFIG_CC_OPTIMIZE_FOR_SIZE segfaults Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bdubbs at linuxfromscratch dot org GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44129