Page MenuHomeFreeBSD

Pass 0 to __builtin_frame_address() to appease modern GCC.
ClosedPublic

Authored by jhb on Thu, Nov 28, 8:35 PM.

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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

jhb created this revision.Thu, Nov 28, 8:35 PM
imp accepted this revision.Thu, Nov 28, 8:44 PM
This revision is now accepted and ready to land.Thu, Nov 28, 8:44 PM
marius accepted this revision.Sat, Nov 30, 12:14 AM

looks good to me

This revision was automatically updated to reflect the committed changes.