[PATCH] [POWERPC] Fix kernel builds with newer gcc versions and -Os

Kumar Gala galak at kernel.crashing.org
Sat May 3 01:26:43 EST 2008

On May 2, 2008, at 10:07 AM, Scott Wood wrote:

> On Fri, May 02, 2008 at 09:21:08AM -0500, Kumar Gala wrote:
>> GCC 4.4.x looks to be adding support for generating out-of-line  
>> register
>> saves/restores based on:
>> http://gcc.gnu.org/ml/gcc-patches/2008-04/msg01678.html
>> This breaks the kernel build as we'd have to link with libgcc to  
>> get the
>> implementation of the register save/restores.
> <brokenrecord>
> Why don't we just link with libgcc?
> </brokenrecord>

Its something of a PITA to do that in the kernel at this point since  
we've duplicated libgcc functionality in it.  I'm sure there are some  
historical reasons this wasn't done to start with.

- k

More information about the Linuxppc-dev mailing list