From owner-freebsd-toolchain@freebsd.org Tue Aug 30 07:28:22 2016 Return-Path: Delivered-To: freebsd-toolchain@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 5F9C7BC8B64 for ; Tue, 30 Aug 2016 07:28:22 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-28.reflexion.net [208.70.210.28]) (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 EE13536C for ; Tue, 30 Aug 2016 07:28:21 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 9168 invoked from network); 30 Aug 2016 06:28:20 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 30 Aug 2016 06:28:20 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.00.0) with SMTP; Tue, 30 Aug 2016 02:28:23 -0400 (EDT) Received: (qmail 26383 invoked from network); 30 Aug 2016 06:28:23 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 30 Aug 2016 06:28:23 -0000 X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.0.104] (ip70-189-131-151.lv.lv.cox.net [70.189.131.151]) by iron2.pdx.net (Postfix) with ESMTPSA id DE3681C408D; Mon, 29 Aug 2016 23:28:12 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: From llvm: Fwd: [Bug 25780] [META] Using Clang as the FreeBSD/ppc system compiler [one item fixed on trunk] Date: Mon, 29 Aug 2016 23:28:18 -0700 References: To: FreeBSD Toolchain , FreeBSD PowerPC ML Message-Id: Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2016 07:28:22 -0000 llvm bug 19098 "clang and llvm should support -mminimal-toc and = -mlongcall for PowerPC" has been listed as fixed on llvm's trunk. That leaves about 5 pending bugs in the list that the META bug 25780 = currently has. =3D=3D=3D Mark Millard markmi at dsl-only.net Begin forwarded message: From: bugzilla-daemon at llvm.org Subject: [Bug 25780] [META] Using Clang as the FreeBSD/ppc system = compiler Date: August 29, 2016 at 6:08:22 PM PDT To: Bug 25780 depends on bug 19098, which changed state.=20 What Removed Added Status NEW RESOLVED Resolution --- FIXED You are receiving this mail because: =E2=80=A2 You are on the CC list for the bug. From owner-freebsd-toolchain@freebsd.org Tue Aug 30 17:29:55 2016 Return-Path: Delivered-To: freebsd-toolchain@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 6FC82BC92A6 for ; Tue, 30 Aug 2016 17:29:55 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-24.reflexion.net [208.70.210.24]) (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 231406B4 for ; Tue, 30 Aug 2016 17:29:54 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 24092 invoked from network); 30 Aug 2016 17:24:00 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 30 Aug 2016 17:24:00 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.00.0) with SMTP; Tue, 30 Aug 2016 13:23:05 -0400 (EDT) Received: (qmail 17592 invoked from network); 30 Aug 2016 17:23:05 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 30 Aug 2016 17:23:05 -0000 X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.0.104] (ip70-189-131-151.lv.lv.cox.net [70.189.131.151]) by iron2.pdx.net (Postfix) with ESMTPSA id 66E6BB1E001; Tue, 30 Aug 2016 10:23:09 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: From llvm: Fwd: [Bug 26761] clang 3.8.0 messes up __builtin_dwarf_cfa (), at least for TARGET_ARCH=powerpc and powerpc64 (gcc/g++ mismatch) [patch under review] From: Mark Millard In-Reply-To: <956E5C77-9B86-46D3-8935-7B4BF3203236@dsl-only.net> Date: Tue, 30 Aug 2016 10:23:11 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <1FDE13A7-93C2-48E9-B1D0-84EDFAEE419D@dsl-only.net> References: <956E5C77-9B86-46D3-8935-7B4BF3203236@dsl-only.net> To: FreeBSD PowerPC ML , FreeBSD Toolchain X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2016 17:29:55 -0000 [Top post of new status.] My original analysis of the bad powerpc and powerpc64 code generated by = clang 3.8.0 for __builtin_dwarf_cfa() has been confirmed and a patch is = out for review (likely targeting trunk). Begin forwarded message: > From: bugzilla-daemon at llvm.org > Subject: [Bug 26761] clang 3.8.0 messes up __builtin_dwarf_cfa (), at = least for TARGET_ARCH=3Dpowerpc and powerpc64 (gcc/g++ mismatch) > Date: August 30, 2016 at 9:13:15 AM PDT > To: >=20 >=20 > Comment # 9 on bug 26761 from Hal Finkel > Patch posted for review: https://reviews.llvm.org/D24038 >=20 > You are receiving this mail because: > =E2=80=A2 You reported the bug. =3D=3D=3D Mark Millard markmi at dsl-only.net On 2016-Aug-29, at 11:46 PM, Mark Millard = wrote: It looks like Hal Finkel looked at llvm bug 26761 enough to reclassify = it from llvm Codegen for clang 3.8 to "Common Code Generator Code" for = libraries on trunk. (Not a claim of a fix, just a reclassification.) = This is one of the bugs listed in "[Bug 25780] [META] Using Clang as the = FreeBSD/ppc system compiler" as known to be blocking the use of clang = for powerpc. With the recent addition of -mlongcall [llvm bug 19098 is now listed as = fixed on trunk], this may hint that some clang related work is = overlapping with what FreeBSD happens to need for powerpc64 and/or = powerpc. As no comments were added I'm not sure if it was looked at enough for my = original analysis of the code generated to have any independent = verification yet. Some of my original submittals got a cross check when = I submitted them and the comments reflect the process in such cases. = This one did not get such activity at the time or since. =3D=3D=3D Mark Millard markmi at dsl-only.net Begin forwarded message: From: bugzilla-daemon at llvm.org Subject: [Bug 26761] clang 3.8.0 messes up __builtin_dwarf_cfa (), at = least for TARGET_ARCH=3Dpowerpc and powerpc64 (gcc/g++ mismatch) Date: August 29, 2016 at 7:50:28 PM PDT To: Hal Finkel changed bug 26761=20 What Removed Added CC hfinkel at anl.gov Component LLVM Codegen Common Code Generator Code =20 Version 3.8 trunk Assignee unassignedclangbugs@nondot.org = unassignedbugs@nondot.org Product clang libraries You are receiving this mail because: =E2=80=A2 You reported the bug. From owner-freebsd-toolchain@freebsd.org Wed Aug 31 01:24:15 2016 Return-Path: Delivered-To: freebsd-toolchain@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 B0077BC71E8 for ; Wed, 31 Aug 2016 01:24:15 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-26.reflexion.net [208.70.210.26]) (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 635AB151 for ; Wed, 31 Aug 2016 01:24:14 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 2950 invoked from network); 31 Aug 2016 01:17:34 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 31 Aug 2016 01:17:34 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.00.0) with SMTP; Tue, 30 Aug 2016 21:17:26 -0400 (EDT) Received: (qmail 27438 invoked from network); 31 Aug 2016 01:17:25 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 31 Aug 2016 01:17:25 -0000 X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.0.104] (ip70-189-131-151.lv.lv.cox.net [70.189.131.151]) by iron2.pdx.net (Postfix) with ESMTPSA id 821F9B1E001; Tue, 30 Aug 2016 18:17:27 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: From llvm: Fwd: [Bug 26856] clang 3.8.0/powerpc/powerpc64's _Unwind_RaiseException code generation has messed up r31 (frame pointer) save/restore code (SEGV's can result) [another issue reported fixed, via llvm r280188] Date: Tue, 30 Aug 2016 18:17:32 -0700 References: To: FreeBSD Toolchain , FreeBSD PowerPC ML Message-Id: <13C54407-8758-41E8-BBDB-4C3574D05C61@dsl-only.net> Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2016 01:24:15 -0000 The below notice from Hal Finkel [via llvm's bugzilla] indicates that at = least part of llvm bug 26856 for powerpc64's is expected to have been = fixed by r280188 (likely on trunk?). 26856 was one of my reports that had independent confirmation back when = I submitted it. Some of the quote below is from the exchange about the = problems from back then. =3D=3D=3D Mark Millard markmi at dsl-only.net Begin forwarded message: From: bugzilla-daemon at llvm.org Subject: [Bug 26856] clang 3.8.0/powerpc/powerpc64's = _Unwind_RaiseException code generation has messed up r31 (frame pointer) = save/restore code (SEGV's can result) Date: August 30, 2016 at 5:54:45 PM PDT To: Comment # 11 on bug 26856 from Hal Finkel (In reply to comment #6 ) ... >=20 > 2) In some scenarios, registers may be spilled/restored twice to the = stack.=20 > This happens because while most of the spilling happens in > PPCFrameLowering::spillCalleeSavedRegisters, a few selected registers = are > also spilled in PPCFrameLowering::emitPrologue. Those registers are = the > frame pointer, base pointer, PIC base pointer, link register, and = condition > code register. For the latter two, code ensures that they can never = be > spilled in both places (for CR, there is extra code in > spillCalleeSavedRegisters; for LR, the register is removed from = SavedRegs in > determineCalleeSaves). >=20 > However, for FP, BP, and PBP, nothing ensures the registers are not = spilled > twice. It is probably *rare* for this to happen, because the register > allocator will not use those registers within the function if they're = needed > for their special purpose, but it can happen in rare cases. This = includes > the case of a system unwinder routine that uses __builtin_unwind_init, = but > could also include other routines that clobber one of those registers, = e.g. > the following case: >=20 > void func (void); >=20 > void test (void) > { > func (); > asm ("nop" : : : "31"); > } r280188 should address the spilling-twice problem. You are receiving this mail because: =E2=80=A2 You reported the bug. From owner-freebsd-toolchain@freebsd.org Thu Sep 1 14:58:30 2016 Return-Path: Delivered-To: freebsd-toolchain@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 A25BEBCBE5F for ; Thu, 1 Sep 2016 14:58:30 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-24.reflexion.net [208.70.210.24]) (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 56FB7DA6 for ; Thu, 1 Sep 2016 14:58:30 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 11382 invoked from network); 1 Sep 2016 14:59:10 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 1 Sep 2016 14:59:10 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v8.00.0) with SMTP; Thu, 01 Sep 2016 10:58:27 -0400 (EDT) Received: (qmail 21861 invoked from network); 1 Sep 2016 14:58:27 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 1 Sep 2016 14:58:27 -0000 Received: from [192.168.0.104] (ip70-189-131-151.lv.lv.cox.net [70.189.131.151]) by iron2.pdx.net (Postfix) with ESMTPSA id E4D0BEC8F8E; Thu, 1 Sep 2016 07:58:21 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: From llvm: Fwd: [Bug 26761] clang 3.8.0 messes up __builtin_dwarf_cfa (), at least for TARGET_ARCH=powerpc and powerpc64 (gcc/g++ mismatch) [llvm r280350 is a fix] From: Mark Millard Date: Thu, 1 Sep 2016 07:58:21 -0700 Cc: freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <8B6BE932-BDAB-4588-8610-97FE60870BB3@dsl-only.net> References: To: FreeBSD Toolchain , FreeBSD PowerPC ML X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2016 14:58:30 -0000 __builtin_dwarf_cfa () is now listed at llvm as fixed for powerpc and = powerpc64 (r280350, likely on trunk). This is an item (of several) from = the "[Bug 25780] [META] Using Clang as the FreeBSD/ppc system compiler" = list of blocking defects. [But it may be that arm also has the problem (if/when = __builtin_dwarf_cfa () is used anyway).] =3D=3D=3D Mark Millard markmi at dsl-only.net Begin forwarded message: From: bugzilla-daemon at llvm.org Subject: [Bug 26761] clang 3.8.0 messes up __builtin_dwarf_cfa (), at = least for TARGET_ARCH=3Dpowerpc and powerpc64 (gcc/g++ mismatch) Date: September 1, 2016 at 3:38:48 AM PDT To: Hal Finkel changed bug 26761=20 What Removed Added Status NEW RESOLVED Resolution --- FIXED Comment # 10 on bug 26761 from Hal Finkel (In reply to comment #9 ) > Patch posted for review: https://reviews.llvm.org/D24038 r280350. Also, PR30231 filed to track the potential issue on ARM. You are receiving this mail because: =E2=80=A2 You reported the bug. From owner-freebsd-toolchain@freebsd.org Thu Sep 1 15:08:51 2016 Return-Path: Delivered-To: freebsd-toolchain@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 54C9EBCB2D9 for ; Thu, 1 Sep 2016 15:08:51 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-26.reflexion.net [208.70.210.26]) (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 DF2AB974 for ; Thu, 1 Sep 2016 15:08:50 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 21460 invoked from network); 1 Sep 2016 15:09:33 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 1 Sep 2016 15:09:33 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.00.0) with SMTP; Thu, 01 Sep 2016 11:08:53 -0400 (EDT) Received: (qmail 17537 invoked from network); 1 Sep 2016 15:08:52 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 1 Sep 2016 15:08:52 -0000 Received: from [192.168.0.104] (ip70-189-131-151.lv.lv.cox.net [70.189.131.151]) by iron2.pdx.net (Postfix) with ESMTPSA id B4EC1EC8FAF; Thu, 1 Sep 2016 08:08:48 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: From llvm: Fwd: [Bug 26519] Clang 3.8.0's "Target: powerpc-unknown-freebsd11.0" code generation is violating the SVR4 ABI (SEGV can result) [code review for fix] Date: Thu, 1 Sep 2016 08:08:48 -0700 References: To: FreeBSD Toolchain , FreeBSD PowerPC ML Message-Id: <08136189-299F-4BD6-9E49-8D39A8913D62@dsl-only.net> Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2016 15:08:51 -0000 https://reviews.llvm.org/D24093 is a code review for llvm potentially = fixing the violation of the TARGET_ARCH=3Dpowerpc SVR4 ABI stack = handling rules, no longer requiring a "red-zone" on the stack. See below = for more information. =3D=3D=3D Mark Millard markmi at dsl-only.net Begin forwarded message: From: bugzilla-daemon at llvm.org Subject: [Bug 26519] Clang 3.8.0's "Target: powerpc-unknown-freebsd11.0" = code generation is violating the SVR4 ABI (SEGV can result) Date: September 1, 2016 at 7:22:49 AM PDT To: Comment # 5 on bug 26519 from Krzysztof Parzyszek Patch for review: https://reviews.llvm.org/D24093 You are receiving this mail because: =E2=80=A2 You reported the bug.