From owner-freebsd-bugs@freebsd.org Sun Feb 28 01:21:42 2016 Return-Path: Delivered-To: freebsd-bugs@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 630B7AAE2CE for ; Sun, 28 Feb 2016 01:21:42 +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 38B161CF1 for ; Sun, 28 Feb 2016 01:21:42 +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 u1S1LgXT096798 for ; Sun, 28 Feb 2016 01:21:42 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 207325] projects/clang380-import for TARGET_ARCH=powerpc : c++ exceptions cause SEGV (9 line program); powerpc64 __builtin_dwarf_cfa() issue as well Date: Sun, 28 Feb 2016 01:21:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markmi@dsl-only.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Feb 2016 01:21:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207325 --- Comment #9 from Mark Millard --- I should have been explicit: The stack frames boundary that I reference in the 2-line examples are betwe= en: A) f's frame and B) f's caller's frame (Not between f vs. g.) (The external g function just avoided any potential optimization that might eliminate the code I was trying to produce.) (B) is rather implicit as I wrote comment #1. It could lead to confusion. T= hus this note. Also: It looks like arm has the same sort of distinction vs. g++: # clang++ -c -g -std=3Dc++11 -Wall -pedantic builtin_dwarf_cfa.cpp # /usr/local/bin/objdump -d --prefix-addresses builtin_dwarf_cfa.o builtin_dwarf_cfa.o: file format elf32-littlearm Disassembly of section .text: 00000000 <_Z1fv> push {fp, lr} 00000004 <_Z1fv+0x4> mov fp, sp 00000008 <_Z1fv+0x8> mov r0, fp 0000000c <_Z1fv+0xc> bl 00000000 <_Z1gPv> 00000010 <_Z1fv+0x10> pop {fp, pc} # g++5 -c -g -std=3Dc++11 -Wall -pedantic builtin_dwarf_cfa.cpp # /usr/local/bin/objdump -d --prefix-addresses builtin_dwarf_cfa.o builtin_dwarf_cfa.o: file format elf32-littlearm Disassembly of section .text: 00000000 <_Z1fv> push {fp, lr} 00000004 <_Z1fv+0x4> add fp, sp, #4, 0 00000008 <_Z1fv+0x8> add r3, fp, #4, 0 0000000c <_Z1fv+0xc> mov r0, r3 00000010 <_Z1fv+0x10> bl 00000000 <_Z1gPv> 00000014 <_Z1fv+0x14> nop ; (mov r0, r0) 00000018 <_Z1fv+0x18> pop {fp, pc} --=20 You are receiving this mail because: You are the assignee for the bug.=