From owner-freebsd-ppc@freebsd.org Sun Jan 29 03:20:11 2017 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0ADD2CC4194 for ; Sun, 29 Jan 2017 03:20:11 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-73.reflexion.net [208.70.210.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B45465DF for ; Sun, 29 Jan 2017 03:20:10 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 6500 invoked from network); 29 Jan 2017 03:14:00 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 29 Jan 2017 03:14:00 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.20.1) with SMTP; Sat, 28 Jan 2017 22:13:29 -0500 (EST) Received: (qmail 32390 invoked from network); 29 Jan 2017 03:13:29 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 29 Jan 2017 03:13:29 -0000 Received: from [192.168.1.111] (c-67-170-167-181.hsd1.or.comcast.net [67.170.167.181]) by iron2.pdx.net (Postfix) with ESMTPSA id 8FE93EC7C1F; Sat, 28 Jan 2017 19:13:28 -0800 (PST) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: lld and powerpc (32-bit, not powerpc64): What is FreeBSD's intent for head and going forward? Message-Id: <96E45DF1-6550-437C-8C34-9F2858A96BD8@dsl-only.net> Date: Sat, 28 Jan 2017 19:13:27 -0800 To: Ed Maste , FreeBSD Toolchain , FreeBSD PowerPC ML X-Mailer: Apple Mail (2.3259) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2017 03:20:11 -0000 http://lists.llvm.org/pipermail/llvm-dev/2016-December/107981.html ("[llvm-dev] LLD status update and performance chart" 2016-Dec-11) says in part: > LLD supports x86, x86-64, x32, AArch64, AMDGPU, ARM, PPC64 and > MIPS32/64, though completeness varies. No mention is made of what FreeBSD calls TARGET_ARCH=powerpc . What is FreeBSD's intent for TARGET_ARCH=powerpc for head (12+) going forward? Are things about TARGET_ARCH=powerpc that would involve lld not to have llvm Depends On status for the META submittal for using lld as the FreeBSD system linker? Similarly for the META submittal for clang targeting powerpc (32-bit) if lld is involved? It would appear that without lld and the like TARGET_ARCH=powerpc via clang would require an external binutils (or at least the linker would need to be external). Since I tend to explore TARGET_ARCH=powerpc64 and TARGET_ARCH=powerpc and report evidence for issues that I find, it would be good for me to know how I should view things. For TARGET_ARCH=powerpc should I switch to using an external binutils and ignore both lld and the old, bootstrapped binutils? Would that be a better match to the intent going forward? [In recent months my TARGET_ARCH=powerpc activity has been limited by clang code generation problems with the timing of when R30 is restored for function exit vs. when it is used when floating point is involved via R30 based addressing. Also other time limitations have contributed to a powerpc64 FreeBSD focus primarily.] === Mark Millard markmi at dsl-only.net