From owner-freebsd-ppc@freebsd.org Sat Mar 18 22:11:15 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 C7F9AD102EF for ; Sat, 18 Mar 2017 22:11:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 9D6A21659 for ; Sat, 18 Mar 2017 22:11:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v2IMBFkB055574 for ; Sat, 18 Mar 2017 22:11:15 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ppc@FreeBSD.org Subject: [Bug 178038] clang++ fails to produce a binary in powerpc64 Date: Sat, 18 Mar 2017 22:11:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: powerpc X-Bugzilla-Version: 9.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markmi@dsl-only.net X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Feedback Timeout X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-ppc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Sat, 18 Mar 2017 22:11:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D178038 Mark Millard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markmi@dsl-only.net --- Comment #3 from Mark Millard --- [This is not an objection to closing 178038. It is more of a status note since while kyua builds it does not work.] I've built kyua via system clang 3.8 and later for powerpc family members. The builds completed. But even as of clang 4.0 the code generation is bad and kyua fails to run. This is for both TARGET_ARCH=3Dpowerpc64 and TARGET_ARCH=3Dpowerpc. All of the below applies to clang 4.0 (so far). kyua makes extensive use of C++ exception handling, among other things. One problem for both TARGET_ARCH's is that handling thrown C++ exceptions is messed up. Even: #include int main(void) { try { throw std::exception(); } catch (std::exception& e) {} return 0; } fails. This makes kyua currently useless. TARGET_ARCH=3Dpowerpc also has problems with use and restore of R31 when floating point code is involved (restored for returning but later used for floating point code expecting R31 to not have been restored yet). (There may be more issues for one or both TARGET_ARCH's but the above is sufficient to classify clang as broken for kyua.) --=20 You are receiving this mail because: You are the assignee for the bug.=