Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <4dca35035ba8c1b126d040ef70edf148a7af622b.1684922674.git.Jens.Gustedt@inria.fr>
Date: Tue, 9 May 2023 17:27:15 +0200
From: Jens Gustedt <Jens.Gustedt@...ia.fr>
To: musl@...ts.openwall.com
Subject: [C23 feature tests 6/6] 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 5d460800..f65d5b4d 100644
--- a/include/features.h
+++ b/include/features.h
@@ -46,6 +46,9 @@
 # if __has_c_attribute(__deprecated__)
 #  define __deprecated [[__deprecated__]]
 # endif
+# if __has_c_attribute(__unsequenced__)
+#  define __unsequenced [[__unsequenced__]]
+# endif
 #endif
 
 #ifndef __noreturn
@@ -58,6 +61,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.