From 7e0264975bb0640fef8265a85dbd63ed6339e6947e89e11c918426e2ffdc6643 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 22 Apr 2021 10:29:28 +0000 Subject: [PATCH] - BuildRequire procps from gcc11-testresults if we test go. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc11?expand=0&rev=339 --- cross-aarch64-gcc11.changes | 1 + cross-amdgcn-gcc11.changes | 1 + cross-arm-gcc11.changes | 1 + cross-arm-none-gcc11-bootstrap.changes | 1 + cross-arm-none-gcc11.changes | 1 + cross-avr-gcc11-bootstrap.changes | 1 + cross-avr-gcc11.changes | 1 + cross-epiphany-gcc11-bootstrap.changes | 1 + cross-epiphany-gcc11.changes | 1 + cross-hppa-gcc11.changes | 1 + cross-i386-gcc11.changes | 1 + cross-m68k-gcc11.changes | 1 + cross-mips-gcc11.changes | 1 + cross-nvptx-gcc11.changes | 1 + cross-ppc64-gcc11.changes | 1 + cross-ppc64le-gcc11.changes | 1 + cross-riscv64-elf-gcc11-bootstrap.changes | 1 + cross-riscv64-elf-gcc11.changes | 1 + cross-riscv64-gcc11.changes | 1 + cross-rx-gcc11-bootstrap.changes | 1 + cross-rx-gcc11.changes | 1 + cross-s390x-gcc11.changes | 1 + cross-sparc-gcc11.changes | 1 + cross-sparc64-gcc11.changes | 1 + cross-x86_64-gcc11.changes | 1 + gcc.spec.in | 3 ++ gcc11-testresults.changes | 1 + gcc11-testsuite-fixes.patch | 52 +++++++++++++++++++++++ gcc11.changes | 1 + 29 files changed, 82 insertions(+) diff --git a/cross-aarch64-gcc11.changes b/cross-aarch64-gcc11.changes index 1c77604..4e241ce 100644 --- a/cross-aarch64-gcc11.changes +++ b/cross-aarch64-gcc11.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-amdgcn-gcc11.changes b/cross-amdgcn-gcc11.changes index 1c77604..4e241ce 100644 --- a/cross-amdgcn-gcc11.changes +++ b/cross-amdgcn-gcc11.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-arm-gcc11.changes b/cross-arm-gcc11.changes index 1c77604..4e241ce 100644 --- a/cross-arm-gcc11.changes +++ b/cross-arm-gcc11.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-arm-none-gcc11-bootstrap.changes b/cross-arm-none-gcc11-bootstrap.changes index 1c77604..4e241ce 100644 --- a/cross-arm-none-gcc11-bootstrap.changes +++ b/cross-arm-none-gcc11-bootstrap.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-arm-none-gcc11.changes b/cross-arm-none-gcc11.changes index 1c77604..4e241ce 100644 --- a/cross-arm-none-gcc11.changes +++ b/cross-arm-none-gcc11.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-avr-gcc11-bootstrap.changes b/cross-avr-gcc11-bootstrap.changes index 1c77604..4e241ce 100644 --- a/cross-avr-gcc11-bootstrap.changes +++ b/cross-avr-gcc11-bootstrap.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-avr-gcc11.changes b/cross-avr-gcc11.changes index 1c77604..4e241ce 100644 --- a/cross-avr-gcc11.changes +++ b/cross-avr-gcc11.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-epiphany-gcc11-bootstrap.changes b/cross-epiphany-gcc11-bootstrap.changes index 1c77604..4e241ce 100644 --- a/cross-epiphany-gcc11-bootstrap.changes +++ b/cross-epiphany-gcc11-bootstrap.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-epiphany-gcc11.changes b/cross-epiphany-gcc11.changes index 1c77604..4e241ce 100644 --- a/cross-epiphany-gcc11.changes +++ b/cross-epiphany-gcc11.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-hppa-gcc11.changes b/cross-hppa-gcc11.changes index 1c77604..4e241ce 100644 --- a/cross-hppa-gcc11.changes +++ b/cross-hppa-gcc11.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-i386-gcc11.changes b/cross-i386-gcc11.changes index 1c77604..4e241ce 100644 --- a/cross-i386-gcc11.changes +++ b/cross-i386-gcc11.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-m68k-gcc11.changes b/cross-m68k-gcc11.changes index 1c77604..4e241ce 100644 --- a/cross-m68k-gcc11.changes +++ b/cross-m68k-gcc11.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-mips-gcc11.changes b/cross-mips-gcc11.changes index 1c77604..4e241ce 100644 --- a/cross-mips-gcc11.changes +++ b/cross-mips-gcc11.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-nvptx-gcc11.changes b/cross-nvptx-gcc11.changes index 1c77604..4e241ce 100644 --- a/cross-nvptx-gcc11.changes +++ b/cross-nvptx-gcc11.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-ppc64-gcc11.changes b/cross-ppc64-gcc11.changes index 1c77604..4e241ce 100644 --- a/cross-ppc64-gcc11.changes +++ b/cross-ppc64-gcc11.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-ppc64le-gcc11.changes b/cross-ppc64le-gcc11.changes index 1c77604..4e241ce 100644 --- a/cross-ppc64le-gcc11.changes +++ b/cross-ppc64le-gcc11.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-riscv64-elf-gcc11-bootstrap.changes b/cross-riscv64-elf-gcc11-bootstrap.changes index 1c77604..4e241ce 100644 --- a/cross-riscv64-elf-gcc11-bootstrap.changes +++ b/cross-riscv64-elf-gcc11-bootstrap.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-riscv64-elf-gcc11.changes b/cross-riscv64-elf-gcc11.changes index 1c77604..4e241ce 100644 --- a/cross-riscv64-elf-gcc11.changes +++ b/cross-riscv64-elf-gcc11.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-riscv64-gcc11.changes b/cross-riscv64-gcc11.changes index 1c77604..4e241ce 100644 --- a/cross-riscv64-gcc11.changes +++ b/cross-riscv64-gcc11.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-rx-gcc11-bootstrap.changes b/cross-rx-gcc11-bootstrap.changes index 1c77604..4e241ce 100644 --- a/cross-rx-gcc11-bootstrap.changes +++ b/cross-rx-gcc11-bootstrap.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-rx-gcc11.changes b/cross-rx-gcc11.changes index 1c77604..4e241ce 100644 --- a/cross-rx-gcc11.changes +++ b/cross-rx-gcc11.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-s390x-gcc11.changes b/cross-s390x-gcc11.changes index 1c77604..4e241ce 100644 --- a/cross-s390x-gcc11.changes +++ b/cross-s390x-gcc11.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-sparc-gcc11.changes b/cross-sparc-gcc11.changes index 1c77604..4e241ce 100644 --- a/cross-sparc-gcc11.changes +++ b/cross-sparc-gcc11.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-sparc64-gcc11.changes b/cross-sparc64-gcc11.changes index 1c77604..4e241ce 100644 --- a/cross-sparc64-gcc11.changes +++ b/cross-sparc64-gcc11.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/cross-x86_64-gcc11.changes b/cross-x86_64-gcc11.changes index 1c77604..4e241ce 100644 --- a/cross-x86_64-gcc11.changes +++ b/cross-x86_64-gcc11.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/gcc.spec.in b/gcc.spec.in index 6339e18..806d8d6 100644 --- a/gcc.spec.in +++ b/gcc.spec.in @@ -259,6 +259,9 @@ BuildRequires: libunwind-devel BuildRequires: dejagnu BuildRequires: expect BuildRequires: gdb +%if %{build_go} +BuildRequires: procps +%endif %if %{build_nvptx} BuildRequires: cross-nvptx-gcc@base_ver@ BuildRequires: cross-nvptx-newlib@base_ver@-devel diff --git a/gcc11-testresults.changes b/gcc11-testresults.changes index 1c77604..4e241ce 100644 --- a/gcc11-testresults.changes +++ b/gcc11-testresults.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener diff --git a/gcc11-testsuite-fixes.patch b/gcc11-testsuite-fixes.patch index be082a9..cf9c9a4 100644 --- a/gcc11-testsuite-fixes.patch +++ b/gcc11-testsuite-fixes.patch @@ -35,3 +35,55 @@ index e60fe3664ed..0eea73b144b 100644 #include +From c12b6eca31928a54f8d8040815750dd9c7ea3913 Mon Sep 17 00:00:00 2001 +From: Richard Biener +Date: Thu, 22 Apr 2021 10:53:00 +0200 +Subject: [PATCH] Avoid gfortran.dg/pr68078.f90 FAILs with rlimit in place +To: gcc-patches@gcc.gnu.org + +gfortran.dg/pr68078.f90 tries to lower the VM limit to provoke +allocation fails. If there's already a low VM limit in place +this limit adjustment can fail, causing a supurious execution +FAIL of the testcase. The following avoid this by not altering +the hard limit and returning successfully if the soft limit is +already good. + +2021-04-22 Richard Biener + + * gfortran.dg/set_vm_limit.c: Honor limits already in place. +--- + gcc/testsuite/gfortran.dg/set_vm_limit.c | 13 +++++++++++-- + 1 file changed, 11 insertions(+), 2 deletions(-) + +diff --git a/gcc/testsuite/gfortran.dg/set_vm_limit.c b/gcc/testsuite/gfortran.dg/set_vm_limit.c +index 30c4b43e0ed..b6a01bb3a98 100644 +--- a/gcc/testsuite/gfortran.dg/set_vm_limit.c ++++ b/gcc/testsuite/gfortran.dg/set_vm_limit.c +@@ -8,13 +8,22 @@ + void + set_vm_limit (int vm_limit) + { +- struct rlimit rl = { vm_limit, RLIM_INFINITY }; ++ struct rlimit rl; + int r; + ++ r = getrlimit (RLIMIT_AS, &rl); ++ if (r) ++ { ++ perror ("set_vm_limit: getrlimit"); ++ exit (1); ++ } ++ if (rl.rlim_cur <= vm_limit) ++ return; ++ rl.rlim_cur = vm_limit; + r = setrlimit (RLIMIT_AS, &rl); + if (r) + { +- perror ("set_vm_limit"); ++ perror ("set_vm_limit: setrlimit"); + exit (1); + } + +-- +2.26.2 + diff --git a/gcc11.changes b/gcc11.changes index 1c77604..4e241ce 100644 --- a/gcc11.changes +++ b/gcc11.changes @@ -4,6 +4,7 @@ Wed Apr 21 12:31:23 UTC 2021 - Richard Biener - Add gcc11-testsuite-fixes.patch, gcc11-no-offload.patch and gcc11-amdgcn-disable-hot-cold-partitioning.patch. - Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. ------------------------------------------------------------------- Tue Apr 20 14:57:07 UTC 2021 - Richard Biener