From 6f955e96a02425dddea66335613a66cd9f08b851 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 3 Dec 2022 08:27:44 -0800 Subject: clang: Update to 15.0.6 Drop backported patches already available in this release This brings following changes * 088f33605d8a [CodeGen][ARM] Fix ARMABIInfo::EmitVAAarg crash with empty record type variadic arg * abcd0341d846 [ELF] Handle GCC collect2 -plugin-opt= on Windows * e6e61e9b2ef7 Revert "Reapply: Add an error message to the default SIGPIPE handler" * 25a36ca5c791 Bump version to 15.0.6 * 154e88af7ec9 Bump version to 15.0.5 * a39989663758 [VectorUtils] Skip interleave members with diff type and alloca sizes. * dc8f6ffc3bf2 [lldb] Get rid of __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS * 392963bb1daf [lldb] Fix 'error: non-const lvalue...' caused by SWIG 4.1.0 * 68799e789fc5 [GlobalOpt] Don't remove inalloca from varargs functions * 11c3a21f8d1b [analyzer] Workaround crash on encountering Class non-type template parameters * 0988addf2680 Link libclangBasic against libatomic when necessary. * 4c3d83810ad7 Link liblldCOFF against libatomic when necessary * d75ae21044ad Set LLVM_ATOMIC_LIB variable for convenient linking against libatomic * 6750e341b076 [TypePromotion] Replace Zext to Truncate for the case src bitwidth is larger * 58ba50a52ede [cmake] Add missing CMakePushCheckState include to FindLibEdit.cmake * 931b6d51d84e Reenable POSIX builtin library functions in gnu2x mode * c8e7a87b1ed6 [CMake] Fix -Wstrict-prototypes Signed-off-by: Khem Raj --- conf/layer.conf | 2 +- recipes-devtools/clang/clang.inc | 4 +- .../clang/clang/0035-lldb-fix-swig-error.patch | 30 -------------- ...-dc8f6ffc3bf297098a1dfd3fbce801afbe9f5238.patch | 46 ---------------------- recipes-devtools/clang/common.inc | 2 - 5 files changed, 3 insertions(+), 81 deletions(-) delete mode 100644 recipes-devtools/clang/clang/0035-lldb-fix-swig-error.patch delete mode 100644 recipes-devtools/clang/clang/0036-dc8f6ffc3bf297098a1dfd3fbce801afbe9f5238.patch diff --git a/conf/layer.conf b/conf/layer.conf index 558f88d..4298fed 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -31,7 +31,7 @@ INHERIT += "clang" # Do not include clang in SDK unless user wants to CLANGSDK ??= "0" -LLVMVERSION = "15.0.4" +LLVMVERSION = "15.0.6" require conf/nonclangable.conf require conf/nonscanable.conf diff --git a/recipes-devtools/clang/clang.inc b/recipes-devtools/clang/clang.inc index 74e929f..858ab57 100644 --- a/recipes-devtools/clang/clang.inc +++ b/recipes-devtools/clang/clang.inc @@ -6,9 +6,9 @@ LLVM_GIT_PROTOCOL ?= "https" MAJOR_VER = "15" MINOR_VER = "0" -PATCH_VER = "4" +PATCH_VER = "6" -SRCREV ?= "5c68a1cb123161b54b72ce90e7975d95a8eaf2a4" +SRCREV ?= "088f33605d8a61ff519c580a71b1dd57d16a03f8" PV = "${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}" BRANCH = "release/15.x" diff --git a/recipes-devtools/clang/clang/0035-lldb-fix-swig-error.patch b/recipes-devtools/clang/clang/0035-lldb-fix-swig-error.patch deleted file mode 100644 index 460680b..0000000 --- a/recipes-devtools/clang/clang/0035-lldb-fix-swig-error.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 392963bb1daf7ec8822a0f02929a8ada17eb0a0a Mon Sep 17 00:00:00 2001 -From: Jitka Plesnikova -Date: Wed, 21 Sep 2022 11:42:46 +0200 -Subject: [PATCH] [lldb] Fix 'error: non-const lvalue...' caused by SWIG 4.1.0 - -Fix the failure caused by change in SwigValueWraper for C++11 and later -for improved move semantics in SWIG commit. - -https://github.com/swig/swig/commit/d1055f4b3d51cb8060893f8036846ac743302dab -(cherry picked from commit f0a25fe0b746f56295d5c02116ba28d2f965c175) - -Upstream-Status: Backport -Signed-off-by: Anuj Mittal ---- - lldb/bindings/python/python-typemaps.swig | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/lldb/bindings/python/python-typemaps.swig b/lldb/bindings/python/python-typemaps.swig -index bf3de66b91bf..d45431c771ca 100644 ---- a/lldb/bindings/python/python-typemaps.swig -+++ b/lldb/bindings/python/python-typemaps.swig -@@ -435,7 +435,7 @@ template <> bool SetNumberFromPyObject(double &number, PyObject *obj) { - - %typemap(out) lldb::FileSP { - $result = nullptr; -- lldb::FileSP &sp = $1; -+ const lldb::FileSP &sp = $1; - if (sp) { - PythonFile pyfile = unwrapOrSetPythonException(PythonFile::FromFile(*sp)); - if (!pyfile.IsValid()) diff --git a/recipes-devtools/clang/clang/0036-dc8f6ffc3bf297098a1dfd3fbce801afbe9f5238.patch b/recipes-devtools/clang/clang/0036-dc8f6ffc3bf297098a1dfd3fbce801afbe9f5238.patch deleted file mode 100644 index 2c3498c..0000000 --- a/recipes-devtools/clang/clang/0036-dc8f6ffc3bf297098a1dfd3fbce801afbe9f5238.patch +++ /dev/null @@ -1,46 +0,0 @@ -From dc8f6ffc3bf297098a1dfd3fbce801afbe9f5238 Mon Sep 17 00:00:00 2001 -From: serge-sans-paille -Date: Thu, 29 Sep 2022 21:48:38 +0200 -Subject: [PATCH] [lldb] Get rid of __STDC_LIMIT_MACROS and - __STDC_CONSTANT_MACROS - -C++11 made the use of these macro obsolete, see https://sourceware.org/bugzilla/show_bug.cgi?id=15366 - -As a side effect this prevents https://github.com/swig/swig/issues/2193. - -Differential Revision: https://reviews.llvm.org/D134877 - -(cherry picked from commit 81fc5f7909a4ef5a8d4b5da2a10f77f7cb01ba63) -Upstream-Status: Backport -Signed-off-by: Anuj Mittal ---- - lldb/bindings/CMakeLists.txt | 2 -- - lldb/bindings/interfaces.swig | 3 --- - 2 files changed, 5 deletions(-) - -diff --git a/lldb/bindings/CMakeLists.txt b/lldb/bindings/CMakeLists.txt -index c8aa0bcf9681..9eed2f1e6299 100644 ---- a/lldb/bindings/CMakeLists.txt -+++ b/lldb/bindings/CMakeLists.txt -@@ -26,8 +26,6 @@ set(SWIG_COMMON_FLAGS - -features autodoc - -I${LLDB_SOURCE_DIR}/include - -I${CMAKE_CURRENT_SOURCE_DIR} -- -D__STDC_LIMIT_MACROS -- -D__STDC_CONSTANT_MACROS - ${DARWIN_EXTRAS} - ) - -diff --git a/lldb/bindings/interfaces.swig b/lldb/bindings/interfaces.swig -index c9a6d0f06056..021c7683d170 100644 ---- a/lldb/bindings/interfaces.swig -+++ b/lldb/bindings/interfaces.swig -@@ -1,8 +1,5 @@ - /* Various liblldb typedefs that SWIG needs to know about. */ - #define __extension__ /* Undefine GCC keyword to make Swig happy when processing glibc's stdint.h. */ --/* The ISO C99 standard specifies that in C++ implementations limit macros such -- as INT32_MAX should only be defined if __STDC_LIMIT_MACROS is. */ --#define __STDC_LIMIT_MACROS - %include "stdint.i" - - %include "lldb/lldb-defines.h" diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc index 5f6a6f4..a0f8a00 100644 --- a/recipes-devtools/clang/common.inc +++ b/recipes-devtools/clang/common.inc @@ -44,8 +44,6 @@ SRC_URI = "\ file://0032-compiler-rt-Enable-__int128-for-ppc32.patch \ file://0033-llvm-Do-not-use-cmake-infra-to-detect-libzstd.patch \ file://0034-Revert-MIPS-compiler-rt-Fix-stat-struct-s-size-for-O.patch \ - file://0035-lldb-fix-swig-error.patch \ - file://0036-dc8f6ffc3bf297098a1dfd3fbce801afbe9f5238.patch \ " # Fallback to no-PIE if not set GCCPIE ??= "" -- cgit v1.2.3-54-g00ecf