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
Unknown Object (File)
Wed, Apr 15, 11:10 AM
Unknown Object (File)
Wed, Apr 15, 5:23 AM
Unknown Object (File)
Tue, Apr 14, 10:53 AM
Unknown Object (File)
Mon, Apr 13, 9:37 PM
Unknown Object (File)
Mon, Apr 6, 7:14 AM
Unknown Object (File)
Fri, Apr 3, 11:58 PM
Unknown Object (File)
Thu, Apr 2, 4:58 AM
Unknown Object (File)
Thu, Apr 2, 12:31 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