Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132562743
D26471.id77628.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
900 B
Referenced Files
None
Subscribers
None
D26471.id77628.diff
View Options
Index: head/sys/conf/kern.pre.mk
===================================================================
--- head/sys/conf/kern.pre.mk
+++ head/sys/conf/kern.pre.mk
@@ -51,25 +51,14 @@
SIZE?= size
.if defined(DEBUG)
-.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpcspe"
-# Work around clang 11 miscompile on 32 bit powerpc.
-_MINUS_O= -O2
-.else
-_MINUS_O= -O
-.endif
CTFFLAGS+= -g
-.else
-_MINUS_O= -O2
.endif
-.if ${MACHINE_CPUARCH} == "amd64"
-.if ${COMPILER_TYPE} == "clang"
-COPTFLAGS?=-O2 -pipe
+.if ${MACHINE_CPUARCH} == "amd64" && ${COMPILER_TYPE} != "clang"
+_COPTFLAGS_EXTRA=-frename-registers
.else
-COPTFLAGS?=-O2 -frename-registers -pipe
+_COPTFLAGS_EXTRA=
.endif
-.else
-COPTFLAGS?=${_MINUS_O} -pipe
-.endif
+COPTFLAGS?=-O2 -pipe ${_COPTFLAGS_EXTRA}
.if !empty(COPTFLAGS:M-O[23s]) && empty(COPTFLAGS:M-fno-strict-aliasing)
COPTFLAGS+= -fno-strict-aliasing
.endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 19, 12:17 AM (10 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23883476
Default Alt Text
D26471.id77628.diff (900 B)
Attached To
Mode
D26471: Build debug kernels with -O2.
Attached
Detach File
Event Timeline
Log In to Comment