svn commit: r324512 - head/sys/sparc64/sparc64

Kurt Lidl lidl at FreeBSD.org
Wed Oct 11 03:50:46 UTC 2017


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));
 }


More information about the svn-src-all mailing list