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 _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"