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
F121196046: D22600.diff
Tue, Jun 24, 12:01 PM
F121136961: D22600.diff
Tue, Jun 24, 12:10 AM
Unknown Object (File)
Mon, Jun 9, 12:11 PM
Unknown Object (File)
Tue, Jun 3, 1:26 AM
Unknown Object (File)
Sun, Jun 1, 12:23 PM
Unknown Object (File)
May 20 2025, 8:54 PM
Unknown Object (File)
May 9 2025, 8:56 AM
Unknown Object (File)
Apr 30 2025, 11:02 PM
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 Not Applicable
Unit
Tests Not Applicable