- backport from 11.5.0-5: rebuild for CVE-2020-11023 (RHEL-78377)

- backport from 11.5.0-4: revert the PR middle-end/57245 patch (RHEL-76359)
- backport from 11.5.0-3: honor -frounding-math in real truncation (PR middle-end/57245, RHEL-73749)
epel9
Robert Scheck 2 weeks ago
parent 906019e8fc
commit 1b30093a1b

@ -4,7 +4,7 @@
%global gcc_major 11 %global gcc_major 11
# Note, gcc_release must be integer, if you want to add suffixes to # Note, gcc_release must be integer, if you want to add suffixes to
# %%{release}, append them after %%{gcc_release} on Release: line. # %%{release}, append them after %%{gcc_release} on Release: line.
%global gcc_release 3 %global gcc_release 5
%global nvptx_tools_gitrev 5f6f343a302d620b0868edab376c00b15741e39e %global nvptx_tools_gitrev 5f6f343a302d620b0868edab376c00b15741e39e
%global newlib_cygwin_gitrev 50e2a63b04bdd018484605fbb954fd1bd5147fa0 %global newlib_cygwin_gitrev 50e2a63b04bdd018484605fbb954fd1bd5147fa0
%global _unpackaged_files_terminate_build 0 %global _unpackaged_files_terminate_build 0
@ -128,7 +128,7 @@
# TODO: Add ppc64le-redhat-linux s390x-redhat-linux later. # TODO: Add ppc64le-redhat-linux s390x-redhat-linux later.
%global cross_targets aarch64-redhat-linux %global cross_targets aarch64-redhat-linux
# Override RHEL/derivative build options for gcc-epel # Override RHEL/derivative build options for gcc-epel
%global epel_bootstrap 0 %global epel_bootstrap 1
%global epel_glibc32 0 %global epel_glibc32 0
%global build_ada 1 %global build_ada 1
%global build_objc 1 %global build_objc 1
@ -351,6 +351,7 @@ Patch35: gcc11-testsuite-aarch64-add-fno-stack-protector.patch
Patch36: gcc11-libgfortran-flush.patch Patch36: gcc11-libgfortran-flush.patch
Patch37: gcc11-pr113960.patch Patch37: gcc11-pr113960.patch
Patch38: gcc11-pr105157.patch Patch38: gcc11-pr105157.patch
Patch39: gcc11-testsuite-fixes-4.patch
Patch100: gcc11-fortran-fdec-duplicates.patch Patch100: gcc11-fortran-fdec-duplicates.patch
Patch101: gcc11-fortran-flogical-as-integer.patch Patch101: gcc11-fortran-flogical-as-integer.patch
@ -977,6 +978,7 @@ mark them as cross compiled.
%patch36 -p1 -b .libgfortran-flush~ %patch36 -p1 -b .libgfortran-flush~
%patch37 -p1 -b .pr113960~ %patch37 -p1 -b .pr113960~
%patch38 -p1 -b .pr105157~ %patch38 -p1 -b .pr105157~
%patch39 -p1 -b .testsuite4~
%if 0%{?rhel} >= 9 %if 0%{?rhel} >= 9
%patch100 -p1 -b .fortran-fdec-duplicates~ %patch100 -p1 -b .fortran-fdec-duplicates~
@ -3793,6 +3795,11 @@ end
%endif %endif
%changelog %changelog
* Tue Feb 19 2025 Robert Scheck <robert@fedoraproject.org> 11.5.0-5
- backport from 11.5.0-5: rebuild for CVE-2020-11023 (RHEL-78377)
- backport from 11.5.0-4: revert the PR middle-end/57245 patch (RHEL-76359)
- backport from 11.5.0-3: honor -frounding-math in real truncation (PR middle-end/57245, RHEL-73749)
* Fri Nov 29 2024 Robert Scheck <robert@fedoraproject.org> 11.5.0-3 * Fri Nov 29 2024 Robert Scheck <robert@fedoraproject.org> 11.5.0-3
- disable bootstrap mode and rebuild using gcc-epel-11.5.0-2.el9 - disable bootstrap mode and rebuild using gcc-epel-11.5.0-2.el9

@ -0,0 +1,38 @@
commit 181f40f5cf8510a16191e4768dadbe2cb7a5c095
Author: Jakub Jelinek <jakub@redhat.com>
Date: Wed Jul 24 18:00:05 2024 +0200
testsuite: Fix up pr116034.c test for big/pdp endian [PR116061]
Didn't notice the memmove is into an int variable, so the test
was still failing on big endian.
2024-07-24 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/116034
PR testsuite/116061
* gcc.dg/pr116034.c (g): Change type from int to unsigned short.
(foo): Guard memmove call on __SIZEOF_SHORT__ == 2.
(cherry picked from commit 69e69847e21a8d951ab5f09fd3421449564dba31)
diff --git a/gcc/testsuite/gcc.dg/pr116034.c b/gcc/testsuite/gcc.dg/pr116034.c
index 9a31de03424..955b4c9e86b 100644
--- a/gcc/testsuite/gcc.dg/pr116034.c
+++ b/gcc/testsuite/gcc.dg/pr116034.c
@@ -2,12 +2,13 @@
/* { dg-do run } */
/* { dg-options "-O1 -fno-strict-aliasing" } */
-int g;
+unsigned short int g;
static inline int
foo (_Complex unsigned short c)
{
- __builtin_memmove (&g, 1 + (char *) &c, 2);
+ if (__SIZEOF_SHORT__ == 2)
+ __builtin_memmove (&g, 1 + (char *) &c, 2);
return g;
}
Loading…
Cancel
Save