[all-commits] [llvm/llvm-project] 876a5c: [libc++] Avoid including <features.h> on arbitrary...

Tom Stellard via All-commits all-commits at lists.llvm.org
Thu Feb 20 15:14:28 PST 2025


  Branch: refs/heads/users/mizvekov/clang-fix-GH55509-20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 876a5c9e5905a9666748632afba1ff83200ed95b
      https://github.com/llvm/llvm-project/commit/876a5c9e5905a9666748632afba1ff83200ed95b
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2025-02-19 (Wed, 19 Feb 2025)

  Changed paths:
    M libcxx/include/__configuration/platform.h

  Log Message:
  -----------
  [libc++] Avoid including <features.h> on arbitrary platforms (#125587)

This partially reverts commit 5f2389d4. That commit started checking
whether <features.h> was a valid include unconditionally, however codebases
are free to have such a header on their search path, which breaks compilation.
LLVM libc now provides a more standard way of getting configuration macros
like __LLVM_LIBC__.

After this patch, we only include <features.h> when we're on Linux or
when we're compiling for GPUs.

(cherry picked from commit cffc1ac3491c891ef4f80bcbfa685710e477eeac)


  Commit: 2b70b17d30744ee6720eb2645ef8b61e043ed295
      https://github.com/llvm/llvm-project/commit/2b70b17d30744ee6720eb2645ef8b61e043ed295
  Author: Tom Stellard <tstellar at redhat.com>
  Date:   2025-02-19 (Wed, 19 Feb 2025)

  Changed paths:
    M flang/runtime/io-api-minimal.cpp

  Log Message:
  -----------
  flang: Fix build with latest libc++ (#127362)

I think this first stopped working with
954836634abb446f18719b14120c386a929a42d1. This patch fixes the following
error:

/home/runner/work/llvm-project/llvm-project/flang/runtime/io-api-minimal.cpp:153:11:
error: '__libcpp_verbose_abort' is missing exception specification
'noexcept'
   153 | void std::__libcpp_verbose_abort(char const *format, ...) {
       |           ^
| noexcept
/mnt/build/bin/../include/c++/v1/__verbose_abort:30:28: note: previous
declaration is here
30 | __printf__, 1, 2) void __libcpp_verbose_abort(const char* __format,
...) _LIBCPP_VERBOSE_ABORT_NOEXCEPT;
       |                            ^
1 error generated.

(cherry picked from commit 2b340c10a611d929fee25e6222909c8915e3d6b6)


  Commit: 239faf0b9dbcf092337a8feb696f1f9bf0671241
      https://github.com/llvm/llvm-project/commit/239faf0b9dbcf092337a8feb696f1f9bf0671241
  Author: Kerry McLaughlin <kerry.mclaughlin at arm.com>
  Date:   2025-02-20 (Thu, 20 Feb 2025)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64InstrFormats.td
    M llvm/lib/Target/AArch64/AArch64InstrInfo.td
    M llvm/test/MC/AArch64/armv8.1a-lse.s
    M llvm/test/MC/AArch64/armv9.6a-lsui.s

  Log Message:
  -----------
  [LLVM][AArch64] Remove aliases of LSUI instructions (#126072)

Removes MnemonicAliases added for instructions available with
the LSUI feature (e.g. CAS -> CAST) which are not equivalent.
The aliases stt[add|clr|set]a & stt[add|clr|set]al are also removed.

(cherry picked from commit d44d806faa879dfb7a7ceb58beeb57cf8d5af430)


  Commit: e7e2c16cac97696a89a053f72b94112739b6897f
      https://github.com/llvm/llvm-project/commit/e7e2c16cac97696a89a053f72b94112739b6897f
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2025-02-20 (Thu, 20 Feb 2025)

  Changed paths:
    M libcxx/include/__chrono/time_zone.h
    M libcxx/test/std/time/time.zone/time.zone.timezone/time.zone.members/to_sys_choose.pass.cpp

  Log Message:
  -----------
  [libc++][TZDB] Fixes mapping of nonexisting time. (#127330)

All non-existing local times in a contiguous range should map to the
same time point. This fixes a bug, were the times inside the range were
mapped to the wrong time.

Fixes: #113654
(cherry picked from commit 941f7cbf5a3e7aa9f36b002dc22cfdb4ff50fea8)


  Commit: 6ea0367372362e50ddaa6ec51a502c1ca19d26d7
      https://github.com/llvm/llvm-project/commit/6ea0367372362e50ddaa6ec51a502c1ca19d26d7
  Author: Tom Stellard <tstellar at redhat.com>
  Date:   2025-02-20 (Thu, 20 Feb 2025)

  Changed paths:
    M .github/workflows/release-binaries.yml

  Log Message:
  -----------
  workflows/release-binaries: Disable Flang on x86_64 macOS (#127216)

The flang build was taking 2-3 hours and causing the entire job to
timeout, so we need to disable it.

(cherry picked from commit 3e5ae5777d92b6f8c647c3f6969fbca0f0f769ff)


  Commit: 05cce88ab900af4a4e08018e96f55b0c308ab973
      https://github.com/llvm/llvm-project/commit/05cce88ab900af4a4e08018e96f55b0c308ab973
  Author: A. Jiang <de34 at live.cn>
  Date:   2025-02-20 (Thu, 20 Feb 2025)

  Changed paths:
    M libcxx/docs/FeatureTestMacroTable.rst
    M libcxx/docs/Status/Cxx20Papers.csv
    M libcxx/include/version
    M libcxx/test/std/language.support/support.limits/support.limits.general/atomic.version.compile.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp
    M libcxx/utils/generate_feature_test_macro_components.py

  Log Message:
  -----------
  [libc++] Set feature-test macro `__cpp_lib_atomic_float` (#127559)

The corresponding feature was implemented in LLVM 18 (by #67799), but
this FTM wasn't added before.

(cherry picked from commit 2207e3e32549306bf563c6987f790cabe8d4ea78)


  Commit: 6dcece41472d64555f0ca2539a3e1e1e5feec083
      https://github.com/llvm/llvm-project/commit/6dcece41472d64555f0ca2539a3e1e1e5feec083
  Author: David Green <david.green at arm.com>
  Date:   2025-02-20 (Thu, 20 Feb 2025)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
    M llvm/test/CodeGen/AArch64/fptosi-sat-scalar.ll
    M llvm/test/CodeGen/AArch64/fptosi-sat-vector.ll
    M llvm/test/CodeGen/AArch64/fptoui-sat-scalar.ll
    M llvm/test/CodeGen/AArch64/fptoui-sat-vector.ll

  Log Message:
  -----------
  [GlobalISel][AArch64] Fix fptoi.sat lowering. (#127901)

The SDAG version uses fminnum/fmaxnum, in converting it to fcmp+select
it appears the order of the operands was chosen badly. This switches the
conditions used to keep the constant on the RHS.

(cherry picked from commit 70ed381b1693697dec3efcaed161d3626d16cff1)


  Commit: 3007684f86468c344c5d0b77217b40b33173cb02
      https://github.com/llvm/llvm-project/commit/3007684f86468c344c5d0b77217b40b33173cb02
  Author: Younan Zhang <zyn7109 at gmail.com>
  Date:   2025-02-20 (Thu, 20 Feb 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaTemplate.cpp
    M clang/lib/Sema/SemaTemplateInstantiate.cpp
    M clang/test/AST/ast-dump-ctad-alias.cpp

  Log Message:
  -----------
  release/20.x: [Clang] Remove the PackExpansion restrictions for rewrite substitution (#127174)

This backports c08b80eb525a6e6a34d74634bf5181f11ed12984 with a release
note towards 20 so that we could resolve some pains in CTAD.


  Commit: 99947c59de7b8ecbdda2a8b8ce78abc3083adee0
      https://github.com/llvm/llvm-project/commit/99947c59de7b8ecbdda2a8b8ce78abc3083adee0
  Author: Zixu Wang <9819235+zixu-w at users.noreply.github.com>
  Date:   2025-02-20 (Thu, 20 Feb 2025)

  Changed paths:
    M clang/lib/Serialization/ASTReader.cpp
    R clang/test/Modules/pr121245.cpp

  Log Message:
  -----------
  Revert "[C++20][Modules][Serialization] Delay marking pending incompl… (#127136)

…ete decl chains until the end of `finishPendingActions`. (#121245)"

This reverts commit a9e249f64e800fbb20a3b26c0cfb68c1a1aee5e1.

Reverting this change because of issue #126973.

(cherry picked from commit 912b154f3a3f8c3cebf5cc5731fd8b0749762da5)


  Commit: 81fa5fefda03bc25e70938b81cff1881bab2c44e
      https://github.com/llvm/llvm-project/commit/81fa5fefda03bc25e70938b81cff1881bab2c44e
  Author: Tom Stellard <tstellar at redhat.com>
  Date:   2025-02-20 (Thu, 20 Feb 2025)

  Changed paths:
    M .github/workflows/release-binaries.yml
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaTemplate.cpp
    M clang/lib/Sema/SemaTemplateInstantiate.cpp
    M clang/lib/Serialization/ASTReader.cpp
    M clang/test/AST/ast-dump-ctad-alias.cpp
    R clang/test/Modules/pr121245.cpp
    M flang/runtime/io-api-minimal.cpp
    M libcxx/docs/FeatureTestMacroTable.rst
    M libcxx/docs/Status/Cxx20Papers.csv
    M libcxx/include/__chrono/time_zone.h
    M libcxx/include/__configuration/platform.h
    M libcxx/include/version
    M libcxx/test/std/language.support/support.limits/support.limits.general/atomic.version.compile.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp
    M libcxx/test/std/time/time.zone/time.zone.timezone/time.zone.members/to_sys_choose.pass.cpp
    M libcxx/utils/generate_feature_test_macro_components.py
    M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
    M llvm/lib/Target/AArch64/AArch64InstrFormats.td
    M llvm/lib/Target/AArch64/AArch64InstrInfo.td
    M llvm/test/CodeGen/AArch64/fptosi-sat-scalar.ll
    M llvm/test/CodeGen/AArch64/fptosi-sat-vector.ll
    M llvm/test/CodeGen/AArch64/fptoui-sat-scalar.ll
    M llvm/test/CodeGen/AArch64/fptoui-sat-vector.ll
    M llvm/test/MC/AArch64/armv8.1a-lse.s
    M llvm/test/MC/AArch64/armv9.6a-lsui.s

  Log Message:
  -----------
  Merge branch 'release/20.x' into users/mizvekov/clang-fix-GH55509-20.x


Compare: https://github.com/llvm/llvm-project/compare/c0f86c988617...81fa5fefda03

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