Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <4dd597d0f4738e7a161dff96dd0955154fe7dd75.1685521571.git.Jens.Gustedt@inria.fr>
Date: Wed, 31 May 2023 10:45:51 +0200
From: Jens Gustedt <Jens.Gustedt@...ia.fr>
To: musl@...ts.openwall.com
Subject: [C23 feature tests 4/4] C23: add an internal interface for the new unsequenced attribute

---
 include/features.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/include/features.h b/include/features.h
index 46eca334..adc41c04 100644
--- a/include/features.h
+++ b/include/features.h
@@ -42,6 +42,9 @@
 # if __has_c_attribute(__deprecated__)
 #  define __deprecated [[__deprecated__]]
 # endif
+# if __has_c_attribute(__unsequenced__)
+#  define __unsequenced [[__unsequenced__]]
+# endif
 #endif
 
 #ifndef __noreturn
@@ -54,6 +57,13 @@
 #  define __deprecated
 # endif
 #endif
+#ifndef __unsequenced
+# if defined(__GNUC__)
+#  define __unsequenced __attribute__((__const__))
+# else
+#  define __unsequenced
+# endif
+#endif
 
 #define __REDIR(x,y) __typeof__(x) x __asm__(#y)
 
-- 
2.34.1

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.