SuccessChanges

Summary

  1. [scudo] Add unmapTestOnly() to secondary. (details)
  2. PR50456: Properly handle multiple escaped newlines in a '*/'. (details)
  3. [dsymutil] Compute the output location once per input file (NFC) (details)
  4. [dsymutil] Use EXIT_SUCCESS and EXIT_FAILURE (NFC) (details)
  5. [dsymutil] Emit an error when the Mach-O exceeds the 4GB limit. (details)
  6. [NFC][scudo] Avoid cast in test (details)
  7. [NFC][OMP] Fix 'unused' warning (details)
  8. Add a range-based wrapper for std::unique(begin, end, binary_predicate) (details)
  9. lld-coff: Simplify a few lambda uses after 7975dd033cb9 (details)
  10. [NFC][scudo] Add paramenters DCHECKs (details)
  11. Revert "Do not create LLVM IR `constant`s for objects with dynamic initialisation" (details)
Commit 1fb6a0307240b0c543ec5babb35e39db2c39052b by 31459023+hctim
[scudo] Add unmapTestOnly() to secondary.

When trying to track down a vaddr-poisoning bug, I found that that the
secondary cache isn't emptied on test teardown. We should probably do
that to make the tests hermetic. Otherwise, repeating the tests lots of
times using --gtest_repeat fails after the mmap vaddr space is
exhausted.

To repro:
$ ninja check-scudo_standalone # build
$ ./projects/compiler-rt/lib/scudo/standalone/tests/ScudoUnitTest-x86_64-Test \
--gtest_filter=ScudoSecondaryTest.*:-ScudoSecondaryTest.SecondaryCombinations \
--gtest_repeat=10000

Reviewed By: cryptoad

Differential Revision: https://reviews.llvm.org/D102874
The file was modifiedcompiler-rt/lib/scudo/standalone/combined.h
The file was modifiedcompiler-rt/lib/scudo/standalone/tests/secondary_test.cpp
The file was modifiedcompiler-rt/lib/scudo/standalone/secondary.h
Commit de6164ec4da0cfea1b0d0e472c432ea1be4d9c29 by richard
PR50456: Properly handle multiple escaped newlines in a '*/'.
The file was modifiedclang/test/Lexer/block_cmt_end.c
The file was modifiedclang/lib/Lex/Lexer.cpp
Commit aab488ac2a56d5829c6d51471987e5c630951074 by Jonas Devlieghere
[dsymutil] Compute the output location once per input file (NFC)

Compute the location of the output file just once outside the loop over
the different architectures.
The file was modifiedllvm/tools/dsymutil/dsymutil.cpp
Commit 7bf7b80b1958944f449960325f9a5e446f8d1d22 by Jonas Devlieghere
[dsymutil] Use EXIT_SUCCESS and EXIT_FAILURE (NFC)
The file was modifiedllvm/tools/dsymutil/dsymutil.cpp
Commit 1ec03f3de5d580d85cc256058cc0d2dd254b9e1a by Jonas Devlieghere
[dsymutil] Emit an error when the Mach-O exceeds the 4GB limit.

The Mach-O object file format is limited to 4GB because its used of
32-bit offsets in the header. It is possible for dsymutil to (silently)
emit an invalid binary. Instead of having consumers deal with this, emit
an error instead.
The file was modifiedllvm/tools/dsymutil/dsymutil.cpp
Commit f5bde3d476c2c6aee4f126d84982e8d2f0f7e408 by Vitaly Buka
[NFC][scudo] Avoid cast in test
The file was modifiedcompiler-rt/lib/scudo/standalone/tests/common_test.cpp
Commit 676a789a5bc6d42838d01a1cddf8281dc1e058de by Vitaly Buka
[NFC][OMP] Fix 'unused' warning
The file was modifiedllvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
Commit a08673d04a99efe200fb53f3ef57b5cfb8e513bb by dblaikie
Add a range-based wrapper for std::unique(begin, end, binary_predicate)
The file was modifiedllvm/include/llvm/ADT/STLExtras.h
The file was modifiedllvm/unittests/ADT/STLExtrasTest.cpp
Commit e5b66a373414036db22d19647d913c2571df2701 by dblaikie
lld-coff: Simplify a few lambda uses after 7975dd033cb9
The file was modifiedlld/COFF/Chunks.cpp
Commit a0169b2ed198154117e82bf24ae7238454c2e9a2 by Vitaly Buka
[NFC][scudo] Add paramenters DCHECKs

Reviewed By: hctim

Differential Revision: https://reviews.llvm.org/D103042
The file was modifiedcompiler-rt/lib/scudo/standalone/memtag.h
Commit d881319cc5606baa7668405a296d0960a83a1e4c by thakis
Revert "Do not create LLVM IR `constant`s for objects with dynamic initialisation"

This reverts commit 13dd65b3a1a3ac049b5f3a9712059f7c61649bea.
Breaks check-clang on macOS, see https://reviews.llvm.org/D102693
The file was modifiedclang/lib/Sema/SemaDecl.cpp
The file was removedclang/test/CodeGenCXX/clang-sections-1.cpp
The file was removedclang/test/CodeGenCXX/const-dynamic-init.cpp