From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id AAB96138C9D for ; Fri, 1 May 2015 05:10:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1FFD7E0839; Fri, 1 May 2015 05:10:03 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F2D06E07D1 for ; Fri, 1 May 2015 05:10:01 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Yo3D5-0008LZ-Hq for gentoo-user@lists.gentoo.org; Fri, 01 May 2015 07:09:59 +0200 Received: from pc123.math.cas.cz ([147.231.88.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 May 2015 07:09:59 +0200 Received: from martin by pc123.math.cas.cz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 May 2015 07:09:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Martin Vaeth Subject: [gentoo-user] Re: CFLAGs for kernel compilation Date: Fri, 1 May 2015 05:09:51 +0000 (UTC) Message-ID: References: <5540C101.70906@ramses-pyramidenbau.de> <20150430123819.b72d8b39bd60a912b7c7fde5@gentoo.org> X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pc123.math.cas.cz User-Agent: slrn/1.0.1 (Linux) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Archives-Salt: 4c224357-8a57-4a13-9008-cfc403a7cd85 X-Archives-Hash: 028ac4378f4c1ec53bbcd47780ada8fc Andrew Savchenko wrote: > > That's why kernel makes sure that no floating point instructions > sneaks in using CFLAGS, you may see a lot of -mno-${intrucion_set} > flags when running make -V. So it should be sufficient that the kernel does not use "float" or "double", shouldn't it? I can hardly imagine that otherwise the compiler converts integer or pointer arithmetic into floating point arithmetics, or is this really the case for certain flags? If yes, why should these flags *ever* be useful? I mean: The context switching happens for non-kernel code as well, doesn't it?