Page MenuHomeFreeBSD

Pass 0 to __builtin_frame_address() to appease modern GCC.
ClosedPublic

Authored by jhb on Nov 28 2019, 8:35 PM.
Tags
None
Referenced Files
F157585701: D22600.diff
Sat, May 23, 2:51 AM
F157585691: D22600.diff
Sat, May 23, 2:51 AM
Unknown Object (File)
Mon, May 18, 1:01 PM
Unknown Object (File)
Tue, Apr 28, 12:29 AM
Unknown Object (File)
Mon, Apr 27, 7:41 PM
Unknown Object (File)
Mon, Apr 27, 2:33 PM
Unknown Object (File)
Apr 15 2026, 11:10 AM
Unknown Object (File)
Apr 15 2026, 5:23 AM
Subscribers

Details

Summary

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.

Test Plan
  • lets sparc64 GENERIC build with GCC 6.x.
  • compile tested only, not run tested

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 27843
Build 26020: arc lint + arc unit