Skip to content

Commit 957154e

Browse files
committed
Merge from 'main' to 'sycl-web' (34 commits)
CONFLICT (content): Merge conflict in clang/lib/Driver/ToolChains/Clang.cpp
2 parents b1cf827 + c4a0197 commit 957154e

File tree

501 files changed

+11418
-30573
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

501 files changed

+11418
-30573
lines changed

.github/workflows/release-binaries.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -226,14 +226,6 @@ jobs:
226226
id: setup-stage
227227
uses: ./workflows-main/.github/workflows/release-binaries-setup-stage
228228

229-
- name: Setup sccache
230-
uses: hendrikmuhs/ccache-action@ca3acd2731eef11f1572ccb126356c2f9298d35e # v1.2.9
231-
with:
232-
# Default to 2G to workaround: https://github.com/hendrikmuhs/ccache-action/issues/174
233-
max-size: 2G
234-
key: ${{ needs.prepare.outputs.ccache }}-${{ runner.os }}-${{ runner.arch }}-release
235-
variant: ${{ needs.prepare.outputs.ccache }}
236-
237229
- name: Configure
238230
id: build
239231
shell: bash
@@ -246,9 +238,8 @@ jobs:
246238
${{ needs.prepare.outputs.target-cmake-flags }} \
247239
-C clang/cmake/caches/Release.cmake \
248240
-DBOOTSTRAP_LLVM_PARALLEL_LINK_JOBS=1 \
249-
-DBOOTSTRAP_CPACK_PACKAGE_FILE_NAME="${{ needs.prepare.outputs.release-binary-basename }}" \
250-
-DCMAKE_C_COMPILER_LAUNCHER=$CCACHE_BIN \
251-
-DCMAKE_CXX_COMPILER_LAUNCHER=$CCACHE_BIN
241+
-DBOOTSTRAP_CPACK_PACKAGE_FILE_NAME="${{ needs.prepare.outputs.release-binary-basename }}"
242+
252243
- name: Build
253244
shell: bash
254245
run: |

bolt/test/AArch64/pad-before-funcs.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# RUN: llvm-bolt %t.exe -o %t.bolt.4.4 --pad-funcs-before=_start:4 --pad-funcs=_start:4
1616
# RUN: llvm-bolt %t.exe -o %t.bolt.4.8 --pad-funcs-before=_start:4 --pad-funcs=_start:8
1717

18-
# RUN: not llvm-bolt %t.exe -o %t.bolt.8 --pad-funcs-before=_start:1 2>&1 | FileCheck --check-prefix=CHECK-BAD-ALIGN %s
18+
# RUN: not llvm-bolt %t.exe -o %t.bolt.1 --pad-funcs-before=_start:1 2>&1 | FileCheck --check-prefix=CHECK-BAD-ALIGN %s
1919

2020
# CHECK-BAD-ALIGN: user-requested 1 padding bytes before function _start(*2) is not a multiple of the minimum function alignment (4).
2121

clang/CMakeLists.txt

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -437,18 +437,16 @@ if(NOT LLVM_STATIC_LINK_CXX_STDLIB)
437437
set(HAVE_CLANG_REPL_SUPPORT ON)
438438
endif()
439439

440-
option(CLANG_ENABLE_ARCMT "Build ARCMT." ON)
440+
option(CLANG_ENABLE_OBJC_REWRITER "Build the Objective-C rewriter tool" OFF)
441+
441442
option(CLANG_ENABLE_STATIC_ANALYZER
442443
"Include static analyzer in clang binary." ON)
443444

444445
option(CLANG_ENABLE_PROTO_FUZZER "Build Clang protobuf fuzzer." OFF)
445446

446-
if(NOT CLANG_ENABLE_STATIC_ANALYZER AND CLANG_ENABLE_ARCMT)
447-
message(FATAL_ERROR "Cannot disable static analyzer while enabling ARCMT or Z3")
448-
endif()
449-
450-
if(CLANG_ENABLE_ARCMT)
451-
set(CLANG_ENABLE_OBJC_REWRITER ON)
447+
if (DEFINED CLANG_ENABLE_ARCMT)
448+
set(CLANG_ENABLE_OBJC_REWRITER ${CLANG_ENABLE_ARCMT})
449+
message(DEPRECATION "'CLANG_ENABLE_ARCMT' is deprecated as ARCMigrate has been removed from Clang. Please use 'CLANG_ENABLE_OBJC_REWRITER' instead to enable or disable the Objective-C rewriter.")
452450
endif()
453451

454452
# This option is a stop-gap, we should commit to removing this as

clang/cmake/caches/Android.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
set(LLVM_TARGETS_TO_BUILD X86 CACHE STRING "")
44

5-
set(CLANG_ENABLE_ARCMT OFF CACHE BOOL "")
65
set(CLANG_ENABLE_STATIC_ANALYZER OFF CACHE BOOL "")
76
set(CLANG_TIDY_ENABLE_STATIC_ANALYZER OFF CACHE BOOL "")
87
set(CLANG_VENDOR Android CACHE STRING "")

clang/cmake/caches/Fuchsia-stage2.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ set(CLANG_DEFAULT_LINKER lld CACHE STRING "")
4444
set(CLANG_DEFAULT_OBJCOPY llvm-objcopy CACHE STRING "")
4545
set(CLANG_DEFAULT_RTLIB compiler-rt CACHE STRING "")
4646
set(CLANG_DEFAULT_UNWINDLIB libunwind CACHE STRING "")
47-
set(CLANG_ENABLE_ARCMT OFF CACHE BOOL "")
4847
set(CLANG_ENABLE_STATIC_ANALYZER ON CACHE BOOL "")
4948
set(CLANG_PLUGIN_SUPPORT OFF CACHE BOOL "")
5049

clang/cmake/caches/Fuchsia.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ set(CLANG_DEFAULT_LINKER lld CACHE STRING "")
8484
set(CLANG_DEFAULT_OBJCOPY llvm-objcopy CACHE STRING "")
8585
set(CLANG_DEFAULT_RTLIB compiler-rt CACHE STRING "")
8686
set(CLANG_DEFAULT_UNWINDLIB libunwind CACHE STRING "")
87-
set(CLANG_ENABLE_ARCMT OFF CACHE BOOL "")
8887
set(CLANG_ENABLE_STATIC_ANALYZER OFF CACHE BOOL "")
8988
set(CLANG_PLUGIN_SUPPORT OFF CACHE BOOL "")
9089

clang/docs/ReleaseNotes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ latest release, please see the `Clang Web Site <https://clang.llvm.org>`_ or the
3434
Potentially Breaking Changes
3535
============================
3636

37+
- The Objective-C ARC migrator (ARCMigrate) has been removed.
38+
3739
C/C++ Language Potentially Breaking Changes
3840
-------------------------------------------
3941

clang/include/clang-c/Index.h

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -5919,66 +5919,6 @@ CINDEX_LINKAGE const char *clang_EvalResult_getAsStr(CXEvalResult E);
59195919
* Disposes the created Eval memory.
59205920
*/
59215921
CINDEX_LINKAGE void clang_EvalResult_dispose(CXEvalResult E);
5922-
/**
5923-
* @}
5924-
*/
5925-
5926-
/** \defgroup CINDEX_REMAPPING Remapping functions
5927-
*
5928-
* @{
5929-
*/
5930-
5931-
/**
5932-
* A remapping of original source files and their translated files.
5933-
*/
5934-
typedef void *CXRemapping;
5935-
5936-
/**
5937-
* Retrieve a remapping.
5938-
*
5939-
* \param path the path that contains metadata about remappings.
5940-
*
5941-
* \returns the requested remapping. This remapping must be freed
5942-
* via a call to \c clang_remap_dispose(). Can return NULL if an error occurred.
5943-
*/
5944-
CINDEX_LINKAGE CXRemapping clang_getRemappings(const char *path);
5945-
5946-
/**
5947-
* Retrieve a remapping.
5948-
*
5949-
* \param filePaths pointer to an array of file paths containing remapping info.
5950-
*
5951-
* \param numFiles number of file paths.
5952-
*
5953-
* \returns the requested remapping. This remapping must be freed
5954-
* via a call to \c clang_remap_dispose(). Can return NULL if an error occurred.
5955-
*/
5956-
CINDEX_LINKAGE
5957-
CXRemapping clang_getRemappingsFromFileList(const char **filePaths,
5958-
unsigned numFiles);
5959-
5960-
/**
5961-
* Determine the number of remappings.
5962-
*/
5963-
CINDEX_LINKAGE unsigned clang_remap_getNumFiles(CXRemapping);
5964-
5965-
/**
5966-
* Get the original and the associated filename from the remapping.
5967-
*
5968-
* \param original If non-NULL, will be set to the original filename.
5969-
*
5970-
* \param transformed If non-NULL, will be set to the filename that the original
5971-
* is associated with.
5972-
*/
5973-
CINDEX_LINKAGE void clang_remap_getFilenames(CXRemapping, unsigned index,
5974-
CXString *original,
5975-
CXString *transformed);
5976-
5977-
/**
5978-
* Dispose the remapping.
5979-
*/
5980-
CINDEX_LINKAGE void clang_remap_dispose(CXRemapping);
5981-
59825922
/**
59835923
* @}
59845924
*/

clang/include/clang/ARCMigrate/ARCMT.h

Lines changed: 0 additions & 130 deletions
This file was deleted.

clang/include/clang/ARCMigrate/ARCMTActions.h

Lines changed: 0 additions & 76 deletions
This file was deleted.

0 commit comments

Comments
 (0)