import clang-12.0.0-1.module+el8.5.0+11188+97d2441b
This commit is contained in:
parent
b73f3a4c9f
commit
714ce1de72
@ -1,3 +1,3 @@
|
|||||||
02c87f5e07f2a1c1e2dbb8ce8328f0106d70b10d SOURCES/clang-11.0.0.src.tar.xz
|
51250856f368acef5ab335a16f994bf29ad3d115 SOURCES/clang-12.0.0.src.tar.xz
|
||||||
b77dc0494894b997c8f4012debbf0bf469462386 SOURCES/clang-tools-extra-11.0.0.src.tar.xz
|
5fe54db45be35b8f77acc32f08e01912f8e8b915 SOURCES/clang-tools-extra-12.0.0.src.tar.xz
|
||||||
32fa4b0193960f05064f2ab31b5a89c7cf48a0b9 SOURCES/hans-gpg-key.asc
|
b8d2648a01d36ed0186fd2c5af325fd28797f9a0 SOURCES/tstellar-gpg-key.asc
|
||||||
|
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,3 +1,3 @@
|
|||||||
SOURCES/clang-11.0.0.src.tar.xz
|
SOURCES/clang-12.0.0.src.tar.xz
|
||||||
SOURCES/clang-tools-extra-11.0.0.src.tar.xz
|
SOURCES/clang-tools-extra-12.0.0.src.tar.xz
|
||||||
SOURCES/hans-gpg-key.asc
|
SOURCES/tstellar-gpg-key.asc
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
From 1f26a0284925859b72ee520ce74452d77d822409 Mon Sep 17 00:00:00 2001
|
From c6b921c8d833546946b70a8c2640032fd7c62461 Mon Sep 17 00:00:00 2001
|
||||||
From: serge-sans-paille <sguelton@redhat.com>
|
From: serge-sans-paille <sguelton@redhat.com>
|
||||||
Date: Mon, 28 Jan 2019 19:12:27 +0000
|
Date: Thu, 25 Feb 2021 14:04:52 +0100
|
||||||
Subject: [PATCH 2/2] [PATCH] gtest reorg
|
Subject: [PATCH 1/6] [PATCH][clang] Reorganize gtest integration
|
||||||
|
|
||||||
---
|
---
|
||||||
CMakeLists.txt | 12 +++++-------
|
clang/CMakeLists.txt | 12 +++++-------
|
||||||
1 file changed, 5 insertions(+), 7 deletions(-)
|
1 file changed, 5 insertions(+), 7 deletions(-)
|
||||||
|
|
||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt
|
||||||
index c2016a45ca..48ea3c3bb9 100644
|
index 9e74014..0185276 100644
|
||||||
--- a/CMakeLists.txt
|
--- a/clang/CMakeLists.txt
|
||||||
+++ b/CMakeLists.txt
|
+++ b/clang/CMakeLists.txt
|
||||||
@@ -157,12 +157,6 @@ Please install Python or specify the PYTHON_EXECUTABLE CMake variable.")
|
@@ -153,12 +153,6 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
|
||||||
set(LLVM_UTILS_PROVIDED ON)
|
set(LLVM_UTILS_PROVIDED ON)
|
||||||
set(CLANG_TEST_DEPS FileCheck count not)
|
set(CLANG_TEST_DEPS FileCheck count not)
|
||||||
endif()
|
endif()
|
||||||
@ -24,7 +24,7 @@ index c2016a45ca..48ea3c3bb9 100644
|
|||||||
else()
|
else()
|
||||||
# Seek installed Lit.
|
# Seek installed Lit.
|
||||||
find_program(LLVM_LIT
|
find_program(LLVM_LIT
|
||||||
@@ -507,7 +501,11 @@ endif()
|
@@ -537,7 +531,11 @@ endif()
|
||||||
|
|
||||||
|
|
||||||
if( CLANG_INCLUDE_TESTS )
|
if( CLANG_INCLUDE_TESTS )
|
||||||
@ -38,5 +38,5 @@ index c2016a45ca..48ea3c3bb9 100644
|
|||||||
list(APPEND CLANG_TEST_DEPS ClangUnitTests)
|
list(APPEND CLANG_TEST_DEPS ClangUnitTests)
|
||||||
list(APPEND CLANG_TEST_PARAMS
|
list(APPEND CLANG_TEST_PARAMS
|
||||||
--
|
--
|
||||||
2.19.2
|
1.8.3.1
|
||||||
|
|
@ -0,0 +1,31 @@
|
|||||||
|
From 84e4fe467f290c85b3d7d22c7333d192e1282054 Mon Sep 17 00:00:00 2001
|
||||||
|
From: serge-sans-paille <sguelton@redhat.com>
|
||||||
|
Date: Wed, 17 Mar 2021 08:32:56 +0100
|
||||||
|
Subject: [PATCH] [PATCH][clang-tools-extra] Make clangd CompletionModel usable
|
||||||
|
even with non-standard (but supported) layout
|
||||||
|
|
||||||
|
llvm supports specifying a non-standard layout where each project lies in its
|
||||||
|
own place. Do not assume a fixed layout and use the appropriate cmake variable
|
||||||
|
instead.
|
||||||
|
---
|
||||||
|
clang-tools-extra/clangd/quality/CompletionModel.cmake | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/clang-tools-extra/clangd/quality/CompletionModel.cmake b/clang-tools-extra/clangd/quality/CompletionModel.cmake
|
||||||
|
index 60c6d2a..41bc2ed 100644
|
||||||
|
--- a/clang-tools-extra/clangd/quality/CompletionModel.cmake
|
||||||
|
+++ b/clang-tools-extra/clangd/quality/CompletionModel.cmake
|
||||||
|
@@ -5,8 +5,8 @@
|
||||||
|
# will define a C++ class called ${cpp_class} - which may be a
|
||||||
|
# namespace-qualified class name.
|
||||||
|
function(gen_decision_forest model filename cpp_class)
|
||||||
|
- set(model_compiler ${CMAKE_SOURCE_DIR}/../clang-tools-extra/clangd/quality/CompletionModelCodegen.py)
|
||||||
|
-
|
||||||
|
+ set(model_compiler ${LLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR}/clangd/quality/CompletionModelCodegen.py)
|
||||||
|
+
|
||||||
|
set(output_dir ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
set(header_file ${output_dir}/${filename}.h)
|
||||||
|
set(cpp_file ${output_dir}/${filename}.cpp)
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
@ -1,50 +0,0 @@
|
|||||||
From 09ae3ef5710a89505318ec721c65b6c838147276 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Tom Stellard <tstellar@redhat.com>
|
|
||||||
Date: Thu, 7 Feb 2019 21:05:37 -0800
|
|
||||||
Subject: [PATCH] ToolChain: Add -lgcc_s to the linker flags when using libc++
|
|
||||||
|
|
||||||
The libc++ build for Fedora does not include an implementation of
|
|
||||||
libunwind, so we need to explicitly link against something that
|
|
||||||
provides this implementation.
|
|
||||||
---
|
|
||||||
clang/lib/Driver/ToolChain.cpp | 1 +
|
|
||||||
clang/test/Driver/netbsd.cpp | 4 ++--
|
|
||||||
2 files changed, 3 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/lib/Driver/ToolChain.cpp b/lib/Driver/ToolChain.cpp
|
|
||||||
index 88a627e..cb99844 100644
|
|
||||||
--- a/lib/Driver/ToolChain.cpp
|
|
||||||
+++ b/lib/Driver/ToolChain.cpp
|
|
||||||
@@ -767,6 +767,7 @@ void ToolChain::AddCXXStdlibLibArgs(const ArgList &Args,
|
|
||||||
switch (Type) {
|
|
||||||
case ToolChain::CST_Libcxx:
|
|
||||||
CmdArgs.push_back("-lc++");
|
|
||||||
+ CmdArgs.push_back("-lgcc_s");
|
|
||||||
break;
|
|
||||||
|
|
||||||
case ToolChain::CST_Libstdcxx:
|
|
||||||
diff --git a/test/Driver/netbsd.cpp b/test/Driver/netbsd.cpp
|
|
||||||
index 4af7d83..ff18c62 100644
|
|
||||||
--- a/test/Driver/netbsd.cpp
|
|
||||||
+++ b/test/Driver/netbsd.cpp
|
|
||||||
@@ -131,7 +131,7 @@
|
|
||||||
// ARM-7: clang{{.*}}" "-cc1" "-triple" "armv5e-unknown-netbsd7.0.0-eabi"
|
|
||||||
// ARM-7: ld{{.*}}" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld.elf_so"
|
|
||||||
// ARM-7: "-o" "a.out" "{{.*}}/usr/lib{{/|\\\\}}crt0.o" "{{.*}}/usr/lib{{/|\\\\}}eabi{{/|\\\\}}crti.o"
|
|
||||||
-// ARM-7: "{{.*}}/usr/lib{{/|\\\\}}crtbegin.o" "{{.*}}.o" "-lc++" "-lm" "-lc"
|
|
||||||
+// ARM-7: "{{.*}}/usr/lib{{/|\\\\}}crtbegin.o" "{{.*}}.o" "-lc++" "-lgcc_s" "-lm" "-lc"
|
|
||||||
// ARM-7: "{{.*}}/usr/lib{{/|\\\\}}crtend.o" "{{.*}}/usr/lib{{/|\\\\}}crtn.o"
|
|
||||||
|
|
||||||
// AARCH64: clang{{.*}}" "-cc1" "-triple" "aarch64-unknown-netbsd"
|
|
||||||
@@ -250,7 +250,7 @@
|
|
||||||
// S-ARM-7: clang{{.*}}" "-cc1" "-triple" "armv5e-unknown-netbsd7.0.0-eabi"
|
|
||||||
// S-ARM-7: ld{{.*}}" "--eh-frame-hdr" "-Bstatic"
|
|
||||||
// S-ARM-7: "-o" "a.out" "{{.*}}/usr/lib{{/|\\\\}}crt0.o" "{{.*}}/usr/lib{{/|\\\\}}eabi{{/|\\\\}}crti.o"
|
|
||||||
-// S-ARM-7: "{{.*}}/usr/lib{{/|\\\\}}crtbegin.o" "{{.*}}.o" "-lc++" "-lm" "-lc"
|
|
||||||
+// S-ARM-7: "{{.*}}/usr/lib{{/|\\\\}}crtbegin.o" "{{.*}}.o" "-lc++" "-lgcc_s" "-lm" "-lc"
|
|
||||||
// S-ARM-7: "{{.*}}/usr/lib{{/|\\\\}}crtend.o" "{{.*}}/usr/lib{{/|\\\\}}crtn.o"
|
|
||||||
|
|
||||||
// S-AARCH64: clang{{.*}}" "-cc1" "-triple" "aarch64-unknown-netbsd"
|
|
||||||
--
|
|
||||||
1.8.3.1
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
|||||||
From 5bfce60443b1c3f4066f506e47cbdc7c4263bb10 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Tom Stellard <tstellar@redhat.com>
|
|
||||||
Date: Tue, 11 Aug 2020 18:32:08 -0700
|
|
||||||
Subject: [PATCH] clang: Fix spurious test failure
|
|
||||||
|
|
||||||
---
|
|
||||||
clang/test/Driver/crash-report-modules.m | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/clang/test/Driver/crash-report-modules.m b/clang/test/Driver/crash-report-modules.m
|
|
||||||
index e6d03353379..9519adf6f4b 100644
|
|
||||||
--- a/clang/test/Driver/crash-report-modules.m
|
|
||||||
+++ b/clang/test/Driver/crash-report-modules.m
|
|
||||||
@@ -19,7 +19,7 @@
|
|
||||||
@import simple;
|
|
||||||
const int x = MODULE_MACRO;
|
|
||||||
|
|
||||||
-// CHECK: PLEASE submit a bug report to {{.*}} and include the crash backtrace, preprocessed source, and associated run script.
|
|
||||||
+// CHECK: PLEASE submit a bug report to {{.*}}and include the crash backtrace, preprocessed source, and associated run script.
|
|
||||||
// CHECK: Preprocessed source(s) and associated run script(s) are located at:
|
|
||||||
// CHECK-NEXT: note: diagnostic msg: {{.*}}.m
|
|
||||||
// CHECK-NEXT: note: diagnostic msg: {{.*}}.cache
|
|
||||||
--
|
|
||||||
2.18.1
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
|||||||
From 690373af5a5d50cf115ed6e4d2849bb786f9dc8e Mon Sep 17 00:00:00 2001
|
From 07b062e1f7c3359550aa8c0a7b86f6054971439d Mon Sep 17 00:00:00 2001
|
||||||
From: serge-sans-paille <sguelton@redhat.com>
|
From: serge-sans-paille <sguelton@redhat.com>
|
||||||
Date: Tue, 10 Dec 2019 09:18:03 +0000
|
Date: Thu, 25 Feb 2021 14:09:29 +0100
|
||||||
Subject: [PATCH] Make -funwind-tables the default for all archs
|
Subject: [PATCH 2/6] [PATCH][clang] Make -funwind-tables the default on all
|
||||||
|
archs
|
||||||
|
|
||||||
---
|
---
|
||||||
clang/lib/Driver/ToolChain.cpp | 2 +-
|
clang/lib/Driver/ToolChain.cpp | 2 +-
|
||||||
@ -9,10 +10,10 @@ Subject: [PATCH] Make -funwind-tables the default for all archs
|
|||||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp
|
diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp
|
||||||
index b1fddb0af55..43af40ed0e8 100644
|
index b2ddef1..715b323 100644
|
||||||
--- a/clang/lib/Driver/ToolChain.cpp
|
--- a/clang/lib/Driver/ToolChain.cpp
|
||||||
+++ b/clang/lib/Driver/ToolChain.cpp
|
+++ b/clang/lib/Driver/ToolChain.cpp
|
||||||
@@ -244,7 +244,7 @@ std::string ToolChain::getInputFilename(const InputInfo &Input) const {
|
@@ -257,7 +257,7 @@ std::string ToolChain::getInputFilename(const InputInfo &Input) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ToolChain::IsUnwindTablesDefault(const ArgList &Args) const {
|
bool ToolChain::IsUnwindTablesDefault(const ArgList &Args) const {
|
||||||
@ -22,18 +23,18 @@ index b1fddb0af55..43af40ed0e8 100644
|
|||||||
|
|
||||||
Tool *ToolChain::getClang() const {
|
Tool *ToolChain::getClang() const {
|
||||||
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
|
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
|
||||||
index 33cdd3585c2..15e82be8f3a 100644
|
index 1d8a3cd..5deeb10 100644
|
||||||
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
|
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
|
||||||
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
|
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
|
||||||
@@ -2535,7 +2535,7 @@ void Generic_GCC::printVerboseInfo(raw_ostream &OS) const {
|
@@ -2713,7 +2713,7 @@ bool Generic_GCC::IsUnwindTablesDefault(const ArgList &Args) const {
|
||||||
|
case llvm::Triple::x86_64:
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
- return false;
|
||||||
|
+ return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Generic_GCC::IsUnwindTablesDefault(const ArgList &Args) const {
|
|
||||||
- return getArch() == llvm::Triple::x86_64;
|
|
||||||
+ return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Generic_GCC::isPICDefault() const {
|
|
||||||
--
|
--
|
||||||
2.20.1
|
1.8.3.1
|
||||||
|
|
@ -1,14 +1,14 @@
|
|||||||
From 8097a9d4295dbc39cbd541ccace7bc5884852366 Mon Sep 17 00:00:00 2001
|
From 2c6cd40d016f492d53e16f1c7424a0d9878ae7ec Mon Sep 17 00:00:00 2001
|
||||||
From: Tom Stellard <tstellar@redhat.com>
|
From: Tom Stellard <tstellar@redhat.com>
|
||||||
Date: Fri, 31 Jan 2020 11:04:57 -0800
|
Date: Fri, 31 Jan 2020 11:04:57 -0800
|
||||||
Subject: [PATCH] clang: Don't install static libraries
|
Subject: [PATCH 3/6] [PATCH][clang] Don't install static libraries
|
||||||
|
|
||||||
---
|
---
|
||||||
clang/cmake/modules/AddClang.cmake | 2 +-
|
clang/cmake/modules/AddClang.cmake | 2 +-
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake
|
diff --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake
|
||||||
index 704278a0e93..1737b24a2bc 100644
|
index 704278a..1737b24 100644
|
||||||
--- a/clang/cmake/modules/AddClang.cmake
|
--- a/clang/cmake/modules/AddClang.cmake
|
||||||
+++ b/clang/cmake/modules/AddClang.cmake
|
+++ b/clang/cmake/modules/AddClang.cmake
|
||||||
@@ -111,7 +111,7 @@ macro(add_clang_library name)
|
@@ -111,7 +111,7 @@ macro(add_clang_library name)
|
||||||
@ -21,5 +21,5 @@ index 704278a0e93..1737b24a2bc 100644
|
|||||||
if(${lib} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
|
if(${lib} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
|
||||||
"clang-libraries" IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
|
"clang-libraries" IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
|
||||||
--
|
--
|
||||||
2.18.1
|
1.8.3.1
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
From 67013ee5feecca0c1e1dd8a149b20779a9b6c12a Mon Sep 17 00:00:00 2001
|
From d8af49687765744efaae7ba0f0c4c0fcd58a0e31 Mon Sep 17 00:00:00 2001
|
||||||
From: serge-sans-paille <sguelton@redhat.com>
|
From: serge-sans-paille <sguelton@redhat.com>
|
||||||
Date: Wed, 23 Sep 2020 12:47:30 +0000
|
Date: Wed, 23 Sep 2020 12:47:30 +0000
|
||||||
Subject: [PATCH] Driver: Prefer gcc toolchains with libgcc_s.so when not
|
Subject: [PATCH 4/6] [PATCH][clang] Prefer gcc toolchains with libgcc_s.so
|
||||||
static linking libgcc
|
when not static linking libgcc
|
||||||
|
|
||||||
Fedora ships cross-compilers on all platforms, so a user could end up
|
Fedora ships cross-compilers on all platforms, so a user could end up
|
||||||
with a gcc x86_64 cross-compiler installed on an x86_64 system. clang
|
with a gcc x86_64 cross-compiler installed on an x86_64 system. clang
|
||||||
@ -21,22 +21,22 @@ This patch fixes this by checking for the existence of libgcc_s.so
|
|||||||
when it is required and taking that into account when selecting a
|
when it is required and taking that into account when selecting a
|
||||||
toolchain.
|
toolchain.
|
||||||
---
|
---
|
||||||
lib/Driver/ToolChains/Gnu.cpp | 16 ++++++++++++++--
|
clang/lib/Driver/ToolChains/Gnu.cpp | 16 ++++++++++++++--
|
||||||
lib/Driver/ToolChains/Gnu.h | 4 +++-
|
clang/lib/Driver/ToolChains/Gnu.h | 4 +++-
|
||||||
.../usr/lib/gcc/x86_64-linux-gnu/7/crtbegin.o | 0
|
.../usr/lib/gcc/x86_64-linux-gnu/7/crtbegin.o | 0
|
||||||
.../usr/lib/gcc/x86_64-redhat-linux/7/crtbegin.o | 0
|
.../usr/lib/gcc/x86_64-redhat-linux/7/crtbegin.o | 0
|
||||||
.../lib/gcc/x86_64-redhat-linux/7/libgcc_s.so | 0
|
.../usr/lib/gcc/x86_64-redhat-linux/7/libgcc_s.so | 0
|
||||||
test/Driver/linux-ld.c | 12 ++++++++++++
|
clang/test/Driver/linux-ld.c | 12 ++++++++++++
|
||||||
6 files changed, 29 insertions(+), 3 deletions(-)
|
6 files changed, 29 insertions(+), 3 deletions(-)
|
||||||
create mode 100644 test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-linux-gnu/7/crtbegin.o
|
create mode 100644 clang/test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-linux-gnu/7/crtbegin.o
|
||||||
create mode 100644 test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-redhat-linux/7/crtbegin.o
|
create mode 100644 clang/test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-redhat-linux/7/crtbegin.o
|
||||||
create mode 100644 test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-redhat-linux/7/libgcc_s.so
|
create mode 100644 clang/test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-redhat-linux/7/libgcc_s.so
|
||||||
|
|
||||||
diff --git a/lib/Driver/ToolChains/Gnu.cpp b/lib/Driver/ToolChains/Gnu.cpp
|
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
|
||||||
index c8a7fce0..f28792b7 100644
|
index 5deeb10..5d51517 100644
|
||||||
--- a/lib/Driver/ToolChains/Gnu.cpp
|
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
|
||||||
+++ b/lib/Driver/ToolChains/Gnu.cpp
|
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
|
||||||
@@ -2500,6 +2500,8 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple(
|
@@ -2539,6 +2539,8 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple(
|
||||||
(TargetArch == llvm::Triple::x86 &&
|
(TargetArch == llvm::Triple::x86 &&
|
||||||
TargetTriple.getOS() != llvm::Triple::Solaris)}};
|
TargetTriple.getOS() != llvm::Triple::Solaris)}};
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ index c8a7fce0..f28792b7 100644
|
|||||||
for (auto &Suffix : Suffixes) {
|
for (auto &Suffix : Suffixes) {
|
||||||
if (!Suffix.Active)
|
if (!Suffix.Active)
|
||||||
continue;
|
continue;
|
||||||
@@ -2517,8 +2519,17 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple(
|
@@ -2556,8 +2558,17 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple(
|
||||||
continue; // Saw this path before; no need to look at it again.
|
continue; // Saw this path before; no need to look at it again.
|
||||||
if (CandidateVersion.isOlderThan(4, 1, 1))
|
if (CandidateVersion.isOlderThan(4, 1, 1))
|
||||||
continue;
|
continue;
|
||||||
@ -65,7 +65,7 @@ index c8a7fce0..f28792b7 100644
|
|||||||
|
|
||||||
if (!ScanGCCForMultilibs(TargetTriple, Args, LI->path(),
|
if (!ScanGCCForMultilibs(TargetTriple, Args, LI->path(),
|
||||||
NeedsBiarchSuffix))
|
NeedsBiarchSuffix))
|
||||||
@@ -2532,6 +2543,7 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple(
|
@@ -2571,6 +2582,7 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple(
|
||||||
GCCInstallPath = (LibDir + "/" + LibSuffix + "/" + VersionText).str();
|
GCCInstallPath = (LibDir + "/" + LibSuffix + "/" + VersionText).str();
|
||||||
GCCParentLibPath = (GCCInstallPath + "/../" + Suffix.ReversePath).str();
|
GCCParentLibPath = (GCCInstallPath + "/../" + Suffix.ReversePath).str();
|
||||||
IsValid = true;
|
IsValid = true;
|
||||||
@ -73,10 +73,10 @@ index c8a7fce0..f28792b7 100644
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
diff --git a/lib/Driver/ToolChains/Gnu.h b/lib/Driver/ToolChains/Gnu.h
|
diff --git a/clang/lib/Driver/ToolChains/Gnu.h b/clang/lib/Driver/ToolChains/Gnu.h
|
||||||
index 52690ab4..2a4452d9 100644
|
index 90d3baf..9d0cea2 100644
|
||||||
--- a/lib/Driver/ToolChains/Gnu.h
|
--- a/clang/lib/Driver/ToolChains/Gnu.h
|
||||||
+++ b/lib/Driver/ToolChains/Gnu.h
|
+++ b/clang/lib/Driver/ToolChains/Gnu.h
|
||||||
@@ -190,6 +190,7 @@ public:
|
@@ -190,6 +190,7 @@ public:
|
||||||
/// Driver, and has logic for fuzzing that where appropriate.
|
/// Driver, and has logic for fuzzing that where appropriate.
|
||||||
class GCCInstallationDetector {
|
class GCCInstallationDetector {
|
||||||
@ -85,8 +85,8 @@ index 52690ab4..2a4452d9 100644
|
|||||||
llvm::Triple GCCTriple;
|
llvm::Triple GCCTriple;
|
||||||
const Driver &D;
|
const Driver &D;
|
||||||
|
|
||||||
@@ -213,7 +214,8 @@ public:
|
@@ -216,7 +217,8 @@ public:
|
||||||
MultilibSet Multilibs;
|
const std::string GentooConfigDir = "/etc/env.d/gcc";
|
||||||
|
|
||||||
public:
|
public:
|
||||||
- explicit GCCInstallationDetector(const Driver &D) : IsValid(false), D(D) {}
|
- explicit GCCInstallationDetector(const Driver &D) : IsValid(false), D(D) {}
|
||||||
@ -95,19 +95,19 @@ index 52690ab4..2a4452d9 100644
|
|||||||
void init(const llvm::Triple &TargetTriple, const llvm::opt::ArgList &Args,
|
void init(const llvm::Triple &TargetTriple, const llvm::opt::ArgList &Args,
|
||||||
ArrayRef<std::string> ExtraTripleAliases = None);
|
ArrayRef<std::string> ExtraTripleAliases = None);
|
||||||
|
|
||||||
diff --git a/test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-linux-gnu/7/crtbegin.o b/test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-linux-gnu/7/crtbegin.o
|
diff --git a/clang/test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-linux-gnu/7/crtbegin.o b/clang/test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-linux-gnu/7/crtbegin.o
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 00000000..e69de29b
|
index 0000000..e69de29
|
||||||
diff --git a/test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-redhat-linux/7/crtbegin.o b/test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-redhat-linux/7/crtbegin.o
|
diff --git a/clang/test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-redhat-linux/7/crtbegin.o b/clang/test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-redhat-linux/7/crtbegin.o
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 00000000..e69de29b
|
index 0000000..e69de29
|
||||||
diff --git a/test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-redhat-linux/7/libgcc_s.so b/test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-redhat-linux/7/libgcc_s.so
|
diff --git a/clang/test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-redhat-linux/7/libgcc_s.so b/clang/test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-redhat-linux/7/libgcc_s.so
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 00000000..e69de29b
|
index 0000000..e69de29
|
||||||
diff --git a/test/Driver/linux-ld.c b/test/Driver/linux-ld.c
|
diff --git a/clang/test/Driver/linux-ld.c b/clang/test/Driver/linux-ld.c
|
||||||
index ec539522..95725d5c 100644
|
index 24d3c78..071bb9b 100644
|
||||||
--- a/test/Driver/linux-ld.c
|
--- a/clang/test/Driver/linux-ld.c
|
||||||
+++ b/test/Driver/linux-ld.c
|
+++ b/clang/test/Driver/linux-ld.c
|
||||||
@@ -784,6 +784,18 @@
|
@@ -784,6 +784,18 @@
|
||||||
// CHECK-FEDORA-31-RISCV64: "{{.*}}/usr/lib/gcc/riscv64-redhat-linux/9{{/|\\\\}}crtend.o"
|
// CHECK-FEDORA-31-RISCV64: "{{.*}}/usr/lib/gcc/riscv64-redhat-linux/9{{/|\\\\}}crtend.o"
|
||||||
// CHECK-FEDORA-31-RISCV64: "{{.*}}/usr/lib/gcc/riscv64-redhat-linux/9{{/|\\\\}}crtn.o"
|
// CHECK-FEDORA-31-RISCV64: "{{.*}}/usr/lib/gcc/riscv64-redhat-linux/9{{/|\\\\}}crtn.o"
|
||||||
@ -128,5 +128,5 @@ index ec539522..95725d5c 100644
|
|||||||
// RUN: --target=arm-unknown-linux-gnueabi -rtlib=platform \
|
// RUN: --target=arm-unknown-linux-gnueabi -rtlib=platform \
|
||||||
// RUN: --gcc-toolchain="" \
|
// RUN: --gcc-toolchain="" \
|
||||||
--
|
--
|
||||||
2.25.2
|
1.8.3.1
|
||||||
|
|
@ -0,0 +1,224 @@
|
|||||||
|
From ea01f898fd74bae23d8be31f1a29b542e886e3a5 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Tom Stellard <tstellar@redhat.com>
|
||||||
|
Date: Tue, 9 Feb 2021 13:35:43 -0800
|
||||||
|
Subject: [PATCH 5/6] [PATCH][clang] Partially Revert "scan-view: Remove
|
||||||
|
Reporter.py and associated AppleScript files"
|
||||||
|
|
||||||
|
This reverts some of commit dbb01536f6f49fa428f170e34466072ef439b3e9.
|
||||||
|
|
||||||
|
The Reporter module was still being used by the ScanView.py module and deleting
|
||||||
|
it caused scan-view to fail. This commit adds back Reporter.py but removes the
|
||||||
|
code the references the AppleScript files which were removed in
|
||||||
|
dbb01536f6f49fa428f170e34466072ef439b3e9.
|
||||||
|
|
||||||
|
Differential Revision: https://reviews.llvm.org/D96367
|
||||||
|
---
|
||||||
|
clang/tools/scan-view/CMakeLists.txt | 1 +
|
||||||
|
clang/tools/scan-view/share/Reporter.py | 183 ++++++++++++++++++++++++++++++++
|
||||||
|
2 files changed, 184 insertions(+)
|
||||||
|
create mode 100644 clang/tools/scan-view/share/Reporter.py
|
||||||
|
|
||||||
|
diff --git a/clang/tools/scan-view/CMakeLists.txt b/clang/tools/scan-view/CMakeLists.txt
|
||||||
|
index dd3d334..eccc6b8 100644
|
||||||
|
--- a/clang/tools/scan-view/CMakeLists.txt
|
||||||
|
+++ b/clang/tools/scan-view/CMakeLists.txt
|
||||||
|
@@ -5,6 +5,7 @@ set(BinFiles
|
||||||
|
|
||||||
|
set(ShareFiles
|
||||||
|
ScanView.py
|
||||||
|
+ Reporter.py
|
||||||
|
startfile.py
|
||||||
|
bugcatcher.ico)
|
||||||
|
|
||||||
|
diff --git a/clang/tools/scan-view/share/Reporter.py b/clang/tools/scan-view/share/Reporter.py
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..31a14fb
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/clang/tools/scan-view/share/Reporter.py
|
||||||
|
@@ -0,0 +1,183 @@
|
||||||
|
+#!/usr/bin/env python
|
||||||
|
+# -*- coding: utf-8 -*-
|
||||||
|
+
|
||||||
|
+"""Methods for reporting bugs."""
|
||||||
|
+
|
||||||
|
+import subprocess, sys, os
|
||||||
|
+
|
||||||
|
+__all__ = ['ReportFailure', 'BugReport', 'getReporters']
|
||||||
|
+
|
||||||
|
+#
|
||||||
|
+
|
||||||
|
+class ReportFailure(Exception):
|
||||||
|
+ """Generic exception for failures in bug reporting."""
|
||||||
|
+ def __init__(self, value):
|
||||||
|
+ self.value = value
|
||||||
|
+
|
||||||
|
+# Collect information about a bug.
|
||||||
|
+
|
||||||
|
+class BugReport(object):
|
||||||
|
+ def __init__(self, title, description, files):
|
||||||
|
+ self.title = title
|
||||||
|
+ self.description = description
|
||||||
|
+ self.files = files
|
||||||
|
+
|
||||||
|
+# Reporter interfaces.
|
||||||
|
+
|
||||||
|
+import os
|
||||||
|
+
|
||||||
|
+import email, mimetypes, smtplib
|
||||||
|
+from email import encoders
|
||||||
|
+from email.message import Message
|
||||||
|
+from email.mime.base import MIMEBase
|
||||||
|
+from email.mime.multipart import MIMEMultipart
|
||||||
|
+from email.mime.text import MIMEText
|
||||||
|
+
|
||||||
|
+#===------------------------------------------------------------------------===#
|
||||||
|
+# ReporterParameter
|
||||||
|
+#===------------------------------------------------------------------------===#
|
||||||
|
+
|
||||||
|
+class ReporterParameter(object):
|
||||||
|
+ def __init__(self, n):
|
||||||
|
+ self.name = n
|
||||||
|
+ def getName(self):
|
||||||
|
+ return self.name
|
||||||
|
+ def getValue(self,r,bugtype,getConfigOption):
|
||||||
|
+ return getConfigOption(r.getName(),self.getName())
|
||||||
|
+ def saveConfigValue(self):
|
||||||
|
+ return True
|
||||||
|
+
|
||||||
|
+class TextParameter (ReporterParameter):
|
||||||
|
+ def getHTML(self,r,bugtype,getConfigOption):
|
||||||
|
+ return """\
|
||||||
|
+<tr>
|
||||||
|
+<td class="form_clabel">%s:</td>
|
||||||
|
+<td class="form_value"><input type="text" name="%s_%s" value="%s"></td>
|
||||||
|
+</tr>"""%(self.getName(),r.getName(),self.getName(),self.getValue(r,bugtype,getConfigOption))
|
||||||
|
+
|
||||||
|
+class SelectionParameter (ReporterParameter):
|
||||||
|
+ def __init__(self, n, values):
|
||||||
|
+ ReporterParameter.__init__(self,n)
|
||||||
|
+ self.values = values
|
||||||
|
+
|
||||||
|
+ def getHTML(self,r,bugtype,getConfigOption):
|
||||||
|
+ default = self.getValue(r,bugtype,getConfigOption)
|
||||||
|
+ return """\
|
||||||
|
+<tr>
|
||||||
|
+<td class="form_clabel">%s:</td><td class="form_value"><select name="%s_%s">
|
||||||
|
+%s
|
||||||
|
+</select></td>"""%(self.getName(),r.getName(),self.getName(),'\n'.join(["""\
|
||||||
|
+<option value="%s"%s>%s</option>"""%(o[0],
|
||||||
|
+ o[0] == default and ' selected="selected"' or '',
|
||||||
|
+ o[1]) for o in self.values]))
|
||||||
|
+
|
||||||
|
+#===------------------------------------------------------------------------===#
|
||||||
|
+# Reporters
|
||||||
|
+#===------------------------------------------------------------------------===#
|
||||||
|
+
|
||||||
|
+class EmailReporter(object):
|
||||||
|
+ def getName(self):
|
||||||
|
+ return 'Email'
|
||||||
|
+
|
||||||
|
+ def getParameters(self):
|
||||||
|
+ return [TextParameter(x) for x in ['To', 'From', 'SMTP Server', 'SMTP Port']]
|
||||||
|
+
|
||||||
|
+ # Lifted from python email module examples.
|
||||||
|
+ def attachFile(self, outer, path):
|
||||||
|
+ # Guess the content type based on the file's extension. Encoding
|
||||||
|
+ # will be ignored, although we should check for simple things like
|
||||||
|
+ # gzip'd or compressed files.
|
||||||
|
+ ctype, encoding = mimetypes.guess_type(path)
|
||||||
|
+ if ctype is None or encoding is not None:
|
||||||
|
+ # No guess could be made, or the file is encoded (compressed), so
|
||||||
|
+ # use a generic bag-of-bits type.
|
||||||
|
+ ctype = 'application/octet-stream'
|
||||||
|
+ maintype, subtype = ctype.split('/', 1)
|
||||||
|
+ if maintype == 'text':
|
||||||
|
+ fp = open(path)
|
||||||
|
+ # Note: we should handle calculating the charset
|
||||||
|
+ msg = MIMEText(fp.read(), _subtype=subtype)
|
||||||
|
+ fp.close()
|
||||||
|
+ else:
|
||||||
|
+ fp = open(path, 'rb')
|
||||||
|
+ msg = MIMEBase(maintype, subtype)
|
||||||
|
+ msg.set_payload(fp.read())
|
||||||
|
+ fp.close()
|
||||||
|
+ # Encode the payload using Base64
|
||||||
|
+ encoders.encode_base64(msg)
|
||||||
|
+ # Set the filename parameter
|
||||||
|
+ msg.add_header('Content-Disposition', 'attachment', filename=os.path.basename(path))
|
||||||
|
+ outer.attach(msg)
|
||||||
|
+
|
||||||
|
+ def fileReport(self, report, parameters):
|
||||||
|
+ mainMsg = """\
|
||||||
|
+BUG REPORT
|
||||||
|
+---
|
||||||
|
+Title: %s
|
||||||
|
+Description: %s
|
||||||
|
+"""%(report.title, report.description)
|
||||||
|
+
|
||||||
|
+ if not parameters.get('To'):
|
||||||
|
+ raise ReportFailure('No "To" address specified.')
|
||||||
|
+ if not parameters.get('From'):
|
||||||
|
+ raise ReportFailure('No "From" address specified.')
|
||||||
|
+
|
||||||
|
+ msg = MIMEMultipart()
|
||||||
|
+ msg['Subject'] = 'BUG REPORT: %s'%(report.title)
|
||||||
|
+ # FIXME: Get config parameters
|
||||||
|
+ msg['To'] = parameters.get('To')
|
||||||
|
+ msg['From'] = parameters.get('From')
|
||||||
|
+ msg.preamble = mainMsg
|
||||||
|
+
|
||||||
|
+ msg.attach(MIMEText(mainMsg, _subtype='text/plain'))
|
||||||
|
+ for file in report.files:
|
||||||
|
+ self.attachFile(msg, file)
|
||||||
|
+
|
||||||
|
+ try:
|
||||||
|
+ s = smtplib.SMTP(host=parameters.get('SMTP Server'),
|
||||||
|
+ port=parameters.get('SMTP Port'))
|
||||||
|
+ s.sendmail(msg['From'], msg['To'], msg.as_string())
|
||||||
|
+ s.close()
|
||||||
|
+ except:
|
||||||
|
+ raise ReportFailure('Unable to send message via SMTP.')
|
||||||
|
+
|
||||||
|
+ return "Message sent!"
|
||||||
|
+
|
||||||
|
+class BugzillaReporter(object):
|
||||||
|
+ def getName(self):
|
||||||
|
+ return 'Bugzilla'
|
||||||
|
+
|
||||||
|
+ def getParameters(self):
|
||||||
|
+ return [TextParameter(x) for x in ['URL','Product']]
|
||||||
|
+
|
||||||
|
+ def fileReport(self, report, parameters):
|
||||||
|
+ raise NotImplementedError
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+class RadarClassificationParameter(SelectionParameter):
|
||||||
|
+ def __init__(self):
|
||||||
|
+ SelectionParameter.__init__(self,"Classification",
|
||||||
|
+ [['1', 'Security'], ['2', 'Crash/Hang/Data Loss'],
|
||||||
|
+ ['3', 'Performance'], ['4', 'UI/Usability'],
|
||||||
|
+ ['6', 'Serious Bug'], ['7', 'Other']])
|
||||||
|
+
|
||||||
|
+ def saveConfigValue(self):
|
||||||
|
+ return False
|
||||||
|
+
|
||||||
|
+ def getValue(self,r,bugtype,getConfigOption):
|
||||||
|
+ if bugtype.find("leak") != -1:
|
||||||
|
+ return '3'
|
||||||
|
+ elif bugtype.find("dereference") != -1:
|
||||||
|
+ return '2'
|
||||||
|
+ elif bugtype.find("missing ivar release") != -1:
|
||||||
|
+ return '3'
|
||||||
|
+ else:
|
||||||
|
+ return '7'
|
||||||
|
+
|
||||||
|
+###
|
||||||
|
+
|
||||||
|
+def getReporters():
|
||||||
|
+ reporters = []
|
||||||
|
+ reporters.append(EmailReporter())
|
||||||
|
+ return reporters
|
||||||
|
+
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
@ -0,0 +1,77 @@
|
|||||||
|
From 1ef1e91142ac48ecb826f33e1e7072c7402d9fe7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: serge-sans-paille <sguelton@redhat.com>
|
||||||
|
Date: Wed, 3 Mar 2021 09:58:31 +0100
|
||||||
|
Subject: [PATCH 6/6] [PATCH][clang] Allow __ieee128 as an alias to __float128
|
||||||
|
on ppc
|
||||||
|
|
||||||
|
This matches gcc behavior.
|
||||||
|
|
||||||
|
Differential Revision: https://reviews.llvm.org/D97846
|
||||||
|
|
||||||
|
(cherry picked from commit 4aa510be78a75a4da82657fe433016f00dad0784)
|
||||||
|
---
|
||||||
|
clang/include/clang/Basic/LangOptions.def | 1 +
|
||||||
|
clang/lib/Basic/IdentifierTable.cpp | 3 +++
|
||||||
|
clang/lib/Basic/Targets/PPC.cpp | 1 +
|
||||||
|
clang/test/Sema/128bitfloat.cpp | 7 +++++++
|
||||||
|
4 files changed, 12 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/clang/include/clang/Basic/LangOptions.def b/clang/include/clang/Basic/LangOptions.def
|
||||||
|
index c01f0cc..3c22393e 100644
|
||||||
|
--- a/clang/include/clang/Basic/LangOptions.def
|
||||||
|
+++ b/clang/include/clang/Basic/LangOptions.def
|
||||||
|
@@ -107,6 +107,7 @@ LANGOPT(Bool , 1, 0, "bool, true, and false keywords")
|
||||||
|
LANGOPT(Half , 1, 0, "half keyword")
|
||||||
|
LANGOPT(WChar , 1, CPlusPlus, "wchar_t keyword")
|
||||||
|
LANGOPT(Char8 , 1, 0, "char8_t keyword")
|
||||||
|
+LANGOPT(IEEE128 , 1, 0, "__ieee128 keyword")
|
||||||
|
LANGOPT(DeclSpecKeyword , 1, 0, "__declspec keyword")
|
||||||
|
BENIGN_LANGOPT(DollarIdents , 1, 1, "'$' in identifiers")
|
||||||
|
BENIGN_LANGOPT(AsmPreprocessor, 1, 0, "preprocessor in asm mode")
|
||||||
|
diff --git a/clang/lib/Basic/IdentifierTable.cpp b/clang/lib/Basic/IdentifierTable.cpp
|
||||||
|
index 51c6e02..cedc94a 100644
|
||||||
|
--- a/clang/lib/Basic/IdentifierTable.cpp
|
||||||
|
+++ b/clang/lib/Basic/IdentifierTable.cpp
|
||||||
|
@@ -227,6 +227,9 @@ void IdentifierTable::AddKeywords(const LangOptions &LangOpts) {
|
||||||
|
if (LangOpts.DeclSpecKeyword)
|
||||||
|
AddKeyword("__declspec", tok::kw___declspec, KEYALL, LangOpts, *this);
|
||||||
|
|
||||||
|
+ if (LangOpts.IEEE128)
|
||||||
|
+ AddKeyword("__ieee128", tok::kw___float128, KEYALL, LangOpts, *this);
|
||||||
|
+
|
||||||
|
// Add the 'import' contextual keyword.
|
||||||
|
get("import").setModulesImport(true);
|
||||||
|
}
|
||||||
|
diff --git a/clang/lib/Basic/Targets/PPC.cpp b/clang/lib/Basic/Targets/PPC.cpp
|
||||||
|
index ff09c0f..38f286c 100644
|
||||||
|
--- a/clang/lib/Basic/Targets/PPC.cpp
|
||||||
|
+++ b/clang/lib/Basic/Targets/PPC.cpp
|
||||||
|
@@ -551,6 +551,7 @@ void PPCTargetInfo::adjust(LangOptions &Opts) {
|
||||||
|
LongDoubleFormat = Opts.PPCIEEELongDouble
|
||||||
|
? &llvm::APFloat::IEEEquad()
|
||||||
|
: &llvm::APFloat::PPCDoubleDouble();
|
||||||
|
+ Opts.IEEE128 = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
ArrayRef<Builtin::Info> PPCTargetInfo::getTargetBuiltins() const {
|
||||||
|
diff --git a/clang/test/Sema/128bitfloat.cpp b/clang/test/Sema/128bitfloat.cpp
|
||||||
|
index 4a826b4..6a9ae74 100644
|
||||||
|
--- a/clang/test/Sema/128bitfloat.cpp
|
||||||
|
+++ b/clang/test/Sema/128bitfloat.cpp
|
||||||
|
@@ -6,6 +6,13 @@
|
||||||
|
// RUN: %clang_cc1 -triple x86_64-windows-msvc -verify -std=c++11 %s
|
||||||
|
|
||||||
|
#if defined(__FLOAT128__) || defined(__SIZEOF_FLOAT128__)
|
||||||
|
+
|
||||||
|
+#if defined(__ppc__)
|
||||||
|
+template <typename> struct __is_float128 { static constexpr bool value = false; };
|
||||||
|
+template <> struct __is_float128<__float128> { static constexpr bool value = true; };
|
||||||
|
+static_assert(__is_float128<__ieee128>::value, "__ieee128 aliases to __float128");
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
__float128 f;
|
||||||
|
template<typename> struct __is_floating_point_helper {};
|
||||||
|
template<> struct __is_floating_point_helper<__float128> {};
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
Binary file not shown.
BIN
SOURCES/clang-12.0.0.src.tar.xz.sig
Normal file
BIN
SOURCES/clang-12.0.0.src.tar.xz.sig
Normal file
Binary file not shown.
Binary file not shown.
BIN
SOURCES/clang-tools-extra-12.0.0.src.tar.xz.sig
Normal file
BIN
SOURCES/clang-tools-extra-12.0.0.src.tar.xz.sig
Normal file
Binary file not shown.
157
SPECS/clang.spec
157
SPECS/clang.spec
@ -1,10 +1,9 @@
|
|||||||
%global compat_build 0
|
%global compat_build 0
|
||||||
|
|
||||||
%global maj_ver 11
|
%global maj_ver 12
|
||||||
%global min_ver 0
|
%global min_ver 0
|
||||||
%global patch_ver 0
|
%global patch_ver 0
|
||||||
#%%global rc_ver 6
|
#%%global rc_ver 5
|
||||||
%global baserelease 1
|
|
||||||
|
|
||||||
%global clang_tools_binaries \
|
%global clang_tools_binaries \
|
||||||
%{_bindir}/clang-apply-replacements \
|
%{_bindir}/clang-apply-replacements \
|
||||||
@ -37,20 +36,21 @@
|
|||||||
%{_bindir}/clang-cpp \
|
%{_bindir}/clang-cpp \
|
||||||
|
|
||||||
%if 0%{?compat_build}
|
%if 0%{?compat_build}
|
||||||
%global pkg_name clang%{maj_ver}.%{min_ver}
|
%global pkg_name clang%{maj_ver}
|
||||||
# Install clang to same prefix as llvm, so that apps that use llvm-config
|
# Install clang to same prefix as llvm, so that apps that use llvm-config
|
||||||
# will also be able to find clang libs.
|
# will also be able to find clang libs.
|
||||||
%global install_prefix %{_libdir}/llvm%{maj_ver}.%{min_ver}
|
%global install_prefix %{_libdir}/llvm%{maj_ver}
|
||||||
%global install_bindir %{install_prefix}/bin
|
%global install_bindir %{install_prefix}/bin
|
||||||
%global install_includedir %{install_prefix}/include
|
%global install_includedir %{install_prefix}/include
|
||||||
%global install_libdir %{install_prefix}/lib
|
%global install_libdir %{install_prefix}/lib
|
||||||
|
|
||||||
%global pkg_bindir %{install_bindir}
|
%global pkg_bindir %{install_bindir}
|
||||||
%global pkg_includedir %{_includedir}/llvm%{maj_ver}.%{min_ver}
|
%global pkg_includedir %{install_includedir}
|
||||||
%global pkg_libdir %{install_libdir}
|
%global pkg_libdir %{install_libdir}
|
||||||
%else
|
%else
|
||||||
%global pkg_name clang
|
%global pkg_name clang
|
||||||
%global install_prefix /usr
|
%global install_prefix /usr
|
||||||
|
%global pkg_libdir %{_libdir}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||||
@ -61,15 +61,14 @@
|
|||||||
|
|
||||||
%global build_install_prefix %{buildroot}%{install_prefix}
|
%global build_install_prefix %{buildroot}%{install_prefix}
|
||||||
|
|
||||||
# Too many threads causes OOM errors.
|
%global _smp_mflags -j2
|
||||||
%global _smp_mflags -j8
|
|
||||||
|
|
||||||
%global clang_srcdir clang-%{version}%{?rc_ver:rc%{rc_ver}}.src
|
%global clang_srcdir clang-%{version}%{?rc_ver:rc%{rc_ver}}.src
|
||||||
%global clang_tools_srcdir clang-tools-extra-%{version}%{?rc_ver:rc%{rc_ver}}.src
|
%global clang_tools_srcdir clang-tools-extra-%{version}%{?rc_ver:rc%{rc_ver}}.src
|
||||||
|
|
||||||
Name: %pkg_name
|
Name: %pkg_name
|
||||||
Version: %{maj_ver}.%{min_ver}.%{patch_ver}
|
Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}
|
||||||
Release: %{baserelease}%{?rc_ver:.rc%{rc_ver}}%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: A C language family front-end for LLVM
|
Summary: A C language family front-end for LLVM
|
||||||
|
|
||||||
License: NCSA
|
License: NCSA
|
||||||
@ -80,33 +79,35 @@ Source3: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{versio
|
|||||||
Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}%{?rc_ver:-rc%{rc_ver}}/%{clang_tools_srcdir}.tar.xz
|
Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}%{?rc_ver:-rc%{rc_ver}}/%{clang_tools_srcdir}.tar.xz
|
||||||
Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}%{?rc_ver:-rc%{rc_ver}}/%{clang_tools_srcdir}.tar.xz.sig
|
Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}%{?rc_ver:-rc%{rc_ver}}/%{clang_tools_srcdir}.tar.xz.sig
|
||||||
%endif
|
%endif
|
||||||
Source4: https://prereleases.llvm.org/%{version}/hans-gpg-key.asc
|
Source4: tstellar-gpg-key.asc
|
||||||
|
|
||||||
Patch4: 0002-gtest-reorg.patch
|
# Patches for clang
|
||||||
Patch11: 0001-ToolChain-Add-lgcc_s-to-the-linker-flags-when-using-.patch
|
Patch0: 0001-PATCH-clang-Reorganize-gtest-integration.patch
|
||||||
Patch13: 0001-Make-funwind-tables-the-default-for-all-archs.patch
|
Patch1: 0002-PATCH-clang-Make-funwind-tables-the-default-on-all-a.patch
|
||||||
|
Patch2: 0003-PATCH-clang-Don-t-install-static-libraries.patch
|
||||||
|
Patch3: 0004-PATCH-clang-Prefer-gcc-toolchains-with-libgcc_s.so-w.patch
|
||||||
|
Patch4: 0005-PATCH-clang-Partially-Revert-scan-view-Remove-Report.patch
|
||||||
|
Patch5: 0006-PATCH-clang-Allow-__ieee128-as-an-alias-to-__float12.patch
|
||||||
|
|
||||||
# Not Upstream
|
# Patches for clang-tools-extra
|
||||||
Patch15: 0001-clang-Don-t-install-static-libraries.patch
|
%if !0%{?compat_build}
|
||||||
Patch16: 0001-clang-Fix-spurious-test-failure.patch
|
Patch201: 0001-PATCH-clang-tools-extra-Make-clangd-CompletionModel-.patch
|
||||||
Patch17: 0001-Driver-Prefer-gcc-toolchains-with-libgcc_s.so-when-n.patch
|
%endif
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: ninja-build
|
BuildRequires: ninja-build
|
||||||
%if 0%{?compat_build}
|
%if 0%{?compat_build}
|
||||||
BuildRequires: llvm%{maj_ver}.%{min_ver}-devel = %{version}
|
BuildRequires: llvm%{maj_ver}-devel = %{version}
|
||||||
BuildRequires: llvm%{maj_ver}.%{min_ver}-static = %{version}
|
BuildRequires: llvm%{maj_ver}-static = %{version}
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm-devel = %{version}
|
BuildRequires: llvm-devel = %{version}
|
||||||
%if 0%{?enable_test_pkg}
|
|
||||||
BuildRequires: llvm-test = %{version}
|
BuildRequires: llvm-test = %{version}
|
||||||
BuildRequires: llvm-googletest = %{version}
|
|
||||||
%endif
|
|
||||||
# llvm-static is required, because clang-tablegen needs libLLVMTableGen, which
|
# llvm-static is required, because clang-tablegen needs libLLVMTableGen, which
|
||||||
# is not included in libLLVM.so.
|
# is not included in libLLVM.so.
|
||||||
BuildRequires: llvm-static = %{version}
|
BuildRequires: llvm-static = %{version}
|
||||||
|
BuildRequires: llvm-googletest = %{version}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
BuildRequires: libxml2-devel
|
BuildRequires: libxml2-devel
|
||||||
@ -128,6 +129,13 @@ BuildRequires: libatomic
|
|||||||
# We need python3-devel for pathfix.py.
|
# We need python3-devel for pathfix.py.
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
|
||||||
|
%if ! 0%{?rhel}
|
||||||
|
# For reproducible pyc file generation
|
||||||
|
# See https://docs.fedoraproject.org/en-US/packaging-guidelines/Python_Appendix/#_byte_compilation_reproducibility
|
||||||
|
BuildRequires: /usr/bin/marshalparser
|
||||||
|
%global py_reproducible_pyc_path %{buildroot}%{python3_sitelib}
|
||||||
|
%endif
|
||||||
|
|
||||||
# Needed for %%multilib_fix_c_header
|
# Needed for %%multilib_fix_c_header
|
||||||
BuildRequires: multilib-rpm-config
|
BuildRequires: multilib-rpm-config
|
||||||
|
|
||||||
@ -168,8 +176,13 @@ The goal of the Clang project is to create a new C, C++, Objective C
|
|||||||
and Objective C++ front-end for the LLVM compiler. Its tools are built
|
and Objective C++ front-end for the LLVM compiler. Its tools are built
|
||||||
as libraries and designed to be loosely-coupled and extensible.
|
as libraries and designed to be loosely-coupled and extensible.
|
||||||
|
|
||||||
|
Install compiler-rt if you want the Blocks C language extension or to
|
||||||
|
enable sanitization and profiling options when building, and
|
||||||
|
libomp-devel to enable -fopenmp.
|
||||||
|
|
||||||
%package libs
|
%package libs
|
||||||
Summary: Runtime library for clang
|
Summary: Runtime library for clang
|
||||||
|
Requires: %{name}-resource-filesystem%{?_isa} = %{version}
|
||||||
Recommends: compiler-rt%{?_isa} = %{version}
|
Recommends: compiler-rt%{?_isa} = %{version}
|
||||||
# libomp-devel is required, so clang can find the omp.h header when compiling
|
# libomp-devel is required, so clang can find the omp.h header when compiling
|
||||||
# with -fopenmp.
|
# with -fopenmp.
|
||||||
@ -191,6 +204,13 @@ Requires: %{name}-libs = %{version}-%{release}
|
|||||||
%description devel
|
%description devel
|
||||||
Development header files for clang.
|
Development header files for clang.
|
||||||
|
|
||||||
|
%package resource-filesystem
|
||||||
|
Summary: Filesystem package that owns the clang resource directory
|
||||||
|
Provides: %{name}-resource-filesystem(major) = %{maj_ver}
|
||||||
|
|
||||||
|
%description resource-filesystem
|
||||||
|
This package owns the clang resouce directory: $libdir/clang/$version/
|
||||||
|
|
||||||
%if !0%{?compat_build}
|
%if !0%{?compat_build}
|
||||||
%package analyzer
|
%package analyzer
|
||||||
Summary: A source code analysis framework
|
Summary: A source code analysis framework
|
||||||
@ -238,25 +258,23 @@ Requires: python3
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%if 0%{?compat_build}
|
%if 0%{?compat_build}
|
||||||
%autosetup -n %{clang_srcdir} -p1
|
%autosetup -n %{clang_srcdir} -p2
|
||||||
%else
|
%else
|
||||||
%setup -T -q -b 1 -n %{clang_tools_srcdir}
|
%setup -T -q -b 1 -n %{clang_tools_srcdir}
|
||||||
|
%autopatch -m200 -p2
|
||||||
|
|
||||||
|
# failing test case
|
||||||
|
rm test/clang-tidy/checkers/altera-struct-pack-align.cpp
|
||||||
|
|
||||||
pathfix.py -i %{__python3} -pn \
|
pathfix.py -i %{__python3} -pn \
|
||||||
clang-tidy/tool/*.py \
|
clang-tidy/tool/*.py \
|
||||||
clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
|
clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
|
||||||
|
|
||||||
%setup -q -n %{clang_srcdir}
|
%setup -q -n %{clang_srcdir}
|
||||||
|
%autopatch -M200 -p2
|
||||||
|
|
||||||
%patch4 -p1 -b .gtest
|
# failing test case
|
||||||
%patch11 -p1 -b .libcxx-fix
|
rm test/CodeGen/profile-filter.c
|
||||||
%patch13 -p2 -b .unwind-all
|
|
||||||
%patch15 -p2 -b .no-install-static
|
|
||||||
%patch16 -p2 -b .test-fix2
|
|
||||||
%patch17 -p1 -b .check-gcc_s
|
|
||||||
|
|
||||||
mv ../%{clang_tools_srcdir} tools/extra
|
|
||||||
|
|
||||||
pathfix.py -i %{__python3} -pn \
|
pathfix.py -i %{__python3} -pn \
|
||||||
tools/clang-format/*.py \
|
tools/clang-format/*.py \
|
||||||
@ -267,14 +285,26 @@ pathfix.py -i %{__python3} -pn \
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
# We run the builders out of memory on armv7 and i686 when LTO is enabled
|
||||||
|
%ifarch %{arm} i686
|
||||||
|
%define _lto_cflags %{nil}
|
||||||
|
%else
|
||||||
|
# This package does not ship any object files or static libraries, so we
|
||||||
|
# don't need -ffat-lto-objects.
|
||||||
|
%global _lto_cflags %(echo %{_lto_cflags} | sed 's/-ffat-lto-objects//')
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# lto builds with gcc 11 fail while running the lit tests.
|
||||||
|
%define _lto_cflags %{nil}
|
||||||
|
|
||||||
%if 0%{?__isa_bits} == 64
|
%if 0%{?__isa_bits} == 64
|
||||||
sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@/64/g' test/lit.cfg.py
|
sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@/64/g' test/lit.cfg.py
|
||||||
%else
|
%else
|
||||||
sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@//g' test/lit.cfg.py
|
sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@//g' test/lit.cfg.py
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
mkdir -p _build
|
mkdir -p %{_vpath_builddir}
|
||||||
cd _build
|
cd %{_vpath_builddir}
|
||||||
|
|
||||||
%ifarch s390 s390x %{arm} %ix86 ppc64le
|
%ifarch s390 s390x %{arm} %ix86 ppc64le
|
||||||
# Decrease debuginfo verbosity to reduce memory consumption during final library linking
|
# Decrease debuginfo verbosity to reduce memory consumption during final library linking
|
||||||
@ -296,11 +326,13 @@ cd _build
|
|||||||
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
|
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?compat_build}
|
%if 0%{?compat_build}
|
||||||
-DLLVM_CONFIG:FILEPATH=%{_bindir}/llvm-config-%{maj_ver}.%{min_ver}-%{__isa_bits} \
|
-DCLANG_BUILD_TOOLS:BOOL=OFF \
|
||||||
|
-DLLVM_CONFIG:FILEPATH=%{_bindir}/llvm-config-%{maj_ver}-%{__isa_bits} \
|
||||||
-DCMAKE_INSTALL_PREFIX=%{install_prefix} \
|
-DCMAKE_INSTALL_PREFIX=%{install_prefix} \
|
||||||
-DCLANG_INCLUDE_TESTS:BOOL=OFF \
|
-DCLANG_INCLUDE_TESTS:BOOL=OFF \
|
||||||
%else
|
%else
|
||||||
-DCLANG_INCLUDE_TESTS:BOOL=ON \
|
-DCLANG_INCLUDE_TESTS:BOOL=ON \
|
||||||
|
-DLLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR=../../%{clang_tools_srcdir} \
|
||||||
-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
|
-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
|
||||||
-DLLVM_MAIN_SRC_DIR=%{_datadir}/llvm/src \
|
-DLLVM_MAIN_SRC_DIR=%{_datadir}/llvm/src \
|
||||||
%if 0%{?__isa_bits} == 64
|
%if 0%{?__isa_bits} == 64
|
||||||
@ -310,10 +342,10 @@ cd _build
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
\
|
\
|
||||||
%if !0%{compat_build}
|
%if 0%{compat_build}
|
||||||
-DLLVM_TABLEGEN_EXE:FILEPATH=%{_bindir}/llvm-tblgen \
|
-DLLVM_TABLEGEN_EXE:FILEPATH=%{_bindir}/llvm-tblgen-%{maj_ver} \
|
||||||
%else
|
%else
|
||||||
-DLLVM_TABLEGEN_EXE:FILEPATH=%{_bindir}/llvm-tblgen-%{maj_ver}.%{min_ver} \
|
-DLLVM_TABLEGEN_EXE:FILEPATH=%{_bindir}/llvm-tblgen \
|
||||||
%endif
|
%endif
|
||||||
-DCLANG_ENABLE_ARCMT:BOOL=ON \
|
-DCLANG_ENABLE_ARCMT:BOOL=ON \
|
||||||
-DCLANG_ENABLE_STATIC_ANALYZER:BOOL=ON \
|
-DCLANG_ENABLE_STATIC_ANALYZER:BOOL=ON \
|
||||||
@ -329,12 +361,16 @@ cd _build
|
|||||||
\
|
\
|
||||||
-DCLANG_BUILD_EXAMPLES:BOOL=OFF \
|
-DCLANG_BUILD_EXAMPLES:BOOL=OFF \
|
||||||
-DBUILD_SHARED_LIBS=OFF \
|
-DBUILD_SHARED_LIBS=OFF \
|
||||||
-DCLANG_REPOSITORY_STRING="%{?fedora:Fedora}%{?rhel:Red Hat} %{version}-%{release}"
|
-DCLANG_REPOSITORY_STRING="%{?fedora:Fedora}%{?rhel:Red Hat} %{version}-%{release}" \
|
||||||
|
-DCLANG_DEFAULT_UNWINDLIB=libgcc
|
||||||
|
|
||||||
%ninja_build -l 8
|
%cmake_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%ninja_install -C _build
|
|
||||||
|
pushd %{_vpath_builddir}
|
||||||
|
%cmake_install
|
||||||
|
popd
|
||||||
|
|
||||||
%if 0%{?compat_build}
|
%if 0%{?compat_build}
|
||||||
|
|
||||||
@ -369,9 +405,9 @@ rm -vf %{buildroot}%{_datadir}/clang/clang-format-bbedit.applescript
|
|||||||
rm -vf %{buildroot}%{_datadir}/clang/clang-format-sublime.py*
|
rm -vf %{buildroot}%{_datadir}/clang/clang-format-sublime.py*
|
||||||
|
|
||||||
# TODO: Package html docs
|
# TODO: Package html docs
|
||||||
rm -Rvf %{buildroot}%{_pkgdocdir}
|
rm -Rvf %{buildroot}%{_docdir}/clang/html
|
||||||
rm -Rvf %{buildroot}%{install_prefix}/share/clang/clang-doc-default-stylesheet.css
|
rm -Rvf %{buildroot}%{_datadir}/clang/clang-doc-default-stylesheet.css
|
||||||
rm -Rvf %{buildroot}%{install_prefix}/share/clang/index.js
|
rm -Rvf %{buildroot}%{_datadir}/clang/index.js
|
||||||
|
|
||||||
# TODO: What are the Fedora guidelines for packaging bash autocomplete files?
|
# TODO: What are the Fedora guidelines for packaging bash autocomplete files?
|
||||||
rm -vf %{buildroot}%{_datadir}/clang/bash-autocomplete.sh
|
rm -vf %{buildroot}%{_datadir}/clang/bash-autocomplete.sh
|
||||||
@ -397,23 +433,29 @@ pushd %{buildroot}%{_libdir}/clang/
|
|||||||
ln -s %{version} %{maj_ver}
|
ln -s %{version} %{maj_ver}
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
# Create sub-directories in the clang resource directory that will be
|
||||||
|
# populated by other packages
|
||||||
|
mkdir -p %{buildroot}%{_libdir}/clang/%{version}/{include,lib,share}/
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Remove clang-tidy headers. We don't ship the libraries for these.
|
# Remove clang-tidy headers. We don't ship the libraries for these.
|
||||||
rm -Rvf %{buildroot}%{_includedir}/clang-tidy/
|
rm -Rvf %{buildroot}%{_includedir}/clang-tidy/
|
||||||
|
|
||||||
|
# Add a symlink in /usr/bin to clang-format-diff
|
||||||
|
ln -s %{_datadir}/clang/clang-format-diff.py %{buildroot}%{_bindir}/clang-format-diff
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
cd %{_vpath_builddir}
|
||||||
|
|
||||||
%if !0%{?compat_build}
|
%if !0%{?compat_build}
|
||||||
# requires lit.py from LLVM utilities
|
# requires lit.py from LLVM utilities
|
||||||
# FIXME: Fix failing ARM tests, s390x i686 and ppc64le tests
|
# FIXME: Fix failing ARM tests
|
||||||
# FIXME: Ignore test failures until rhbz#1715016 is fixed.
|
LD_LIBRARY_PATH=%{buildroot}/%{_libdir} %cmake_build --target check-all || \
|
||||||
%if 0%{?enable_test_pkg}
|
%ifarch %{arm}
|
||||||
LD_LIBRARY_PATH=%{buildroot}%{_libdir} ninja check-all -C _build || \
|
|
||||||
%endif
|
|
||||||
%ifarch s390x i686 ppc64le %{arm}
|
|
||||||
:
|
:
|
||||||
%else
|
%else
|
||||||
:
|
false
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
@ -452,6 +494,15 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ninja check-all -C _build || \
|
|||||||
%{pkg_libdir}/cmake/
|
%{pkg_libdir}/cmake/
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%files resource-filesystem
|
||||||
|
%dir %{pkg_libdir}/clang/%{version}/
|
||||||
|
%dir %{pkg_libdir}/clang/%{version}/include/
|
||||||
|
%dir %{pkg_libdir}/clang/%{version}/lib/
|
||||||
|
%dir %{pkg_libdir}/clang/%{version}/share/
|
||||||
|
%if !0%{?compat_build}
|
||||||
|
%{pkg_libdir}/clang/%{maj_ver}
|
||||||
|
%endif
|
||||||
|
|
||||||
%if !0%{?compat_build}
|
%if !0%{?compat_build}
|
||||||
%files analyzer
|
%files analyzer
|
||||||
%{_bindir}/scan-view
|
%{_bindir}/scan-view
|
||||||
@ -467,6 +518,7 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ninja check-all -C _build || \
|
|||||||
%{_bindir}/c-index-test
|
%{_bindir}/c-index-test
|
||||||
%{_bindir}/find-all-symbols
|
%{_bindir}/find-all-symbols
|
||||||
%{_bindir}/modularize
|
%{_bindir}/modularize
|
||||||
|
%{_bindir}/clang-format-diff
|
||||||
%{_mandir}/man1/diagtool.1.gz
|
%{_mandir}/man1/diagtool.1.gz
|
||||||
%{_emacs_sitestartdir}/clang-format.el
|
%{_emacs_sitestartdir}/clang-format.el
|
||||||
%{_emacs_sitestartdir}/clang-rename.el
|
%{_emacs_sitestartdir}/clang-rename.el
|
||||||
@ -488,6 +540,9 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ninja check-all -C _build || \
|
|||||||
|
|
||||||
%endif
|
%endif
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu May 6 2021 sguelton@redhat.com - 12.0.0-1
|
||||||
|
- 12.0.0 release
|
||||||
|
|
||||||
* Thu Oct 29 2020 sguelton@redhat.com - 11.0.0-1
|
* Thu Oct 29 2020 sguelton@redhat.com - 11.0.0-1
|
||||||
- 11.0.0 final release
|
- 11.0.0 final release
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user