diff options
author | obrien <obrien@FreeBSD.org> | 2005-01-18 03:32:53 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2005-01-18 03:32:53 +0000 |
commit | c09808e6cda3e0bef1923afeac9d8c0cf35dd9fe (patch) | |
tree | 363468051ba85c58ab7a36496c916a7ad69a1a97 /sys/conf/kern.pre.mk | |
parent | d3c8b51a57acddc43e12ca5b061405ba5bee3247 (diff) | |
download | FreeBSD-src-c09808e6cda3e0bef1923afeac9d8c0cf35dd9fe.zip FreeBSD-src-c09808e6cda3e0bef1923afeac9d8c0cf35dd9fe.tar.gz |
While we're building kernels -g (ie, makeoptions DEBUG=-g), use -O as it
provides truer debugger stack traces. For those that want to stick with
-O2 kernel builds, one should probably add -fno-optimize-sibling-calls
so that each stack frame as a frame pointer.
It is semi-promissed by the Release Engineers that when RELENG_6 is
created we go back to -O2.
Desired by: scottl, jhb
Diffstat (limited to 'sys/conf/kern.pre.mk')
-rw-r--r-- | sys/conf/kern.pre.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk index 49f55331..de997ab 100644 --- a/sys/conf/kern.pre.mk +++ b/sys/conf/kern.pre.mk @@ -22,7 +22,7 @@ COPTFLAGS?=-O . if ${MACHINE_ARCH} == "amd64" COPTFLAGS?=-O2 -frename-registers -pipe . else -COPTFLAGS?=-O2 -pipe +COPTFLAGS?=-O -pipe . endif . if ${COPTFLAGS:M-O[23s]} != "" COPTFLAGS+= -fno-strict-aliasing |