[all-commits] [llvm/llvm-project] 1f46c1: [Clang] Disable C++ exceptions by default for GPU ...

Joseph Huber via All-commits all-commits at lists.llvm.org
Thu Jun 25 13:51:16 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1f46c12683f0683c13d86016d1ecba6392c08060
      https://github.com/llvm/llvm-project/commit/1f46c12683f0683c13d86016d1ecba6392c08060
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2026-06-25 (Thu, 25 Jun 2026)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    A clang/test/Driver/gpu-exceptions.cpp

  Log Message:
  -----------
  [Clang] Disable C++ exceptions by default for GPU targets (#205402)

Summary:
Exceptions are not supporter, and likely will never be supported, on
GPUs. The SIMT model makes context switching nearly impossible, and
building an unwinder would require stashing a register file that is
over 8 KiB these days. There's precedent to disable this for the target,
so we should just do this.

Offloading languages have their own weird handling, some chimera that
just accepts exceptions but turns them into traps on the device side, so
we leave that unaffected.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list