]> The Tcpdump Group git mirrors - tcpdump/commitdiff
funcattrs: Update the NORETURN definition condition for TinyCC
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 19 May 2024 12:10:06 +0000 (14:10 +0200)
committerfxlb <[email protected]>
Mon, 20 May 2024 11:17:09 +0000 (11:17 +0000)
Current TinyCC support __attribute((noreturn)).

[skip ci]

funcattrs.h

index 21f3cc1dafd0e83a5485e3b2e4f5edca048db368..28e4108b58c0fbea05c3e92500e83dcf472fad17 100644 (file)
     || ND_IS_AT_LEAST_GNUC_VERSION(2,5) \
     || ND_IS_AT_LEAST_SUNC_VERSION(5,9) \
     || ND_IS_AT_LEAST_XL_C_VERSION(10,1) \
-    || ND_IS_AT_LEAST_HP_C_VERSION(6,10)
+    || ND_IS_AT_LEAST_HP_C_VERSION(6,10) \
+    || __TINYC__
   /*
    * Compiler with support for __attribute((noreturn)), or GCC 2.5 and
    * later, or some compiler asserting compatibility with GCC 2.5 and
    * later, or Solaris Studio 12 (Sun C 5.9) and later, or IBM XL C 10.1
    * and later (do any earlier versions of XL C support this?), or HP aCC
-   * A.06.10 and later.
+   * A.06.10 and later, or current TinyCC.
    */
   #define NORETURN __attribute((noreturn))