SuccessChanges

Summary

  1. [libc] Decouple string functions. (details)
  2. [ELF] Define a reportRangeError() overload for thunks and tidy up recent PPC64 thunk range errors (details)
  3. [flang] Fix analyzed form of type-bound assignment (details)
Commit c92d1aa44b132597d57523a90342b3e620dbdb1e by gyurgyikcp
[libc] Decouple string functions.

This revision removes dependencies that exist between different string functions. This allows for the libc user to use a specific function X of this library without also depending on Y and Z.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D87421
The file was modifiedlibc/src/string/string_utils.h (diff)
The file was modifiedlibc/src/string/strlen.cpp (diff)
The file was modifiedlibc/src/string/strnlen.cpp (diff)
The file was modifiedlibc/src/string/memchr.cpp (diff)
The file was modifiedlibc/src/string/strcat.cpp (diff)
The file was modifiedlibc/src/string/CMakeLists.txt (diff)
The file was modifiedlibc/src/string/strcpy.cpp (diff)
Commit 94921e9f8ad04793638e02a6104f63e06ae62b9e by i
[ELF] Define a reportRangeError() overload for thunks and tidy up recent PPC64 thunk range errors

Prefer `errorOrWarn` to `fatal` for recoverable errors and graceful degradation
when --noinhibit-exec is specified.

Mention the destination symbol, otherwise the diagnostic is not really actionable.
Two errors are not tested but the patch does not intend to add the coverage.

Reviewed By: grimar

Differential Revision: https://reviews.llvm.org/D87486
The file was modifiedlld/ELF/Relocations.cpp (diff)
The file was modifiedlld/ELF/Target.h (diff)
The file was modifiedlld/ELF/Thunks.cpp (diff)
The file was modifiedlld/test/ELF/ppc64-toc-call-to-pcrel-long-jump.s (diff)
Commit ce6dd973ac556a326c38bd7667b4fb448f215d09 by tkeith
[flang] Fix analyzed form of type-bound assignment

Change the analyzed form of type-bound assignment to match that of call
statements. Resolve the binding name to a specific subprogram when
possible by using `GetBindingResolution`. Otherwise leave it as a
type-bound procedure call.

Differential Revision: https://reviews.llvm.org/D87541
The file was addedflang/test/Semantics/defined-ops.f90
The file was modifiedflang/lib/Semantics/expression.cpp (diff)