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)
Tue, Oct 14, 10:29 AM
Unknown Object (File)
Sep 18 2025, 7:46 PM
Unknown Object (File)
Sep 17 2025, 3:02 AM
Unknown Object (File)
Sep 15 2025, 2:38 AM
Unknown Object (File)
Sep 4 2025, 10:53 AM
Unknown Object (File)
Aug 20 2025, 2:20 PM
Unknown Object (File)
Aug 20 2025, 10:10 AM
Unknown Object (File)
Aug 20 2025, 8:39 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