From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id ECA90DDF32 for ; Sat, 3 May 2008 01:26:51 +1000 (EST) Message-Id: From: Kumar Gala To: Scott Wood In-Reply-To: <20080502150753.GA7753@ld0162-tx32.am.freescale.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: [PATCH] [POWERPC] Fix kernel builds with newer gcc versions and -Os Date: Fri, 2 May 2008 10:26:43 -0500 References: <20080502150753.GA7753@ld0162-tx32.am.freescale.net> Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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. > > > Why don't we just link with libgcc? > 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