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, Mar 22, 4:48 PM
Unknown Object (File)
Feb 25 2025, 10:58 AM
Unknown Object (File)
Feb 22 2025, 12:56 AM
Unknown Object (File)
Jan 22 2025, 8:21 PM
Unknown Object (File)
Jan 11 2025, 3:54 AM
Unknown Object (File)
Jan 11 2025, 1:27 AM
Unknown Object (File)
Dec 14 2024, 4:47 PM
Unknown Object (File)
Dec 12 2024, 10:52 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