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 D0A79DDE9E for ; Fri, 2 May 2008 23:28:14 +1000 (EST) Message-Id: From: Kumar Gala To: Segher Boessenkool In-Reply-To: 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 bootwrapper builds with newer gcc versions Date: Fri, 2 May 2008 08:28:05 -0500 References: 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 6:54 AM, Segher Boessenkool 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 bootwrapper as we'd need to link with libgcc to get >> the >> implementation of the register save/restores. >> >> To workaround this issue, we just stole the save/restore code from >> gcc >> and simplified it down for our needs (integer only). > > Why can't we link with libgcc, instead? we possibly could, the problem is knowing the path of libgcc to link with. This seemed easier to me than the makefile headaches to ensure that we get that right. - k