!41 FIO fix
From: @eastb233 Reviewed-by: @jdkboy Signed-off-by: @jdkboy
This commit is contained in:
commit
6a3ee495ea
23
fix-when-peeling-for-alignment.patch
Normal file
23
fix-when-peeling-for-alignment.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c
|
||||||
|
index 36639b697f1..88f14e73d65 100644
|
||||||
|
--- a/gcc/tree-vect-data-refs.c
|
||||||
|
+++ b/gcc/tree-vect-data-refs.c
|
||||||
|
@@ -938,6 +938,18 @@ vect_compute_data_ref_alignment (dr_vec_info *dr_info)
|
||||||
|
= exact_div (vect_calculate_target_alignment (dr_info), BITS_PER_UNIT);
|
||||||
|
DR_TARGET_ALIGNMENT (dr_info) = vector_alignment;
|
||||||
|
|
||||||
|
+ /* If the main loop has peeled for alignment we have no way of knowing
|
||||||
|
+ whether the data accesses in the epilogues are aligned. We can't at
|
||||||
|
+ compile time answer the question whether we have entered the main loop or
|
||||||
|
+ not. Fixes PR 92351. */
|
||||||
|
+ if (loop_vinfo)
|
||||||
|
+ {
|
||||||
|
+ loop_vec_info orig_loop_vinfo = LOOP_VINFO_ORIG_LOOP_INFO (loop_vinfo);
|
||||||
|
+ if (orig_loop_vinfo
|
||||||
|
+ && LOOP_VINFO_PEELING_FOR_ALIGNMENT (orig_loop_vinfo) != 0)
|
||||||
|
+ return;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
unsigned HOST_WIDE_INT vect_align_c;
|
||||||
|
if (!vector_alignment.is_constant (&vect_align_c))
|
||||||
|
return;
|
||||||
7
gcc.spec
7
gcc.spec
@ -59,7 +59,7 @@
|
|||||||
Summary: Various compilers (C, C++, Objective-C, ...)
|
Summary: Various compilers (C, C++, Objective-C, ...)
|
||||||
Name: gcc
|
Name: gcc
|
||||||
Version: %{gcc_version}
|
Version: %{gcc_version}
|
||||||
Release: %{DATE}.11
|
Release: %{DATE}.12
|
||||||
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
|
||||||
Source0: gcc-9.3.0.tar.xz
|
Source0: gcc-9.3.0.tar.xz
|
||||||
%global isl_version 0.16.1
|
%global isl_version 0.16.1
|
||||||
@ -184,6 +184,7 @@ Patch69: fix-ICE-during-GIMPLE-pass-dse.patch
|
|||||||
Patch70: ipa-const-prop-buffer-overflow-bugfix.patch
|
Patch70: ipa-const-prop-buffer-overflow-bugfix.patch
|
||||||
Patch71: fix-ICE-in-eliminate_stmt.patch
|
Patch71: fix-ICE-in-eliminate_stmt.patch
|
||||||
Patch72: fix-make-ifcvt-clean-up-dead-comparisons.patch
|
Patch72: fix-make-ifcvt-clean-up-dead-comparisons.patch
|
||||||
|
Patch73: fix-when-peeling-for-alignment.patch
|
||||||
|
|
||||||
|
|
||||||
%global gcc_target_platform %{_arch}-linux-gnu
|
%global gcc_target_platform %{_arch}-linux-gnu
|
||||||
@ -699,6 +700,7 @@ not stable, so plugins must be rebuilt any time GCC is updated.
|
|||||||
%patch70 -p1
|
%patch70 -p1
|
||||||
%patch71 -p1
|
%patch71 -p1
|
||||||
%patch72 -p1
|
%patch72 -p1
|
||||||
|
%patch73 -p1
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -2627,6 +2629,9 @@ end
|
|||||||
%doc rpm.doc/changelogs/libcc1/ChangeLog*
|
%doc rpm.doc/changelogs/libcc1/ChangeLog*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 22 2020 eastb233 <xiezhiheng@huawei.com> - 9.3.1-20200922.12
|
||||||
|
- fix-when-peeling-for-alignment.patch: New file
|
||||||
|
|
||||||
* Tue Sep 22 2020 eastb233 <xiezhiheng@huawei.com> - 9.3.1-20200922.11
|
* Tue Sep 22 2020 eastb233 <xiezhiheng@huawei.com> - 9.3.1-20200922.11
|
||||||
- gcc.spec: Delete pkgversion
|
- gcc.spec: Delete pkgversion
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user