git: 127109e75d06 - stable/15 - libc: Add missing kill_dependency macro
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 31 Oct 2026 10:06:30 UTC
The branch stable/15 has been updated by kfv:
URL: https://cgit.FreeBSD.org/src/commit/?id=127109e75d06b14bce30849e9131318b592ea808
commit 127109e75d06b14bce30849e9131318b592ea808
Author: Faraz Vahedi <kfv@FreeBSD.org>
AuthorDate: 2026-05-01 15:41:49 +0000
Commit: Faraz Vahedi <kfv@FreeBSD.org>
CommitDate: 2026-10-31 10:03:30 +0000
libc: Add missing kill_dependency macro
Add `kill_dependency` as specified by C11 ยง7.17.3.1.
The macro is required to break dependency chains in
expressions without affecting the value.
No functional impact beyond providing the required,
value-preserving definition.
Signed-off-by: Faraz Vahedi <kfv@kfv.io>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2185
(cherry picked from commit 9d87c1aac4a84ac5e82acf872f645a7202977204)
---
sys/sys/stdatomic.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/sys/stdatomic.h b/sys/sys/stdatomic.h
index 2d565ce991be..e6eb46cd6ef3 100644
--- a/sys/sys/stdatomic.h
+++ b/sys/sys/stdatomic.h
@@ -141,6 +141,8 @@ typedef enum {
memory_order_seq_cst = __ATOMIC_SEQ_CST
} memory_order;
+#define kill_dependency(y) (y)
+
/*
* 7.17.4 Fences.
*/