From owner-svn-src-all@freebsd.org Wed Oct 11 03:50:45 2017 Return-Path: Delivered-To: svn-src-all@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 EA6A1E451DB; Wed, 11 Oct 2017 03:50:45 +0000 (UTC) (envelope-from lidl@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (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 B48D777D81; Wed, 11 Oct 2017 03:50:45 +0000 (UTC) (envelope-from lidl@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v9B3oivu052679; Wed, 11 Oct 2017 03:50:44 GMT (envelope-from lidl@FreeBSD.org) Received: (from lidl@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v9B3oiEn052678; Wed, 11 Oct 2017 03:50:44 GMT (envelope-from lidl@FreeBSD.org) Message-Id: <201710110350.v9B3oiEn052678@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: lidl set sender to lidl@FreeBSD.org using -f From: Kurt Lidl Date: Wed, 11 Oct 2017 03:50:44 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r324512 - head/sys/sparc64/sparc64 X-SVN-Group: head X-SVN-Commit-Author: lidl X-SVN-Commit-Paths: head/sys/sparc64/sparc64 X-SVN-Commit-Revision: 324512 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Oct 2017 03:50:46 -0000 Author: lidl Date: Wed Oct 11 03:50:44 2017 New Revision: 324512 URL: https://svnweb.freebsd.org/changeset/base/324512 Log: Don't use a non-zero argument for __builtin_frame_address Mirror the change made for powerpc64 in r323687. With this change, gcc 6.4.0 can successfully compile and link a kernel that runs on sparc64. MFC after: 2 weeks Modified: head/sys/sparc64/sparc64/stack_machdep.c Modified: head/sys/sparc64/sparc64/stack_machdep.c ============================================================================== --- head/sys/sparc64/sparc64/stack_machdep.c Wed Oct 11 02:39:20 2017 (r324511) +++ head/sys/sparc64/sparc64/stack_machdep.c Wed Oct 11 03:50:44 2017 (r324512) @@ -93,5 +93,5 @@ void stack_save(struct stack *st) { - stack_capture(st, (struct frame *)__builtin_frame_address(1)); + stack_capture(st, (struct frame *)__builtin_frame_address(0)); }