------- Comment #18 from mikpe at it dot uu dot se 2010-05-29 18:00 ------- Created an attachment (id=20773) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20773&action=view) linux kernel workaround for attribute naked breakage
This patch makes the Linux kernel add noinline and noclone attributes to functions declared __naked. This allows gcc-4.5 to build a working 2.6.34 Linux kernel for my mach-iop32x/n2100 ARM box. Khem: can you check if this kernel-side workaround fixes your problem? Eventually I'd like the kernel to not use __naked, but that is non-trivial. This fix should work now and be easily backportable to older kernels. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44290