Skip to content

c_import: __builtin_mul_overflow/__builtin_add_overflow translate to undefined __with_builtin_*_overflow_u64 (SDL_size_mul_check_overflow) #1877

Closed

Description

@ehartford

Found verifying #1872 (both platforms, main and PR alike). SDL.h's SDL_size_mul_check_overflow / SDL_size_add_check_overflow use clang/gcc __builtin_mul_overflow / __builtin_add_overflow; the translation emits calls to __with_builtin_mul_overflow_u64 / __with_builtin_add_overflow_u64 that nothing defines → "undefined variable". Expected: lower to With's checked-arithmetic builtins (or emit a loud untranslatable omission, never a dangling name).

Activity

  1. added
    bug
    on Sep 28, 2026
  2. added a commit that references this issue on Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions