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
F80207158: D22600.diff
Fri, Mar 29, 6:08 AM
Unknown Object (File)
Dec 26 2023, 1:49 AM
Unknown Object (File)
Dec 20 2023, 12:50 AM
Unknown Object (File)
Nov 29 2023, 10:49 PM
Unknown Object (File)
Oct 20 2023, 11:15 AM
Unknown Object (File)
Aug 29 2023, 6:18 AM
Unknown Object (File)
Jun 4 2023, 1:11 AM
Unknown Object (File)
Mar 4 2023, 10:45 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