[AutoBOLT] Backport and apply AutoBOLT from openEuler GCC 10.3.1
Add option -fbolt-use for perform bolt optimization. Add option -fbolt-target to specify bolt optimization target. Add option -fbolt-option to specify bolt optimization options. Enable the BOLT linker plugin on aarch64 when configured with --enable-bolt.
This commit is contained in:
parent
dbef201284
commit
1daca1509f
21697
Add-bolt-linker-plugin.patch
Normal file
21697
Add-bolt-linker-plugin.patch
Normal file
File diff suppressed because it is too large
Load Diff
1837
Enable-BOLT-linker-plugin-on-aarch64.patch
Normal file
1837
Enable-BOLT-linker-plugin-on-aarch64.patch
Normal file
File diff suppressed because it is too large
Load Diff
15
gcc.spec
15
gcc.spec
@ -41,7 +41,7 @@ Version: 7.3.0
|
|||||||
# number 2020033101 meaning the openEuler 20.03 release date plus 01 to
|
# number 2020033101 meaning the openEuler 20.03 release date plus 01 to
|
||||||
# replace DATE and will never change it in the future.
|
# replace DATE and will never change it in the future.
|
||||||
%global openEulerDATE 2020033101
|
%global openEulerDATE 2020033101
|
||||||
Release: %{openEulerDATE}.49
|
Release: %{openEulerDATE}.50
|
||||||
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
|
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
#Source0: hcc-aarch64-linux-release.tar.bz2
|
#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
|
Patch40: fix-AArch64-128-bit-immediate-ICEs.patch
|
||||||
Patch41: PR-c-83227-C-17-ICE-with-init-list-derived.patch
|
Patch41: PR-c-83227-C-17-ICE-with-init-list-derived.patch
|
||||||
Patch42: Remove-_GLIBCXX_USE_INT128-autoconf-macro.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
|
#AutoReqProv: off
|
||||||
AutoReq: true
|
AutoReq: true
|
||||||
@ -582,6 +584,8 @@ package or when debugging this package.
|
|||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
%patch42 -p1
|
%patch42 -p1
|
||||||
|
%patch43 -p1
|
||||||
|
%patch44 -p1
|
||||||
|
|
||||||
%if 0%{?_enable_debug_packages}
|
%if 0%{?_enable_debug_packages}
|
||||||
cat > split-debuginfo.sh <<\EOF
|
cat > split-debuginfo.sh <<\EOF
|
||||||
@ -805,6 +809,7 @@ CC="$CC" CFLAGS="$OPT_FLAGS" \
|
|||||||
--disable-multilib
|
--disable-multilib
|
||||||
%endif
|
%endif
|
||||||
%ifarch aarch64
|
%ifarch aarch64
|
||||||
|
--enable-bolt \
|
||||||
%if %{build_libilp32}
|
%if %{build_libilp32}
|
||||||
--with-multilib-list=lp64,ilp32
|
--with-multilib-list=lp64,ilp32
|
||||||
%else
|
%else
|
||||||
@ -2080,6 +2085,9 @@ fi
|
|||||||
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_version}/lto1
|
%{_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}/lto-wrapper
|
||||||
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_version}/liblto_plugin.so*
|
%{_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}/rpmver
|
||||||
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_version}/include/stddef.h
|
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_version}/include/stddef.h
|
||||||
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_version}/include/stdarg.h
|
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_version}/include/stdarg.h
|
||||||
@ -3338,6 +3346,11 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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.
|
- gcc.spec: Bugfix for removing Date in release version, use a const number instead.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user