[all-commits] [llvm/llvm-project] d1a2f1: [builtins] Mark `int_lib.h` builtins as `static` (...

trevyn via All-commits all-commits at lists.llvm.org
Fri Jan 19 06:02:12 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d1a2f11febfcdb2cc56a8c29012f948727c152d0
      https://github.com/llvm/llvm-project/commit/d1a2f11febfcdb2cc56a8c29012f948727c152d0
  Author: trevyn <230691+trevyn at users.noreply.github.com>
  Date:   2024-01-19 (Fri, 19 Jan 2024)

  Changed paths:
    M compiler-rt/lib/builtins/int_lib.h

  Log Message:
  -----------
  [builtins] Mark `int_lib.h` builtins as `static` (#69305)

Mark the following symbols as `static` to prevent duplicate definitions:

`__builtin_ctz`
`__builtin_clz`
`__builtin_clzll`
`__builtin_sadd_overflow`

>Without these then all of these functions show up in all object files
which include int_lib.h on Windows. This'll help prevent duplicate
symbols by ensuring they're not exported.

See:

https://github.com/rust-lang/compiler-builtins/issues/167
https://reviews.llvm.org/D34599




More information about the All-commits mailing list