Skip to content

Commit f4ee7fa

Browse files
committed
LLVM18-xtensa
1 parent 0528673 commit f4ee7fa

File tree

25,112 files changed

+2648089
-992638
lines changed

Some content is hidden

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

25,112 files changed

+2648089
-992638
lines changed

clang/CMakeLists.txt

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,23 @@ endif()
167167
include(CheckIncludeFile)
168168
check_include_file(sys/resource.h CLANG_HAVE_RLIMITS)
169169

170+
# This check requires _GNU_SOURCE on linux
171+
check_include_file(dlfcn.h CLANG_HAVE_DLFCN_H)
172+
if( CLANG_HAVE_DLFCN_H )
173+
include(CheckLibraryExists)
174+
include(CheckSymbolExists)
175+
check_library_exists(dl dlopen "" HAVE_LIBDL)
176+
if( HAVE_LIBDL )
177+
list(APPEND CMAKE_REQUIRED_LIBRARIES dl)
178+
endif()
179+
list(APPEND CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
180+
check_symbol_exists(dladdr dlfcn.h CLANG_HAVE_DLADDR)
181+
list(REMOVE_ITEM CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
182+
if( HAVE_LIBDL )
183+
list(REMOVE_ITEM CMAKE_REQUIRED_LIBRARIES dl)
184+
endif()
185+
endif()
186+
170187
set(CLANG_RESOURCE_DIR "" CACHE STRING
171188
"Relative directory from the Clang binary to its resource files.")
172189

@@ -176,6 +193,12 @@ set(C_INCLUDE_DIRS "" CACHE STRING
176193
set(GCC_INSTALL_PREFIX "" CACHE PATH "Directory where gcc is installed." )
177194
set(DEFAULT_SYSROOT "" CACHE STRING
178195
"Default <path> to all compiler invocations for --sysroot=<path>." )
196+
if(GCC_INSTALL_PREFIX)
197+
message(WARNING "GCC_INSTALL_PREFIX is deprecated and will be removed. Use "
198+
"configuration files (https://clang.llvm.org/docs/UsersManual.html#configuration-files)"
199+
"to specify the default --gcc-install-dir= or --gcc-triple=. --gcc-toolchain= is discouraged. "
200+
"See https://github.com/llvm/llvm-project/pull/77537 for detail.")
201+
endif()
179202

180203
set(ENABLE_LINKER_BUILD_ID OFF CACHE BOOL "pass --build-id to ld")
181204

@@ -290,8 +313,10 @@ endif()
290313
if(NOT DEFINED CLANG_VERSION_PATCHLEVEL)
291314
set(CLANG_VERSION_PATCHLEVEL ${LLVM_VERSION_PATCH})
292315
endif()
293-
# Unlike PACKAGE_VERSION, CLANG_VERSION does not include LLVM_VERSION_SUFFIX.
294-
set(CLANG_VERSION "${CLANG_VERSION_MAJOR}.${CLANG_VERSION_MINOR}.${CLANG_VERSION_PATCHLEVEL}")
316+
if(NOT DEFINED CLANG_VERSION_SUFFIX)
317+
set(CLANG_VERSION_SUFFIX ${LLVM_VERSION_SUFFIX})
318+
endif()
319+
set(CLANG_VERSION "${CLANG_VERSION_MAJOR}.${CLANG_VERSION_MINOR}.${CLANG_VERSION_PATCHLEVEL}${CLANG_VERSION_SUFFIX}")
295320
message(STATUS "Clang version: ${CLANG_VERSION}")
296321

297322
# Configure the Version.inc file.
@@ -455,6 +480,7 @@ get_property(CLANG_TABLEGEN_TARGETS GLOBAL PROPERTY CLANG_TABLEGEN_TARGETS)
455480
add_custom_target(clang-tablegen-targets
456481
DEPENDS
457482
omp_gen
483+
ClangDriverOptions
458484
${CLANG_TABLEGEN_TARGETS})
459485
set_target_properties(clang-tablegen-targets PROPERTIES FOLDER "Misc")
460486
list(APPEND LLVM_COMMON_DEPENDS clang-tablegen-targets)
@@ -648,6 +674,7 @@ if (CLANG_ENABLE_BOOTSTRAP)
648674
CLANG_VERSION_MAJOR
649675
CLANG_VERSION_MINOR
650676
CLANG_VERSION_PATCHLEVEL
677+
CLANG_VERSION_SUFFIX
651678
CLANG_VENDOR
652679
LLVM_VERSION_SUFFIX
653680
LLVM_BINUTILS_INCDIR

clang/CodeOwners.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
Clang Code Owners
33
=================
44

5-
This file is a list of the people responsible for ensuring that patches for a
6-
particular part of Clang are reviewed, either by themself or by someone else.
7-
They are also the gatekeepers for their part of Clang, with the final word on
8-
what goes in or not.
5+
This file is a list of the
6+
`code owners <https://llvm.org/docs/DeveloperPolicy.html#code-owners>`_ for
7+
Clang.
98

109
.. contents::
1110
:depth: 2
@@ -20,7 +19,7 @@ assistance.
2019
All parts of Clang not covered by someone else
2120
----------------------------------------------
2221
| Aaron Ballman
23-
| aaron\@aaronballman.com (email), aaron.ballman (Phabricator), AaronBallman (GitHub)
22+
| aaron\@aaronballman.com (email), aaron.ballman (Phabricator), AaronBallman (GitHub), AaronBallman (Discourse), aaronballman (Discord), AaronBallman (IRC)
2423
2524

2625
Contained Components
@@ -76,7 +75,7 @@ Modules & serialization
7675
Templates
7776
~~~~~~~~~
7877
| Erich Keane
79-
| erich.keane\@intel.com (email), ErichKeane (Phabricator), erichkeane (GitHub)
78+
| ekeane\@nvidia.com (email), ErichKeane (Phabricator), erichkeane (GitHub)
8079
8180

8281
Debug information
@@ -175,7 +174,7 @@ compiler.
175174
Attributes
176175
~~~~~~~~~~
177176
| Erich Keane
178-
| erich.keane\@intel.com (email), ErichKeane (Phabricator), erichkeane (GitHub)
177+
| ekeane\@nvidia.com (email), ErichKeane (Phabricator), erichkeane (GitHub)
179178
180179

181180
Inline assembly
@@ -223,7 +222,7 @@ standard, when fixing standards bugs, or when implementing a new standard featur
223222
C conformance
224223
~~~~~~~~~~~~~
225224
| Aaron Ballman
226-
| aaron\@aaronballman.com (email), aaron.ballman (Phabricator), AaronBallman (GitHub)
225+
| aaron\@aaronballman.com (email), aaron.ballman (Phabricator), AaronBallman (GitHub), AaronBallman (Discourse), aaronballman (Discord), AaronBallman (IRC)
227226
228227

229228
C++ conformance

clang/bindings/python/README.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ You may need to set CLANG_LIBRARY_PATH so that the Clang library can be
88
found. The unit tests are designed to be run with any standard test
99
runner. For example:
1010
--
11-
$ env PYTHONPATH=$(echo ~/llvm/tools/clang/bindings/python/) \
11+
$ env PYTHONPATH=$(echo ~/llvm/clang/bindings/python/) \
1212
CLANG_LIBRARY_PATH=$(llvm-config --libdir) \
13-
python -m unittest discover -v
13+
python3 -m unittest discover -v
1414
tests.cindex.test_index.test_create ... ok
1515
...
1616

0 commit comments

Comments
 (0)