From owner-svn-src-head@freebsd.org Thu Jan 9 18:14:48 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A00891F579C; Thu, 9 Jan 2020 18:14:48 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47tvQw3kSkz4WP5; Thu, 9 Jan 2020 18:14:48 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7AB835138; Thu, 9 Jan 2020 18:14:48 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 009IEm50073513; Thu, 9 Jan 2020 18:14:48 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 009IEmgS073512; Thu, 9 Jan 2020 18:14:48 GMT (envelope-from imp@FreeBSD.org) Message-Id: <202001091814.009IEmgS073512@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Thu, 9 Jan 2020 18:14:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r356560 - head/share/mk X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: head/share/mk X-SVN-Commit-Revision: 356560 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jan 2020 18:14:48 -0000 Author: imp Date: Thu Jan 9 18:14:48 2020 New Revision: 356560 URL: https://svnweb.freebsd.org/changeset/base/356560 Log: Add note to remind me there are three choices for arm32 floating point. hard use floating point hardware, pass registers to functions in floating point registers. softfp use floating point hardware, but pass registers to functions in integer registers. soft do floating point calcuations without using floating point hardware. Pass arguments in integer registers. FreeBSD 11 and newer assumes hard. 10 and earlier assumed softfp. We have no real support, at the moment, for soft. It's untested, though, if softfp still works. Add a note here since this is a whack-a-doodle combination relative to all other platforms. softfp is likely to go away in the future because it was retained for people using FreeBSD 10 + armv6 needing to transition more slowly from softfp -> hard than the project. It likely is no longer needed, and may be getting in the way of people needing 'soft' support. Modified: head/share/mk/bsd.cpu.mk Modified: head/share/mk/bsd.cpu.mk ============================================================================== --- head/share/mk/bsd.cpu.mk Thu Jan 9 17:21:00 2020 (r356559) +++ head/share/mk/bsd.cpu.mk Thu Jan 9 18:14:48 2020 (r356560) @@ -355,7 +355,11 @@ MACHINE_CPU += softfp # to force that. .if ${MACHINE_ARCH:Marmv[67]*} && defined(CPUTYPE) && ${CPUTYPE:M*soft*} != "" # Needs to be CFLAGS not _CPUCFLAGS because it's needed for the ABI -# not a nice optimization. +# not a nice optimization. Please note: softfp ABI uses hardware floating +# instructions, but passes arguments to function calls in integer regsiters. +# -mfloat-abi=soft is full software floating point, but is not currently +# supported. softfp support in FreeBSD may disappear in FreeBSD 13.0 since +# it was a transition tool from FreeBSD 10 to 11 and is a bit of an odd duck. CFLAGS += -mfloat-abi=softfp .endif .endif