SuccessChanges

Summary

  1. [lld/mac] clarify comment (details)
  2. DirectoryWatcher: also wait for the notifier thread (details)
  3. [SPARC] Legalize truncation and extension between fp128 and half (details)
  4. [clang-format] Adds a formatter for aligning arrays of structs (details)
  5. [fuzzer] Fix build on musl (details)
  6. [ELF] Add OVERWRITE_SECTIONS command (details)
Commit 7d4c8a2b8f16a2d1cf8120c75d941e99b8a8200a by thakis
[lld/mac] clarify comment

This is a "we should do X in the future" fixme, not an "X might go wrong"
fixme.
The file was modifiedlld/MachO/UnwindInfoSection.cpp
Commit 527a1821e6f8e115db3335a3341c7ac491725a0d by Saleem Abdulrasool
DirectoryWatcher: also wait for the notifier thread

Ultimately the DirectoryWatcher is not ready until the notifier thread
is also active.  Failure to wait for the notifier thread may result in
loss of events.  While this is not catastrophic in practice, the tests
are sensitive to this as depending on the thread scheduler, the thread
may fail to being execution before the operations are completed by the
fixture.  Running this in a tight loop shows no regressions locally as
previously, but this failure mode was been sighted once on a builder.
The file was modifiedclang/lib/DirectoryWatcher/windows/DirectoryWatcher-windows.cpp
Commit 5be3a1a06483a5958a1a5dbffda386fd4ce579fe by thatlemon
[SPARC] Legalize truncation and extension between fp128 and half

Lower truncations and expansions between fp128 and half values into libcalls.
Expand truncating stores into two separate truncation and a store operations.

Reviewed By: jrtc27

Differential Revision: https://reviews.llvm.org/D104185
The file was modifiedllvm/test/CodeGen/SPARC/fp16-promote.ll
The file was modifiedllvm/lib/Target/Sparc/SparcISelLowering.cpp
Commit 673c5ba58497298a684f8b8dfddbfb11cd89950e by bjoern
[clang-format] Adds a formatter for aligning arrays of structs

This adds a new formatter to arrange array of struct initializers into
neat columns.

Differential Revision: https://reviews.llvm.org/D101868
The file was modifiedclang/docs/ClangFormatStyleOptions.rst
The file was modifiedclang/lib/Format/FormatToken.h
The file was modifiedclang/lib/Format/WhitespaceManager.h
The file was addedclang/test/Format/struct-array-initializer.cpp
The file was modifiedclang/lib/Format/TokenAnnotator.cpp
The file was modifiedclang/unittests/Format/FormatTest.cpp
The file was modifiedclang/include/clang/Format/Format.h
The file was modifiedclang/lib/Format/TokenAnnotator.h
The file was modifiedclang/lib/Format/Format.cpp
The file was modifiedclang/docs/ReleaseNotes.rst
The file was modifiedclang/lib/Format/WhitespaceManager.cpp
Commit 60e32a1f34e9ea60155a98bbe6ee5ec2a383efa3 by i
[fuzzer] Fix build on musl

cstddef is needed for size_t definition.
(Multiple headers can provide size_t but none of them exists.)

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D96213
The file was modifiedcompiler-rt/lib/fuzzer/FuzzerInterceptors.cpp
Commit 899fdf548eee427fe08e462955e6f817ca949730 by i
[ELF] Add OVERWRITE_SECTIONS command

This implements https://sourceware.org/bugzilla/show_bug.cgi?id=26404

An `OVERWRITE_SECTIONS` command is a `SECTIONS` variant which contains several
output section descriptions. The output sections do not have specify an order.
Similar to `INSERT [BEFORE|AFTER]`, `LinkerScript::hasSectionsCommand` is not
set, so the built-in rules (see `docs/ELF/linker_script.rst`) still apply.
`OVERWRITE_SECTIONS` can be more convenient than `INSERT` because it does not
need an anchor section.

The initial syntax is intentionally narrow to facilitate backward compatible
extensions in the future. Symbol assignments cannot be used.

This feature is versatile. To list a few usage:

* Use `section : { KEEP(...) }` to retain input sections under GC
* Define encapsulation symbols (start/end) for an output section
* Use `section : ALIGN(...) : { ... }` to overalign an output section (similar to ld64 `-sectalign`)

When an output section is specified by both `OVERWRITE_SECTIONS` and
`INSERT`, `INSERT` is processed after overwrite sections. To make this work,
this patch changes `InsertCommand` to use name based matching instead of pointer
based matching. (This may cause a difference when `INSERT` moves one output
section more than once. Such duplicate commands should not be used in practice
(seems that in GNU ld the output sections may just disappear).)

A linker script can be used without -T/--script. The traditional `SECTIONS`
commands are concatenated, so a wrong rule can be more noticeable from the
section order. This feature if misused can be less noticeable, just like
`INSERT`.

Differential Revision: https://reviews.llvm.org/D103303
The file was modifiedlld/docs/ELF/linker_script.rst
The file was modifiedlld/ELF/ScriptParser.cpp
The file was modifiedlld/docs/ReleaseNotes.rst
The file was addedlld/test/ELF/linkerscript/overwrite-sections-discard.test
The file was addedlld/test/ELF/linkerscript/overwrite-sections.test
The file was modifiedlld/ELF/LinkerScript.h
The file was modifiedlld/test/ELF/linkerscript/insert-duplicate.test
The file was modifiedlld/ELF/LinkerScript.cpp