SuccessChanges

Summary

  1. Revert "[SelectionDAG] Remove unused FP constant in getNegatedExpression" (details)
  2. [LLD][PowerPC] Add support for R_PPC64_TPREL34 used in TLS Local Exec (details)
  3. [libc] Fix typo in platform_defs.h.inc (details)
  4. [libc] Add missing LibcFPTestHelpers library (details)
  5. [libc] Add missing TableGen dependency (details)
  6. [analyzer][StdLibraryFunctionsChecker] Elaborate the summary of fread and fwrite (details)
Commit e1669843f2aaf1e4929afdd8f125c14536d27664 by qiucofan
Revert "[SelectionDAG] Remove unused FP constant in getNegatedExpression"

2508ef01 doesn't totally fix the issue since we did not handle the case
when unused temporary negated result is the same with the result, which
is found by address sanitizer.
The file was modifiedllvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp (diff)
The file was removedllvm/test/CodeGen/X86/pr47517.ll
Commit 65f6810d3a4b0ef1fdaad49e808459fbd133bb20 by stefanp
[LLD][PowerPC] Add support for R_PPC64_TPREL34 used in TLS Local Exec

Add Thread Local Storage Local Exec support to LLD. This is to support PC Relative addressing of Local Exec.
The patch teaches LLD to handle:
```
paddi r9, r13, x1@tprel
```
The relocation is:
```
R_PPC_TPREL34
```

Reviewed By: NeHuang, MaskRay

Differential Revision: https://reviews.llvm.org/D86608
The file was modifiedlld/ELF/Arch/PPC64.cpp (diff)
The file was addedlld/test/ELF/ppc64-tls-pcrel-le.s
Commit 85763e0758fbd238c81f233c6f9510e81c7de177 by gchatelet
[libc] Fix typo in platform_defs.h.inc

Differential Revision: https://reviews.llvm.org/D87687
The file was addedlibc/config/linux/platform_defs.h.inc
The file was removedlibc/config/linux/platfrom_defs.h.inc
The file was modifiedlibc/src/__support/CMakeLists.txt (diff)
Commit 00d6e7116c208b06e4c85bb58a40e76412be65a6 by gchatelet
[libc] Add missing LibcFPTestHelpers library

Differential Revision: https://reviews.llvm.org/D87690
The file was modifiedlibc/utils/MPFRWrapper/CMakeLists.txt (diff)
Commit e328456a9e6fa8c1ef05e183c1506ed837005847 by gchatelet
[libc] Add missing TableGen dependency

Differential Revision: https://reviews.llvm.org/D87689
The file was modifiedlibc/utils/LibcTableGenUtil/CMakeLists.txt (diff)
Commit a012bc4c42e4408a18e4c4d67306b79c576df961 by gabor.marton
[analyzer][StdLibraryFunctionsChecker] Elaborate the summary of fread and fwrite

Add the BufferSize argument constraint to fread and fwrite. This change
itself makes it possible to discover a security critical case, described
in SEI-CERT ARR38-C.

We also add the not-null constraint on the 3rd arguments.

In this patch, I also remove those lambdas that don't take any
parameters (Fwrite, Fread, Getc), thus making the code better
structured.

Differential Revision: https://reviews.llvm.org/D87081
The file was modifiedclang/test/Analysis/analyzer-enabled-checkers.c (diff)
The file was modifiedclang/test/Analysis/Inputs/system-header-simulator.h (diff)
The file was modifiedclang/include/clang/StaticAnalyzer/Checkers/Checkers.td (diff)
The file was addedclang/test/Analysis/std-c-library-functions-vs-stream-checker.c
The file was modifiedclang/test/Analysis/std-c-library-functions-arg-constraints.c (diff)
The file was modifiedclang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp (diff)