!214 [AutoBOLT] Backport and apply AutoBOLT from openEuler GCC 10.3.1

From: @li-yancheng 
Reviewed-by: @eastb233 
Signed-off-by: @eastb233
This commit is contained in:
openeuler-ci-bot 2022-10-20 07:24:38 +00:00 committed by Gitee
commit 9446b3b5e2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 23548 additions and 1 deletions

21697
Add-bolt-linker-plugin.patch Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -41,7 +41,7 @@ Version: 7.3.0
# number 2020033101 meaning the openEuler 20.03 release date plus 01 to
# replace DATE and will never change it in the future.
%global openEulerDATE 2020033101
Release: %{openEulerDATE}.49
Release: %{openEulerDATE}.50
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
Group: Development/Languages
#Source0: hcc-aarch64-linux-release.tar.bz2
@ -96,6 +96,8 @@ Patch39: fix-PR83666-punt-BLKmode-when-expand_debug_expr.patch
Patch40: fix-AArch64-128-bit-immediate-ICEs.patch
Patch41: PR-c-83227-C-17-ICE-with-init-list-derived.patch
Patch42: Remove-_GLIBCXX_USE_INT128-autoconf-macro.patch
Patch43: Add-bolt-linker-plugin.patch
Patch44: Enable-BOLT-linker-plugin-on-aarch64.patch
#AutoReqProv: off
AutoReq: true
@ -582,6 +584,8 @@ package or when debugging this package.
%patch40 -p1
%patch41 -p1
%patch42 -p1
%patch43 -p1
%patch44 -p1
%if 0%{?_enable_debug_packages}
cat > split-debuginfo.sh <<\EOF
@ -805,6 +809,7 @@ CC="$CC" CFLAGS="$OPT_FLAGS" \
--disable-multilib
%endif
%ifarch aarch64
--enable-bolt \
%if %{build_libilp32}
--with-multilib-list=lp64,ilp32
%else
@ -2080,6 +2085,9 @@ fi
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_version}/lto1
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_version}/lto-wrapper
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_version}/liblto_plugin.so*
%ifarch aarch64
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_version}/libbolt_plugin.so*
%endif
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_version}/rpmver
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_version}/include/stddef.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_version}/include/stdarg.h
@ -3338,6 +3346,11 @@ fi
%changelog
* Tue Oct 11 2022 liyancheng <412998149@qq.com> - 7.3.0-2020033101.50
- Add-bolt-linker-plugin.patch: New file
- Enable-BOLT-linker-plugin-on-aarch64.patch: New file
- gcc.spec: Add new patches, enable bolt plugin on aarch64.
* Wed Apr 20 2022 benniaobufeijiushiji <linda7@huawei.com> - 7.3.0-2020033101.49
- gcc.spec: Bugfix for removing Date in release version, use a const number instead.