[all-commits] [llvm/llvm-project] a20fe9: [libc] Modular printf option (float only)

Daniel Thornburgh via All-commits all-commits at lists.llvm.org
Tue Sep 2 14:42:15 PDT 2025


  Branch: refs/heads/users/mysterymath/modular-printf/libc
  Home:   https://github.com/llvm/llvm-project
  Commit: a20fe9c1bff53932f2a85da5cbfd65cfdb8df26e
      https://github.com/llvm/llvm-project/commit/a20fe9c1bff53932f2a85da5cbfd65cfdb8df26e
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-09-02 (Tue, 02 Sep 2025)

  Changed paths:
    M libc/config/config.json
    M libc/docs/configure.rst
    M libc/src/stdio/generic/CMakeLists.txt
    A libc/src/stdio/generic/printf_modular.cpp
    M libc/src/stdio/printf.h
    M libc/src/stdio/printf_core/CMakeLists.txt
    M libc/src/stdio/printf_core/float_dec_converter.h
    M libc/src/stdio/printf_core/float_dec_converter_limited.h
    M libc/src/stdio/printf_core/float_hex_converter.h
    A libc/src/stdio/printf_core/float_impl.cpp
    M libc/src/stdio/printf_core/parser.h
    M libc/src/stdio/printf_core/printf_config.h
    M libc/src/stdio/printf_core/printf_main.h
    M libc/src/stdio/printf_core/vfprintf_internal.h

  Log Message:
  -----------
  [libc] Modular printf option (float only)

This adds LIBC_CONF_PRINTF_MODULAR, which causes floating point support
(later, others) to be weakly linked into the implementation.
__printf_modular becomes the main entry point of the implementaiton, an
printf itself wraps __printf_modular. printf it also contains a
BFD_RELOC_NONE relocation to bring in the float aspect.

See issue #146159 for context.


  Commit: 96274efe66a16fef0e2f694cb96fcbcda6aabf39
      https://github.com/llvm/llvm-project/commit/96274efe66a16fef0e2f694cb96fcbcda6aabf39
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-09-02 (Tue, 02 Sep 2025)

  Changed paths:
    M libc/src/stdio/printf_core/vfprintf_internal.h

  Log Message:
  -----------
  Fix missed SPLIT->MODULAR rename


  Commit: bd49b9ce4495e9cfc4493c7b25af46211c51e9bf
      https://github.com/llvm/llvm-project/commit/bd49b9ce4495e9cfc4493c7b25af46211c51e9bf
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-09-02 (Tue, 02 Sep 2025)

  Changed paths:
    M libc/src/stdio/printf_core/float_impl.cpp

  Log Message:
  -----------
  Add missing file header


  Commit: 056d108b7f3afaf6305cada74621107210ed0102
      https://github.com/llvm/llvm-project/commit/056d108b7f3afaf6305cada74621107210ed0102
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-09-02 (Tue, 02 Sep 2025)

  Changed paths:
    M libc/src/stdio/printf_core/printf_main.h

  Log Message:
  -----------
  Use LIBC_INLINE_ASM macro


  Commit: bc4ad41730b3f12119d32e3b13adcf981c8cfc6c
      https://github.com/llvm/llvm-project/commit/bc4ad41730b3f12119d32e3b13adcf981c8cfc6c
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-09-02 (Tue, 02 Sep 2025)

  Changed paths:
    M libc/src/stdio/printf_core/float_dec_converter.h
    M libc/src/stdio/printf_core/float_dec_converter_limited.h
    M libc/src/stdio/printf_core/float_hex_converter.h
    M libc/src/stdio/printf_core/parser.h

  Log Message:
  -----------
  LIBC_INLINE for modular fn definitions


Compare: https://github.com/llvm/llvm-project/compare/ab4b135be440...bc4ad41730b3

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