[all-commits] [llvm/llvm-project] bb66d8: [clang][WebAssembly] Link crt1 even in case of -sh...

Utkarsh Saxena via All-commits all-commits at lists.llvm.org
Mon Nov 20 00:54:12 PST 2023


  Branch: refs/heads/release/17.x
  Home:   https://github.com/llvm/llvm-project
  Commit: bb66d8f8f73b07f06f2aed2a906f3c08679ed605
      https://github.com/llvm/llvm-project/commit/bb66d8f8f73b07f06f2aed2a906f3c08679ed605
  Author: YAMAMOTO Takashi <yamamoto at midokura.com>
  Date:   2023-11-20 (Mon, 20 Nov 2023)

  Changed paths:
    M clang/lib/Driver/ToolChains/WebAssembly.cpp
    M clang/test/Driver/wasm-toolchain.c

  Log Message:
  -----------
  [clang][WebAssembly] Link crt1 even in case of -shared

This allows -mexec-model=reactor -shared produces a library module
with _initialize entrypoint, which is preferrable over __wasm_call_ctors.

This partially reverts https://reviews.llvm.org/D153293

Discussion: https://github.com/dicej/component-linking-demo/issues/3

Reviewed By: sbc100

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

(cherry picked from commit 989ce069a4638fd561bebc95f478ca9e45154fec)


  Commit: e6de86cb9ef868c652d8932db2c08f953f47a1e2
      https://github.com/llvm/llvm-project/commit/e6de86cb9ef868c652d8932db2c08f953f47a1e2
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2023-11-20 (Mon, 20 Nov 2023)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/include/clang/Frontend/DependencyOutputOptions.h
    M clang/include/clang/Frontend/Utils.h
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Frontend/DependencyFile.cpp
    R clang/test/Driver/canonical-system-headers.c
    R clang/test/Preprocessor/Inputs/canonical-system-headers/a.h
    R clang/test/Preprocessor/canonical-system-headers.c

  Log Message:
  -----------
  Revert "Reland [clang] Canonicalize system headers in dependency file when -canonical-prefixes" (#71697)

This reverts commit 578a4716f549167165a2ec3bac89c86706136d4e.

This causes multiple issues. Compile time slowdown due to more path
canonicalization, and weird behavior on Windows.

Will reland under a separate flag `-f[no-]canonical-system-headers` to
match gcc in the future and further limit when it's passed by default.

Fixes #70011.


  Commit: b5cbb35408a3901900dc2b2ca6adda80a77ea093
      https://github.com/llvm/llvm-project/commit/b5cbb35408a3901900dc2b2ca6adda80a77ea093
  Author: Ilya Biryukov <ibiryukov at google.com>
  Date:   2023-11-20 (Mon, 20 Nov 2023)

  Changed paths:
    M libcxx/include/__memory/shared_ptr.h
    A libcxx/test/libcxx/memory/shared_ptr_array.pass.cpp

  Log Message:
  -----------
  [libc++] Use correct size for deallocation of arrays in shared_ptr (#68233)

Fixes #68051.

Current implementation passes the number of `_AlignedStorage` objects
when it calls to `allocate` and the number of **bytes** on `deallocate`.
This only applies to allocations that allocate control block and the
storage together, i.e. `make_shared` and `allocate_shared`.

Found by ASan under Clang combined with `-fsized-deallocation`.

(cherry picked from commit f722db02d359e29ca001b78197ee1a275f8c3d7c)


  Commit: 76c7e0e1e2d15706cb9ad28b607e937df5e00c24
      https://github.com/llvm/llvm-project/commit/76c7e0e1e2d15706cb9ad28b607e937df5e00c24
  Author: Utkarsh Saxena <usaxena95 at gmail.com>
  Date:   2023-11-20 (Mon, 20 Nov 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaOverload.cpp
    A clang/test/CXX/over/over.match/over.match.funcs/over.match.oper/p2468R2.cppm
    M clang/test/CXX/over/over.match/over.match.funcs/over.match.oper/p3-2a.cpp

  Log Message:
  -----------
  Use the correct namespace for looking up matching operator!= (#68922)

`S.getScopeForContext` determins the **active** scope associated with
the given `declContext`.
This fails to find the matching `operator!=` if candidate `operator==`
was found via ADL since that scope is not active.

Instead, just directly lookup using the namespace decl of `operator==`

Fixes #68901

(cherry picked from commit 9330261143ccbe947ef0687fd20747ba47f26879)


  Commit: 442401f7c0ca6939a6c4e953486ee370f6470e26
      https://github.com/llvm/llvm-project/commit/442401f7c0ca6939a6c4e953486ee370f6470e26
  Author: Utkarsh Saxena <usx at google.com>
  Date:   2023-11-20 (Mon, 20 Nov 2023)

  Changed paths:
    M clang/test/CXX/over/over.match/over.match.funcs/over.match.oper/p3-2a.cpp

  Log Message:
  -----------
  remove tests from bad merge


Compare: https://github.com/llvm/llvm-project/compare/98bfdac5ce82...442401f7c0ca


More information about the All-commits mailing list