svn commit: r355374 - head/sys/sparc64/sparc64
John Baldwin
jhb at FreeBSD.org
Tue Dec 3 23:20:20 UTC 2019
Author: jhb
Date: Tue Dec 3 23:20:19 2019
New Revision: 355374
URL: https://svnweb.freebsd.org/changeset/base/355374
Log:
Pass 0 to __builtin_frame_address() to appease modern GCC.
Modern versions of GCC warn about passing non-zero values to
__builtin_frame_address(). Passing 1 is a cosmetic change to remove
the db_trace_self() frame from the printed stack trace.
Reported by: marius, imp
Differential Revision: https://reviews.freebsd.org/D22600
Modified:
head/sys/sparc64/sparc64/db_trace.c
Modified: head/sys/sparc64/sparc64/db_trace.c
==============================================================================
--- head/sys/sparc64/sparc64/db_trace.c Tue Dec 3 23:17:54 2019 (r355373)
+++ head/sys/sparc64/sparc64/db_trace.c Tue Dec 3 23:20:19 2019 (r355374)
@@ -279,7 +279,7 @@ db_trace_self(void)
{
db_backtrace(curthread,
- (struct frame *)__builtin_frame_address(1), -1);
+ (struct frame *)__builtin_frame_address(0), -1);
}
int
More information about the svn-src-all
mailing list