From owner-freebsd-toolchain@freebsd.org Fri Feb 19 19:37:10 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 6B769AAEC7B for ; Fri, 19 Feb 2016 19:37:10 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-152.reflexion.net [208.70.211.152]) (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 21D0D160C for ; Fri, 19 Feb 2016 19:37:09 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 4284 invoked from network); 19 Feb 2016 19:37:00 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 19 Feb 2016 19:37:00 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v7.80.0) with SMTP; Fri, 19 Feb 2016 14:36:56 -0500 (EST) Received: (qmail 10175 invoked from network); 19 Feb 2016 19:36:56 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with SMTP; 19 Feb 2016 19:36:56 -0000 X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.1.8] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 827AFB1E001; Fri, 19 Feb 2016 11:36:58 -0800 (PST) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: I've' submitted 207325 and 207359 for powerpc/powrpc64 c++ exception problems for projects/clang380-import -r295601 (9 line program) Message-Id: <83B8741C-B4C9-4EFB-A3B4-473F8F165984@dsl-only.net> Date: Fri, 19 Feb 2016 11:37:01 -0800 To: FreeBSD PowerPC ML , FreeBSD Toolchain Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 19:37:10 -0000 The following program does not work for my example TARGET_ARCH=3Dpowerpc = and TARGET_ARCH=3Dpowerpc64 environments for buildworld based on = projects/clang380-import -r205601: #include int main(void) { try { throw std::exception(); } catch (std::exception& e) {} // same result without & return 0; } The details vary for what happens and what compiler is in use. TARGET_ARCH=3Dpowerpc with clang 3.8.0: SEGV TARGET_ARCH=3Dpowerpc64 with devel/powerpc64-gcc: unbouded loop in = _Unwind_RaiseException For the powerpc64 context: g++49 can be used to show the problem as = well: Using g++49's a.out gets the same unbounded loop result for: # g++49 -I /usr/include/c++/v1/ -L /usr/lib/ -g -Wall -pedantic = exception_test.cpp = =20 But the a.out works fine for a normal g++49 header/library usage: # g++49 -g -Wall -pedantic exception_test.cpp # ./a.out #=20 (These were noticed by trying to build and use kyua to run the = /usr/tests material in tehse enviroments.) =3D=3D=3D Mark Millard markmi at dsl-only.net