aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2019-12-03 23:20:19 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2019-12-03 23:20:19 +0000
commit86712774d24e98776a1933e9d63264172da3a903 (patch)
tree089d818e6632c5cc9af3a9b27c8e0874fd2a0a4a
parent31174518d2db4950b8bc8ab02e64cdb5e00d34c9 (diff)
downloadsrc-86712774d24e98776a1933e9d63264172da3a903.tar.gz
src-86712774d24e98776a1933e9d63264172da3a903.zip
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
Notes
Notes: svn path=/head/; revision=355374
-rw-r--r--sys/sparc64/sparc64/db_trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sparc64/sparc64/db_trace.c b/sys/sparc64/sparc64/db_trace.c
index ee354e11a536..db23479eaed6 100644
--- a/sys/sparc64/sparc64/db_trace.c
+++ b/sys/sparc64/sparc64/db_trace.c
@@ -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