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
F152361038: D22600.id65024.diff
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
Unknown Object (File)
Tue, Mar 31, 9:32 PM
Unknown Object (File)
Wed, Mar 25, 6:06 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 Not Applicable
Unit
Tests Not Applicable