Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755943AbYFZJGb (ORCPT ); Thu, 26 Jun 2008 05:06:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751586AbYFZJGX (ORCPT ); Thu, 26 Jun 2008 05:06:23 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:41147 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751513AbYFZJGW (ORCPT ); Thu, 26 Jun 2008 05:06:22 -0400 Date: Thu, 26 Jun 2008 02:06:21 -0700 (PDT) Message-Id: <20080626.020621.45250426.davem@davemloft.net> To: bart.vanassche@gmail.com Cc: mpatocka@redhat.com, helge.hafting@aitel.hist.no, sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org, gcc@gcc.gnu.org Subject: Re: [10 PATCHES] inline functions to avoid stack overflow From: David Miller In-Reply-To: References: <20080625.150931.182895076.davem@davemloft.net> X-Mailer: Mew version 5.2 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1216 Lines: 27 From: "Bart Van Assche" Date: Thu, 26 Jun 2008 08:32:35 +0200 > On Thu, Jun 26, 2008 at 12:09 AM, David Miller wrote: > > The extra 16 bytes of space allocated is so that GCC can perform a > > secondary reload of a quad floating point value. It always has to be > > present, because we can't satisfy a secondary reload by emitting yet > > another reload, it's the end of the possible level of recursions > > allowed by the reload pass. > > Is there any floating-point code present in the Linux kernel ? Yes, but not coming from C compiled code. Floating point is used in most of the memcpy/memset implementations of the sparc64 kernel. > Would it be a good idea to add an option to gcc that tells gcc that > the compiled code does not contain floating-point instructions, such > that gcc knows that no space has to be provided for a quad floating > point value ? I think it exists already, it's called -mno-fpu :-) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/