Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162839020
D27170.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D27170.diff
View Options
Index: head/sys/conf/kern.mk
===================================================================
--- head/sys/conf/kern.mk
+++ head/sys/conf/kern.mk
@@ -230,15 +230,15 @@
#
# Initialize stack variables on function entry
#
-.if defined(MK_INIT_ALL_ZERO) && ${MK_INIT_ALL_ZERO} == "yes"
-.if defined(COMPILER_FEATURES) && ${COMPILER_FEATURES:Minit-all}
+.if ${MK_INIT_ALL_ZERO} == "yes"
+.if ${COMPILER_FEATURES:Minit-all}
CFLAGS+= -ftrivial-auto-var-init=zero \
-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang
.else
.warning InitAll (zeros) requested but not support by compiler
.endif
-.elif defined(MK_INIT_ALL_PATTERN) && ${MK_INIT_ALL_PATTERN} == "yes"
-.if defined(COMPILER_FEATURES) && ${COMPILER_FEATURES:Minit-all}
+.elif ${MK_INIT_ALL_PATTERN} == "yes"
+.if ${COMPILER_FEATURES:Minit-all}
CFLAGS+= -ftrivial-auto-var-init=pattern
.else
.warning InitAll (pattern) requested but not support by compiler
Index: head/sys/conf/kern.opts.mk
===================================================================
--- head/sys/conf/kern.opts.mk
+++ head/sys/conf/kern.opts.mk
@@ -52,6 +52,8 @@
__DEFAULT_NO_OPTIONS = \
BHYVE_SNAPSHOT \
EXTRA_TCP_STACKS \
+ INIT_ALL_PATTERN \
+ INIT_ALL_ZERO \
KERNEL_RETPOLINE \
OFED \
RATELIMIT \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 18, 11:25 AM (2 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35196163
Default Alt Text
D27170.diff (1 KB)
Attached To
Mode
D27170: Add INIT_ALL_ZERO and INIT_ALL_PATTERN to kern.opts.mk
Attached
Detach File
Event Timeline
Log In to Comment