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)
Sat, Dec 14, 4:47 PM
Unknown Object (File)
Thu, Dec 12, 10:52 PM
Unknown Object (File)
Nov 16 2024, 2:27 PM
Unknown Object (File)
Nov 15 2024, 2:18 PM
Unknown Object (File)
Nov 6 2024, 11:52 AM
Unknown Object (File)
Nov 2 2024, 7:20 AM
Unknown Object (File)
Oct 2 2024, 5:12 PM
Unknown Object (File)
Sep 29 2024, 12:51 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