[all-commits] [llvm/llvm-project] 40a187: [libcxx] Rename the now fully private header __std...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Thu Apr 13 02:06:28 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 40a187bb622959023f751ec3a11f2af5fa8b48fa
      https://github.com/llvm/llvm-project/commit/40a187bb622959023f751ec3a11f2af5fa8b48fa
  Author: Martin Storsjö <martin at martin.st>
  Date:   2023-04-13 (Thu, 13 Apr 2023)

  Changed paths:
    R libcxx/src/__std_stream
    M libcxx/src/iostream.cpp
    A libcxx/src/std_stream.h
    M libcxx/utils/data/ignore_format.txt

  Log Message:
  -----------
  [libcxx] Rename the now fully private header __std_stream to std_stream.h

When this header now is a fully regular header within the src tree,
give it a more regular name.

Differential Revision: https://reviews.llvm.org/D148072


  Commit: 6d7d0ed4a9918e57be5f9f36269ef3f165e72287
      https://github.com/llvm/llvm-project/commit/6d7d0ed4a9918e57be5f9f36269ef3f165e72287
  Author: Martin Storsjö <martin at martin.st>
  Date:   2023-04-13 (Thu, 13 Apr 2023)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt

  Log Message:
  -----------
  [compiler-rt] [test] Pass the mingw specific option for increasing stack size

This passes the same option that was added for MSVC builds in
fb5a24b4f03a7 in the corresponding mingw form too.

This fixes the BVGraph tests in the sanitizer unit tests.

Differential Revision: https://reviews.llvm.org/D148132


  Commit: fb012c1eeb50500bbd1f289b50aa08d1e2f10098
      https://github.com/llvm/llvm-project/commit/fb012c1eeb50500bbd1f289b50aa08d1e2f10098
  Author: Martin Storsjö <martin at martin.st>
  Date:   2023-04-13 (Thu, 13 Apr 2023)

  Changed paths:
    M compiler-rt/lib/ubsan/ubsan_diag.cpp

  Log Message:
  -----------
  [compiler-rt] [ubsan] Fix printing of floats in mingw mode

In mingw mode on x86, long doubles are 80 bit - while MSVC mode uses
long doubles that are equal to regular doubles (on all architectures).

In the case of this formatting function, we're calling a MS CRT
provided printf function which interprets long doubles as 64 bit.

Since the long doubles are equal to regular doubles on all MSVC
platforms, just use regular double formatting. For MSVC environments
there's no difference, but for mingw environments, this avoids the
ambiguity.

Differential Revision: https://reviews.llvm.org/D148133


  Commit: 56320301a76d654084e68dd5840590d699e4879e
      https://github.com/llvm/llvm-project/commit/56320301a76d654084e68dd5840590d699e4879e
  Author: Martin Storsjö <martin at martin.st>
  Date:   2023-04-13 (Thu, 13 Apr 2023)

  Changed paths:
    M compiler-rt/test/profile/Windows/coverage-weak-lld.cpp

  Log Message:
  -----------
  [compiler-rt] [test] [profile] Mark a Windows test as requiring an MSVC target

This test uses lots of lld-link specific linker options that don't
work as such in mingw command lines.

Differential Revision: https://reviews.llvm.org/D148168


  Commit: d846a15025eba77cd0c7e39335ac8c16fbc3152a
      https://github.com/llvm/llvm-project/commit/d846a15025eba77cd0c7e39335ac8c16fbc3152a
  Author: Martin Storsjö <martin at martin.st>
  Date:   2023-04-13 (Thu, 13 Apr 2023)

  Changed paths:
    M compiler-rt/test/profile/instrprof-without-libc.c

  Log Message:
  -----------
  [compiler-rt] [test] [profile] Mark the without-libc test as unsupported on mingw

Mingw toolchains always end up referencing the malloc symbol due to
the CRT startup files.

Differential Revision: https://reviews.llvm.org/D148166


  Commit: 609420041b1827eeae2f7dbb5ea3a90652112d50
      https://github.com/llvm/llvm-project/commit/609420041b1827eeae2f7dbb5ea3a90652112d50
  Author: Martin Storsjö <martin at martin.st>
  Date:   2023-04-13 (Thu, 13 Apr 2023)

  Changed paths:
    M compiler-rt/test/profile/Windows/coverage-linkage.cpp

  Log Message:
  -----------
  [compiler-rt] [test] [profile] Skip an MSVC-style linker parameter in mingw mode

This parameter isn't essential for the execution of this test, so just
skip it when running tests in mingw mode.

Differential Revision: https://reviews.llvm.org/D148165


  Commit: 5b9d969e7c07d720080eac386467c1112c45a76f
      https://github.com/llvm/llvm-project/commit/5b9d969e7c07d720080eac386467c1112c45a76f
  Author: Martin Storsjö <martin at martin.st>
  Date:   2023-04-13 (Thu, 13 Apr 2023)

  Changed paths:
    M libunwind/src/UnwindCursor.hpp

  Log Message:
  -----------
  [libunwind] [SEH] Allow setting/getting the register UNW_X86_64_RIP

This fixes libunwind_01.pass.cpp for x86_64 Windows.

Differential Revision: https://reviews.llvm.org/D147635


  Commit: ebae5622d11655feaa74e64151067897153f9c71
      https://github.com/llvm/llvm-project/commit/ebae5622d11655feaa74e64151067897153f9c71
  Author: Martin Storsjö <martin at martin.st>
  Date:   2023-04-13 (Thu, 13 Apr 2023)

  Changed paths:
    M libunwind/src/UnwindCursor.hpp

  Log Message:
  -----------
  [libunwind] [SEH] Initialize _msContext with RtlCaptureContext

When we initialize the UnwindCursor (unw_cursor_t) based on
an existing Registers object (unw_context_t), we only initialize
a subset of the class.

Fill the struct properly for the current thread with RtlCaptureContext,
followed by overwriting of the subset of registers that we do have
available in the Registers class.

One might think that it's enough to initialize specifically the
registers that we signal availability for with ContextFlags,
however in practice, that's not enough.

This fixes crashes when restoring the context via RtlRestoreContext
(via UnwindCursor::jumpto), via __unw_resume.

Differential Revision: https://reviews.llvm.org/D147636


Compare: https://github.com/llvm/llvm-project/compare/2124505fe4c9...ebae5622d116


More information about the All-commits mailing list