svn commit: r323687 - head/sys/powerpc/powerpc
Justin Hibbits
jhibbits at FreeBSD.org
Sun Sep 17 20:07:22 UTC 2017
Author: jhibbits
Date: Sun Sep 17 20:07:20 2017
New Revision: 323687
URL: https://svnweb.freebsd.org/changeset/base/323687
Log:
Don't use a non-zero argument for __builtin_frame_address
__builtin_frame_address with a non-zero argument is unsafe and rejected by
newer gcc. Since it doesn't seem to impact the stacktrace, don't bother
with gymnastics to unwind to a different frame for starting.
PR: kern/220118
MFC after: 2 weeks
Modified:
head/sys/powerpc/powerpc/stack_machdep.c
Modified: head/sys/powerpc/powerpc/stack_machdep.c
==============================================================================
--- head/sys/powerpc/powerpc/stack_machdep.c Sun Sep 17 19:54:27 2017 (r323686)
+++ head/sys/powerpc/powerpc/stack_machdep.c Sun Sep 17 20:07:20 2017 (r323687)
@@ -110,6 +110,6 @@ stack_save(struct stack *st)
{
register_t frame;
- frame = (register_t)__builtin_frame_address(1);
+ frame = (register_t)__builtin_frame_address(0);
stack_capture(st, frame);
}
More information about the svn-src-all
mailing list