[all-commits] [llvm/llvm-project] 9fbdf9: Fix up release note; NFC

Aaron Ballman via All-commits all-commits at lists.llvm.org
Wed Aug 30 08:04:35 PDT 2023


  Branch: refs/heads/release/17.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 9fbdf9f8b1046a14323ddb95f7552c10f55b2c17
      https://github.com/llvm/llvm-project/commit/9fbdf9f8b1046a14323ddb95f7552c10f55b2c17
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst

  Log Message:
  -----------
  Fix up release note; NFC


  Commit: a7346857934d6cecb21ddbd4100bbac1ce73cafc
      https://github.com/llvm/llvm-project/commit/a7346857934d6cecb21ddbd4100bbac1ce73cafc
  Author: Khem Raj <raj.khem at gmail.com>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M llvm/tools/llvm-exegesis/lib/X86/Target.cpp
    M llvm/unittests/tools/llvm-exegesis/X86/TargetTest.cpp

  Log Message:
  -----------
  [llvm-exegesis] Use mmap2 when mmap is unavailable to fix riscv32 build

Some 32-bit architectures don't have mmap and define mmap2 instead.
E.g. on riscv32 we may get

```
| /mnt/b/yoe/master/build/tmp/work-shared/llvm-project-source-17.0.0-r0/git/llvm/tools/llvm-exegesis/lib/X86/Target.cpp:1116:19: error: use of undeclared identifier 'SYS_mmap'
|  1116 |   generateSyscall(SYS_mmap, MmapCode);
|       |                   ^
| /mnt/b/yoe/master/build/tmp/work-shared/llvm-project-source-17.0.0-r0/git/llvm/tools/llvm-exegesis/lib/X86/Target.cpp:1134:19: error: use of undeclared identifier 'SYS_mmap'
|  1134 |   generateSyscall(SYS_mmap, GeneratedCode);                                                                                                                                       |       |                   ^
| 1 warning and 2 errors generated.
```

Co-Authored-By: Fangrui Song <i at maskray.me>
Differential Revision: https://reviews.llvm.org/D158375

(cherry picked from commit 01a92f06f23585f15b3e83b7c378d0df2d91e06b)


  Commit: 5d2eda78bce64798fa0fb298f0726b2baa5c9e40
      https://github.com/llvm/llvm-project/commit/5d2eda78bce64798fa0fb298f0726b2baa5c9e40
  Author: Erik Desjardins <erikdesjardinspublic at gmail.com>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
    M llvm/test/Transforms/ConstraintElimination/large-constant-ints.ll

  Log Message:
  -----------
  [ConstraintElim] fix crash with large constants in mul nsw

Another case of https://github.com/llvm/llvm-project/issues/55085.

The added test would trip an assertion due to calling `getSExtValue()` on a value that doesn't fit in int64_t.

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

(cherry picked from commit 66ec5df3a7f33366455d50769e4e878544becea6)


  Commit: acc6a14413f3edb6661c6d77c2edbd9fa804e458
      https://github.com/llvm/llvm-project/commit/acc6a14413f3edb6661c6d77c2edbd9fa804e458
  Author: Erik Desjardins <erikdesjardinspublic at gmail.com>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M llvm/test/Transforms/ConstraintElimination/large-constant-ints.ll

  Log Message:
  -----------
  [Tests][ConstraintElim] autogen newly-added case in large-constant-ints.ll (NFC)

I forgot to do this in 66ec5df3a7f33366455d50769e4e878544becea6 / https://reviews.llvm.org/D158810.

Since this is testing for an assertion failure, the test checks don't matter, but we might as well avoid unnecessary churn the next time someone modifies this test.

(cherry picked from commit df112cba034eefb86d0e92e18518f5e944d58c37)


  Commit: 94af834cb87ff9e04f9b075540dbf9b75e4a4cb3
      https://github.com/llvm/llvm-project/commit/94af834cb87ff9e04f9b075540dbf9b75e4a4cb3
  Author: Phoebe Wang <phoebe.wang at intel.com>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/lib/Target/X86/X86ISelLowering.h
    M llvm/test/CodeGen/X86/bfloat.ll

  Log Message:
  -----------
  [X86][BF16] Lower FP_EXTEND for vector types under AVX512BF16

Fixes #64460

Reviewed By: RKSimon, skan

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

(cherry picked from commit 6688701497ea8e562b769bdb154a40f4a1099abb)


  Commit: d469d5ce19a8134148c35451558d5a81870ca871
      https://github.com/llvm/llvm-project/commit/d469d5ce19a8134148c35451558d5a81870ca871
  Author: Vassil Vassilev <v.g.vassilev at gmail.com>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M clang/lib/Interpreter/IncrementalExecutor.cpp
    M clang/unittests/Interpreter/InterpreterTest.cpp

  Log Message:
  -----------
  Reland "[clang-repl] Adapt to the recent dylib-related changes in ORC."

Original commit message:"

ORC splits into separate dylibs symbols coming from the process and symbols
materialized in the Jit. This patch adapts intent of the existing interface and
adds a regression test to make sure both Jit'd and compiled symbols can be found.

Differential revision: https://reviews.llvm.org/D159115
"

This patch disables the test statement on windows as it seems we might have a
bug in the way we model dllimports.

(cherry picked from commit 452cb7f20bc7b976eb6fec4ac9f2d902f4175c08)


  Commit: 8c5c652ed71ba3948f52f707d8022eb5ec87d802
      https://github.com/llvm/llvm-project/commit/8c5c652ed71ba3948f52f707d8022eb5ec87d802
  Author: Takuya Shimizu <shimizu2486 at gmail.com>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticASTKinds.td
    M clang/lib/AST/ExprConstant.cpp
    A clang/test/Misc/constexpr-subobj-init-source-ranges.cpp
    A clang/test/SemaCXX/constexpr-subobj-initialization.cpp

  Log Message:
  -----------
  [clang][ExprConstant] Fix crash on uninitialized base class subobject

This patch fixes the reported regression caused by D146358 through adding notes about an uninitialized base class when we diagnose uninitialized constructor.

This also changes the wording from the old one in order to make it clear that the uninitialized subobject is a base class and its constructor is not called.
Wording changes:
BEFORE: `subobject of type 'Base' is not initialized`
AFTER: `constructor of base class 'Base' is not called`

Fixes https://github.com/llvm/llvm-project/issues/63496

Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D153969


  Commit: 2c9feb07f3370d2f5bab2a4731dd2500079e4ec8
      https://github.com/llvm/llvm-project/commit/2c9feb07f3370d2f5bab2a4731dd2500079e4ec8
  Author: Galen Elias <galenelias at gmail.com>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M clang/lib/Format/UnwrappedLineParser.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [clang-format] Fix braced initializer with templated base class

Fixes #64134.

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

(cherry picked from commit 400da115c58ae19445cfdc871a3f559f160fc5c6)


  Commit: 4dea033c9b9f6393551984061fb1cd036bbeca67
      https://github.com/llvm/llvm-project/commit/4dea033c9b9f6393551984061fb1cd036bbeca67
  Author: dingfei <fding at feysh.com>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/AST/DeclBase.h
    M clang/lib/Serialization/ASTWriterDecl.cpp
    M clang/unittests/AST/ASTImporterTest.cpp
    M clang/unittests/AST/DeclTest.cpp

  Log Message:
  -----------
  [clang] Update NumFunctionDeclBits for FunctionDeclBitfields

NumFunctionDeclBits is not updated when DeductionCandidateKind is
incremented.

Fixes https://github.com/llvm/llvm-project/issues/64171

Reviewed By: cor3ntin, balazske, aaron.ballman

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

(cherry picked from commit 91c4b5550ecfbb7afe7275c341b73a6d3a1bbd78)


  Commit: cf16374055c1eb3367ada29e4e544f84bc588413
      https://github.com/llvm/llvm-project/commit/cf16374055c1eb3367ada29e4e544f84bc588413
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M compiler-rt/lib/asan/asan_interceptors.cpp
    M compiler-rt/lib/asan/asan_interceptors.h
    M compiler-rt/lib/asan/asan_win_dll_thunk.cpp
    M compiler-rt/test/asan/TestCases/atoll_strict.c

  Log Message:
  -----------
  [asan] Intercept atoll and strtoll on Windows

`_MSC_VER>=1800` (Visual Studio 2013) supports atoll/strtoll.
Remove the obsoleted workaround ASAN_INTERCEPT_ATOLL_AND_STRTOLL.

test/asan/TestCases/atoll_strict.c passes but
test/asan/TestCases/strtoll_strict.c doesn't.

(cherry picked from commit 8033231240f223dc7c718d1d27ece2dbcc8057c6)


  Commit: dd230efe703f34678ce52280e50238abf908aaa1
      https://github.com/llvm/llvm-project/commit/dd230efe703f34678ce52280e50238abf908aaa1
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M compiler-rt/lib/asan/asan_interceptors.cpp
    M compiler-rt/lib/msan/msan_interceptors.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
    M compiler-rt/lib/sanitizer_common/symbolizer/scripts/global_symbols.txt
    A compiler-rt/test/sanitizer_common/TestCases/scanf.c
    A compiler-rt/test/sanitizer_common/TestCases/strtol.c

  Log Message:
  -----------
  [sanitizer] Intercept glibc 2.38 __isoc23_* functions

`strtol("0b1", 0, 0)` can be (pre-C23) 0 or (C23) 1.
`sscanf("0b10", "%i", &x)` is similar. glibc 2.38 introduced
`__isoc23_strtol` and `__isoc23_scanf` family functions for binary
compatibility.

When `_ISOC2X_SOURCE` is defined (implied by `_GNU_SOURCE`) or
`__STDC_VERSION__ > 201710L`, `__GLIBC_USE_ISOC2X` is defined to 1 and
these `__isoc23_*` symbols are used.

Add `__isoc23_` versions for the following interceptors:

* sanitizer_common_interceptors.inc implements strtoimax/strtoumax.
  Remove incorrect FIXME about https://github.com/google/sanitizers/issues/321
* asan_interceptors.cpp implements just strtol and strtoll. The default
  `replace_str` mode checks `nptr` is readable and `endptr` is writable.
  atoi reuses the existing strtol interceptor.
* msan_interceptors.cpp implements strtol family functions and their
  `_l` versions. Tested by lib/msan/tests/msan_test.cpp
* sanitizer_common_interceptors.inc implements scanf family functions.

The strtol family functions are spreaded, which is not great, but the
patch (intended for release/17.x) does not attempt to address the issue.

Add symbols to lib/sanitizer_common/symbolizer/scripts/global_symbols.txt to
support both glibc pre-2.38 and 2.38.

When build bots migrate to glibc 2.38+, we will lose test coverage for
non-isoc23 versions since the existing C++ unittests imply `_GNU_SOURCE`.
Add test/sanitizer_common/TestCases/{strtol.c,scanf.c}.
They catch msan false positive in the absence of the interceptors.

Fix https://github.com/llvm/llvm-project/issues/64388
Fix https://github.com/llvm/llvm-project/issues/64946

Link: https://lists.gnu.org/archive/html/info-gnu/2023-07/msg00010.html
("The GNU C Library version 2.38 is now available")

Reviewed By: #sanitizers, vitalybuka, mgorny

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

(cherry picked from commit ad7e2501000da2494860f06a306dfe8c08cc07c3)


  Commit: c8abecdaca4e5d7defd9d3f6c388d64f5ee03e47
      https://github.com/llvm/llvm-project/commit/c8abecdaca4e5d7defd9d3f6c388d64f5ee03e47
  Author: Martin Storsjö <martin at martin.st>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M compiler-rt/test/asan/TestCases/strtoll_strict.c

  Log Message:
  -----------
  [compiler-rt] [test] Adjust an XFAIL for strtoll_strict.c for MinGW targets

8033231240f223dc7c718d1d27ece2dbcc8057c6 made this test pass
in MinGW environments, even if it still is failing in MSVC
environments.

(cherry picked from commit 277fc9475fb89c0b80d4237dbc8d698a55203c0d)


  Commit: b6cf21feeead70805ecd1231827777492034afea
      https://github.com/llvm/llvm-project/commit/b6cf21feeead70805ecd1231827777492034afea
  Author: Brooks Davis <brooks at one-eyed-alien.net>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M compiler-rt/lib/msan/msan_interceptors.cpp

  Log Message:
  -----------
  [msan] Fix compilation on non-glibc

SANITIZER_GLIBC is always defined so should be tested with an if not an
ifdef.

Fixes: ad7e2501000d

Reviewed By: MaskRay

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

(cherry picked from commit 692344d87357ded619d216b265a9375f4326d8fb)


  Commit: 9afe6676833dc0a554463f82e8d5574a0987aa1e
      https://github.com/llvm/llvm-project/commit/9afe6676833dc0a554463f82e8d5574a0987aa1e
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M clang/include/clang/Basic/TargetInfo.h
    M clang/test/CodeGen/attr-target-mv-va-args.c
    M clang/test/CodeGen/unique-internal-linkage-names.cpp

  Log Message:
  -----------
  Function multi-versioning: disable ifunc for ELF targets other than glibc/Android/FreeBSD

Generalize D127933 (Fuchsia special case) to other ELF targets. Ensure
that musl, NetBSD, OpenBSD, etc do not get ifunc codegen which is
unsupported in their rtld.

Link: https://discourse.llvm.org/t/does-ifunc-use-from-llvm-require-os-support/67628
Close: https://github.com/llvm/llvm-project/issues/64631
(cherry picked from commit 0c3a02b8c09bb408a74a638a263e51d67c92ca74)


  Commit: 993681f594dcad4ea279b32bcc0a2acafcd7d7c8
      https://github.com/llvm/llvm-project/commit/993681f594dcad4ea279b32bcc0a2acafcd7d7c8
  Author: Luke Lau <luke at igalia.com>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M llvm/test/CodeGen/RISCV/rvv/rvv-peephole-vmerge-vops.ll

  Log Message:
  -----------
  [RISCV] Add test case showing vmerge fold miscompile with tail policy

Reviewed By: reames

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

(cherry picked from commit 6e532f94eb0e2c9c93a3d75b4cf53bf12ab9f518)


  Commit: 6f1974e04c3c223a812c6181c9d48ea85a472293
      https://github.com/llvm/llvm-project/commit/6f1974e04c3c223a812c6181c9d48ea85a472293
  Author: Luke Lau <luke at igalia.com>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
    M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-vselect.ll
    M llvm/test/CodeGen/RISCV/rvv/rvv-peephole-vmerge-vops.ll

  Log Message:
  -----------
  [RISCV] Don't relax policy to ta when vmerge's VL shrinks during folding

When folding a vmerge into its operands, if the resulting VL is smaller than
what the vmerge had originally then what was previously in its body then gets
moved to the tail. In that case, we can't relax the tail policy to agnostic
when the merge operand is undefined, since we need to preserve these elements
past the new VL.

Fixes https://github.com/llvm/llvm-project/issues/64754

Reviewed By: craig.topper, reames

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

(cherry picked from commit 007b41b3939832b6938bb1ba91e9febebf93d3b8)


  Commit: 1440745b0a641205a6db6e99e68723c52d1c582b
      https://github.com/llvm/llvm-project/commit/1440745b0a641205a6db6e99e68723c52d1c582b
  Author: Owen Pan <owenpiano at gmail.com>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M clang/lib/Format/UnwrappedLineParser.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [clang-format] Exclude kw_decltype in RemoveParentheses

>From https://en.cppreference.com/w/cpp/language/decltype:
Note that if the name of an object is parenthesized, it is treated as an
ordinary lvalue expression, thus decltype(x) and decltype((x)) are often
different types.

Fixes #64786.

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

(cherry picked from commit e3a79503a30f8c9d8fba79f3e5427bb895f320cf)


  Commit: 5a60d716ca5b9c713b6076f66fdb09f000c5c9f8
      https://github.com/llvm/llvm-project/commit/5a60d716ca5b9c713b6076f66fdb09f000c5c9f8
  Author: Jon Roelofs <jonathan_roelofs at apple.com>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M clang/lib/StaticAnalyzer/Frontend/CMakeLists.txt
    M clang/tools/clang-fuzzer/CMakeLists.txt

  Log Message:
  -----------
  [CMake] Add a few more missing dependencies on ClangDriverOptions

This often breaks modules-enabled bootstrap builds.

(cherry picked from commit 1e4d6122cda6529781ecf467c2ae84e5dd41acdf)


  Commit: b8444b613b3aa465b9038a0e043988a011abbbf0
      https://github.com/llvm/llvm-project/commit/b8444b613b3aa465b9038a0e043988a011abbbf0
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticGroups.td
    A clang/test/Sema/empty-init.c

  Log Message:
  -----------
  Silently accept -Wgnu-empty-initializer

https://github.com/llvm/llvm-project/commit/5d8aaad4452f60ba8902e921d9bed606713a8f26
removed the warning group as the functionality is no longer a GNU
extension. However, users have asked for the warning group to be
supported so that code transitioning from Clang 16 to Clang 17 has an
easier migration path when compiling with -Werror. This patch restores
the warning group, but as an ignored warning group because the
functionality is now always considered to be a C extension rather than
a GNU extension. This allows users to do:

  -Werror -pedantic -Wno-gnu-empty-intializer -Wno-c2x-extensions

to silence the diagnostics in both Clang 16 and Clang 17.

Fixes https://github.com/llvm/llvm-project/issues/64357
Differential Revision: https://reviews.llvm.org/D157503

(cherry picked from commit 151214b40d869455666ca76548a9e3ad639f79de)


Compare: https://github.com/llvm/llvm-project/compare/da76a22ae9ff...b8444b613b3a


More information about the All-commits mailing list