Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Oct 2017 03:50:44 +0000 (UTC)
From:      Kurt Lidl <lidl@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r324512 - head/sys/sparc64/sparc64
Message-ID:  <201710110350.v9B3oiEn052678@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710110350.v9B3oiEn052678>