diff --git a/0001-PATCH-compiler-rt-Workaround-libstdc-limitation-wrt..patch b/0001-PATCH-compiler-rt-Workaround-libstdc-limitation-wrt..patch deleted file mode 100644 index f734b5f950d8a064deaf80dff7c33ce7fcd3cced..0000000000000000000000000000000000000000 --- a/0001-PATCH-compiler-rt-Workaround-libstdc-limitation-wrt..patch +++ /dev/null @@ -1,43 +0,0 @@ -From 8247295860b69fd379e282c3e6315df9f700e4d8 Mon Sep 17 00:00:00 2001 -From: serge-sans-paille -Date: Thu, 25 Feb 2021 14:12:57 +0100 -Subject: [PATCH][compiler-rt] Workaround libstdc++ limitation wrt. thread copy - ---- - compiler-rt/lib/fuzzer/FuzzerDefs.h | 6 ++++++ - compiler-rt/lib/fuzzer/FuzzerDriver.cpp | 2 +- - 2 files changed, 7 insertions(+), 1 deletion(-) - -diff --git a/compiler-rt/lib/fuzzer/FuzzerDefs.h b/compiler-rt/lib/fuzzer/FuzzerDefs.h -index 1a2752a..abfbb8d 100644 ---- a/compiler-rt/lib/fuzzer/FuzzerDefs.h -+++ b/compiler-rt/lib/fuzzer/FuzzerDefs.h -@@ -50,6 +50,12 @@ template - - template - struct rebind { typedef fuzzer_allocator other; }; -+ -+ template< class U, class... Args > -+ void construct( U* p, Args&&... args ) { -+ std::allocator::construct(p, std::forward(args)...); -+ } -+ - }; - - template -diff --git a/compiler-rt/lib/fuzzer/FuzzerDriver.cpp b/compiler-rt/lib/fuzzer/FuzzerDriver.cpp -index 447cafc..2fce139 100644 ---- a/compiler-rt/lib/fuzzer/FuzzerDriver.cpp -+++ b/compiler-rt/lib/fuzzer/FuzzerDriver.cpp -@@ -294,7 +294,7 @@ static int RunInMultipleProcesses(const Vector &Args, - std::thread Pulse(PulseThread); - Pulse.detach(); - for (unsigned i = 0; i < NumWorkers; i++) -- V.push_back(std::thread(WorkerThread, std::ref(Cmd), &Counter, NumJobs, &HasErrors)); -+ V.emplace_back(WorkerThread, std::ref(Cmd), &Counter, NumJobs, &HasErrors); - for (auto &T : V) - T.join(); - return HasErrors ? 1 : 0; --- -1.8.3.1 - diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..c4be1f3d264ba76276c3dc2fd7419bc38646a071 --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# Compiler-rt + +#### 介绍 +The compiler-rt project is a part of the LLVM project. It provides +implementation of the low-level target-specific hooks required by +code generation, sanitizer runtimes and profiling library for code +instrumentation, and Blocks C language extension. +#### 参与贡献 + +1. Fork 本仓库 +2. 新建 Feat_xxx 分支 +3. 提交代码 +4. 新建 Pull Request + + +#### 特技 + +1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md +2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) +3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 +4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 +5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) +6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/compiler-rt-12.0.1.src.tar.xz b/compiler-rt-12.0.1.src.tar.xz deleted file mode 100644 index 0e4d10aff466ba59a5114e75f25e431dee951de6..0000000000000000000000000000000000000000 Binary files a/compiler-rt-12.0.1.src.tar.xz and /dev/null differ diff --git a/compiler-rt.spec b/compiler-rt.spec deleted file mode 100644 index cf2c79d8c211dd502d2850517e41a48e144e1862..0000000000000000000000000000000000000000 --- a/compiler-rt.spec +++ /dev/null @@ -1,139 +0,0 @@ -%global crt_srcdir compiler-rt-%{version}%{?rc_ver:rc%{rc_ver}}.src -%global optflags %(echo %{optflags} -D_DEFAULT_SOURCE) -%global optflags %(echo %{optflags} -Dasm=__asm__) - -Name: compiler-rt -Version: 12.0.1 -Release: 2 -Summary: LLVM "compiler-rt" runtime libraries - -License: NCSA or MIT -URL: http://llvm.org -Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{crt_srcdir}.tar.xz -Source2: tstellar-gpg-key.asc -Patch0: 0001-PATCH-compiler-rt-Workaround-libstdc-limitation-wrt..patch - -BuildRequires: gcc -BuildRequires: gcc-c++ -BuildRequires: cmake -BuildRequires: ninja-build -BuildRequires: python3 -# We need python3-devel for pathfix.py. -BuildRequires: python3-devel -BuildRequires: llvm-devel = %{version} -# For gpg source verification -BuildRequires: gnupg2 -BuildRequires: chrpath - -Requires: clang-resource-filesystem%{?isa} = %{version} - -%description -The compiler-rt project is a part of the LLVM project. It provides -implementation of the low-level target-specific hooks required by -code generation, sanitizer runtimes and profiling library for code -instrumentation, and Blocks C language extension. - -%prep -%autosetup -n %{crt_srcdir} -p2 -pathfix.py -i %{__python3} -pn lib/hwasan/scripts/hwasan_symbolize - -%build -mkdir -p _build -cd _build -%cmake .. \ - -DCMAKE_BUILD_TYPE=RelWithDebInfo \ - -DLLVM_CONFIG_PATH:FILEPATH=%{_bindir}/llvm-config-%{__isa_bits} \ - \ -%if 0%{?__isa_bits} == 64 - -DLLVM_LIBDIR_SUFFIX=64 \ -%else - -DLLVM_LIBDIR_SUFFIX= \ -%endif - -DCOMPILER_RT_INCLUDE_TESTS:BOOL=OFF # could be on? - -%make_build - -%install -cd _build -%make_install - -# delete run path in DSO -for file in `find %{buildroot}%{_prefix} -name "lib*.so*"`; do - chrpath -d $file -done - -# move blacklist/abilist files to where clang expect them -mkdir -p %{buildroot}%{_libdir}/clang/%{version}/share -mv -v %{buildroot}%{_datadir}/*list.txt %{buildroot}%{_libdir}/clang/%{version}/share/ - -# move sanitizer libs to better place -%global libclang_rt_installdir lib/linux -mkdir -p %{buildroot}%{_libdir}/clang/%{version}/lib -mv -v %{buildroot}%{_prefix}/%{libclang_rt_installdir}/*clang_rt* %{buildroot}%{_libdir}/clang/%{version}/lib -mkdir -p %{buildroot}%{_libdir}/clang/%{version}/lib/linux/ -pushd %{buildroot}%{_libdir}/clang/%{version}/lib -for i in *.a *.so -do - ln -s ../$i linux/$i -done -popd - -# multilib support: also create symlink from lib to lib64, fixes rhbz#1678240 -# the symlinks will be dangling if the 32 bits version is not installed, but that should be fine -%ifarch %{ix86} -%post -if test "`uname -m`" = x86_64 -then - cd %{_libdir}/clang/%{version}/lib - mkdir -p ../../../../lib64/clang/%{version}/lib - for i in *.a *.so - do - ln -s ../../../../%{_lib}/clang/%{version}/lib/$i ../../../../lib64/clang/%{version}/lib/$i - done -fi - -%preun - -if test "`uname -m`" = x86_64 -then - cd %{_libdir}/clang/%{version}/lib - for i in *.a *.so - do - rm ../../../../lib64/clang/%{version}/lib/$i - done - rmdir -p ../../../../lib64/clang/%{version}/lib 2>/dev/null 1>/dev/null || : -fi - -%endif - -%check - -#%%cmake_build --target check-compiler-rt - -%files -%license LICENSE.TXT -%{_includedir}/* -%{_libdir}/clang/%{version}/lib/* -%{_libdir}/clang/%{version}/share/* -%ifarch x86_64 aarch64 -%{_bindir}/hwasan_symbolize -%endif - -%changelog -* Tue Dec 20 2022 eastb233 - 12.0.1-2 -- Delete run path in DSO - -* Mon Dec 27 2021 Chen Chen - 12.0.1-1 -- Update to 12.0.1 - -* Fri Sep 25 2020 Guoshuai Sun - 10.0.1-3 -- hwasan_symbolize should run in python2 and python3, and python3 is default now - -* Sat Sep 19 2020 Guoshuai Sun - 10.0.1-2 -- Keep "/usr/bin/env python" instead of /usr/bin/python3 in hwasan_symbolize - -* Thu Jul 30 2020 Guoshuai Sun - 10.0.1-1 -- Update to 10.0.1 - -* Thu Dec 5 2019 openEuler Buildteam - 7.0.0-2 -- Package init diff --git a/compiler-rt.yaml b/compiler-rt.yaml deleted file mode 100644 index 7d98bd835f0acc97da741f20f900a6ebae1512c5..0000000000000000000000000000000000000000 --- a/compiler-rt.yaml +++ /dev/null @@ -1,4 +0,0 @@ -version_control: github -src_repo: llvm/llvm-project -tag_prefix: ^llvmorg- -seperator: . diff --git a/tstellar-gpg-key.asc b/tstellar-gpg-key.asc deleted file mode 100644 index eba625c41a5fb1646d8b087acb97a6f079901712..0000000000000000000000000000000000000000 Binary files a/tstellar-gpg-key.asc and /dev/null differ