No __builtin_unreachable() in gcc < 4.5.
Closed / Fixed98ce2ebb2838750183c08c4d22c2d1faaf918898Created 309 days agoUpdated 303 days ago
Descriptionplain2026-01-28 04:39:43
https://cvsweb.openbsd.org/ports/lang/tcl/9/patches/patch-generic_tclInt_h Index: generic/tclInt.h --- generic/tclInt.h.orig +++ generic/tclInt.h @@ -149,7 +149,7 @@ #if defined(__STDC__) && __STDC__ >= 202311L #include <stddef.h> #define TCL_UNREACHABLE() unreachable() -#elif defined(__GNUC__) +#elif defined(__GNUC__) && ((__GNUC__ == 4 && __GNUC_MINOR__ >= 5) || __GNUC__ >= 5 || defined(__clang__)) #define TCL_UNREACHABLE() __builtin_unreachable() #elif defined(_MSC_VER) #define TCL_UNREACHABLE() __assume(0)
Referenced by3
cbde0d0b22Closed ticket [d0801e89aa]: Avoid __builtin_available with old gcc plus 7 other changes ticket2026-05-01 13:53:58f4d491115bFix [98ce2ebb28]: No __builtin_unreachable() in gcc < 4.5. check-in2026-01-31 18:03:05f5e8cc4a60Fix [98ce2ebb28]: No __builtin_unreachable() in gcc < 4.5. check-in2026-01-31 17:57:02
stu Ticket [98ce2ebb28]: 3 changes
[History diff]2026-01-28 04:41:20
jan.nijtmansplain2026-02-03 08:08:58
Fixed [f4d491115b9912ba|here]
Log in (anonymous is fine) to add a comment.