HomeFreeBSD

Build debug kernels with -O2.

Description

Build debug kernels with -O2.

LLVM 11 changed the meaning of '-O' from '-O2' to '-O1', which resulted
in debug kernels (with 'makeoptions DEBUG=-g') being built with inlining
disabled, causing severe performance hit.

The -O2 was already being used for building amd64, powerpc, and powerpcspe.

Discussed with: jrtc27, arichardson, bdragon, jhibbits
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D26471

Details

Provenance
traszAuthored on
Differential Revision
D26471: Build debug kernels with -O2.
Parents
rS366250: Use the 'traced' variable instead of comparing p->p_flag again.
Branches
Unknown
Tags
Unknown