Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ef6176852ed84923557851ebe84d27ccbe5776662e95d9bbb2e65de6dace139e
Ticket: 98ce2ebb2838750183c08c4d22c2d1faaf918898
No __builtin_unreachable() in gcc < 4.5.
User & Date: stu on 2026-01-28 04:39:43
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    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)
    
  5. is_private changed to: "0"
  6. login: "stu"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "702b65e835b7b4b4720d6e9d37fc582f82909394"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "stu"
  13. subsystem changed to: "53. Configuration and Build Tools"
  14. title changed to: "No __builtin_unreachable() in gcc < 4.5."
  15. type changed to: "Bug"