From 52dc136ec647891c6a2ebce2407d9d194b80f7a4 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 31 Mar 2023 07:24:24 +0000 Subject: [PATCH] Accepting request 1075289 from home:marxin:branches:devel:gcc - Speed up builds with --enable-link-serialization. OBS-URL: https://build.opensuse.org/request/show/1075289 OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc12?expand=0&rev=75 --- cross-aarch64-gcc12-bootstrap.spec | 5 +---- cross-aarch64-gcc12.spec | 5 +---- cross-amdgcn-gcc12.spec | 5 +---- cross-arm-gcc12.spec | 5 +---- cross-arm-none-gcc12-bootstrap.spec | 5 +---- cross-arm-none-gcc12.spec | 5 +---- cross-avr-gcc12-bootstrap.spec | 5 +---- cross-avr-gcc12.spec | 5 +---- cross-epiphany-gcc12-bootstrap.spec | 5 +---- cross-epiphany-gcc12.spec | 5 +---- cross-hppa-gcc12-bootstrap.spec | 5 +---- cross-hppa-gcc12.spec | 5 +---- cross-m68k-gcc12.spec | 5 +---- cross-mips-gcc12.spec | 5 +---- cross-nvptx-gcc12.spec | 5 +---- cross-ppc64-gcc12.spec | 5 +---- cross-ppc64le-gcc12.spec | 5 +---- cross-pru-gcc12-bootstrap.spec | 5 +---- cross-pru-gcc12.spec | 5 +---- cross-riscv64-elf-gcc12-bootstrap.spec | 5 +---- cross-riscv64-elf-gcc12.spec | 5 +---- cross-riscv64-gcc12-bootstrap.spec | 5 +---- cross-riscv64-gcc12.spec | 5 +---- cross-rx-gcc12-bootstrap.spec | 5 +---- cross-rx-gcc12.spec | 5 +---- cross-s390x-gcc12.spec | 5 +---- cross-sparc-gcc12.spec | 5 +---- cross-sparc64-gcc12.spec | 5 +---- cross-x86_64-gcc12.spec | 5 +---- gcc.spec.in | 5 +---- gcc12-testresults.spec | 5 +---- gcc12.changes | 5 +++++ gcc12.spec | 5 +---- 33 files changed, 37 insertions(+), 128 deletions(-) diff --git a/cross-aarch64-gcc12-bootstrap.spec b/cross-aarch64-gcc12-bootstrap.spec index 9b8141c..637fc6d 100644 --- a/cross-aarch64-gcc12-bootstrap.spec +++ b/cross-aarch64-gcc12-bootstrap.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-aarch64-gcc12.spec b/cross-aarch64-gcc12.spec index eafdeba..2ddcb48 100644 --- a/cross-aarch64-gcc12.spec +++ b/cross-aarch64-gcc12.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-amdgcn-gcc12.spec b/cross-amdgcn-gcc12.spec index 8e98f3e..ac59863 100644 --- a/cross-amdgcn-gcc12.spec +++ b/cross-amdgcn-gcc12.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-arm-gcc12.spec b/cross-arm-gcc12.spec index 95e6e1b..4706fb1 100644 --- a/cross-arm-gcc12.spec +++ b/cross-arm-gcc12.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-arm-none-gcc12-bootstrap.spec b/cross-arm-none-gcc12-bootstrap.spec index f114f53..fb618a8 100644 --- a/cross-arm-none-gcc12-bootstrap.spec +++ b/cross-arm-none-gcc12-bootstrap.spec @@ -694,11 +694,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-arm-none-gcc12.spec b/cross-arm-none-gcc12.spec index 9e7ac07..9bdfcde 100644 --- a/cross-arm-none-gcc12.spec +++ b/cross-arm-none-gcc12.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-avr-gcc12-bootstrap.spec b/cross-avr-gcc12-bootstrap.spec index a28a594..b100db1 100644 --- a/cross-avr-gcc12-bootstrap.spec +++ b/cross-avr-gcc12-bootstrap.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-avr-gcc12.spec b/cross-avr-gcc12.spec index f7db5aa..901deff 100644 --- a/cross-avr-gcc12.spec +++ b/cross-avr-gcc12.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-epiphany-gcc12-bootstrap.spec b/cross-epiphany-gcc12-bootstrap.spec index 00e9fc3..aa5bc11 100644 --- a/cross-epiphany-gcc12-bootstrap.spec +++ b/cross-epiphany-gcc12-bootstrap.spec @@ -694,11 +694,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-epiphany-gcc12.spec b/cross-epiphany-gcc12.spec index 060b943..8cd7b0f 100644 --- a/cross-epiphany-gcc12.spec +++ b/cross-epiphany-gcc12.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-hppa-gcc12-bootstrap.spec b/cross-hppa-gcc12-bootstrap.spec index 46ee52b..cb337ef 100644 --- a/cross-hppa-gcc12-bootstrap.spec +++ b/cross-hppa-gcc12-bootstrap.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-hppa-gcc12.spec b/cross-hppa-gcc12.spec index 0447107..d291877 100644 --- a/cross-hppa-gcc12.spec +++ b/cross-hppa-gcc12.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-m68k-gcc12.spec b/cross-m68k-gcc12.spec index 78dee91..5db79f6 100644 --- a/cross-m68k-gcc12.spec +++ b/cross-m68k-gcc12.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-mips-gcc12.spec b/cross-mips-gcc12.spec index c8ac753..089e3c8 100644 --- a/cross-mips-gcc12.spec +++ b/cross-mips-gcc12.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-nvptx-gcc12.spec b/cross-nvptx-gcc12.spec index d463feb..1c88744 100644 --- a/cross-nvptx-gcc12.spec +++ b/cross-nvptx-gcc12.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-ppc64-gcc12.spec b/cross-ppc64-gcc12.spec index 09e9a29..34aca23 100644 --- a/cross-ppc64-gcc12.spec +++ b/cross-ppc64-gcc12.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-ppc64le-gcc12.spec b/cross-ppc64le-gcc12.spec index 77ca617..b565071 100644 --- a/cross-ppc64le-gcc12.spec +++ b/cross-ppc64le-gcc12.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-pru-gcc12-bootstrap.spec b/cross-pru-gcc12-bootstrap.spec index 3d661dd..3c19c02 100644 --- a/cross-pru-gcc12-bootstrap.spec +++ b/cross-pru-gcc12-bootstrap.spec @@ -694,11 +694,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-pru-gcc12.spec b/cross-pru-gcc12.spec index 358fe80..0a6e54a 100644 --- a/cross-pru-gcc12.spec +++ b/cross-pru-gcc12.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-riscv64-elf-gcc12-bootstrap.spec b/cross-riscv64-elf-gcc12-bootstrap.spec index 1ab1949..04589df 100644 --- a/cross-riscv64-elf-gcc12-bootstrap.spec +++ b/cross-riscv64-elf-gcc12-bootstrap.spec @@ -694,11 +694,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-riscv64-elf-gcc12.spec b/cross-riscv64-elf-gcc12.spec index 5625582..2a30380 100644 --- a/cross-riscv64-elf-gcc12.spec +++ b/cross-riscv64-elf-gcc12.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-riscv64-gcc12-bootstrap.spec b/cross-riscv64-gcc12-bootstrap.spec index f7e09df..05fce60 100644 --- a/cross-riscv64-gcc12-bootstrap.spec +++ b/cross-riscv64-gcc12-bootstrap.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-riscv64-gcc12.spec b/cross-riscv64-gcc12.spec index 7dc37a9..fb5afd8 100644 --- a/cross-riscv64-gcc12.spec +++ b/cross-riscv64-gcc12.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-rx-gcc12-bootstrap.spec b/cross-rx-gcc12-bootstrap.spec index 8d42dc1..c98083f 100644 --- a/cross-rx-gcc12-bootstrap.spec +++ b/cross-rx-gcc12-bootstrap.spec @@ -694,11 +694,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-rx-gcc12.spec b/cross-rx-gcc12.spec index 0a1fdba..7f180a0 100644 --- a/cross-rx-gcc12.spec +++ b/cross-rx-gcc12.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-s390x-gcc12.spec b/cross-s390x-gcc12.spec index 626379c..79c367e 100644 --- a/cross-s390x-gcc12.spec +++ b/cross-s390x-gcc12.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-sparc-gcc12.spec b/cross-sparc-gcc12.spec index 9c2c00c..3e774be 100644 --- a/cross-sparc-gcc12.spec +++ b/cross-sparc-gcc12.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-sparc64-gcc12.spec b/cross-sparc64-gcc12.spec index ea8d367..35e1b0b 100644 --- a/cross-sparc64-gcc12.spec +++ b/cross-sparc64-gcc12.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/cross-x86_64-gcc12.spec b/cross-x86_64-gcc12.spec index 0db8301..bfbbf3e 100644 --- a/cross-x86_64-gcc12.spec +++ b/cross-x86_64-gcc12.spec @@ -693,11 +693,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/gcc.spec.in b/gcc.spec.in index 3df0485..76d5c9a 100644 --- a/gcc.spec.in +++ b/gcc.spec.in @@ -1579,11 +1579,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/gcc12-testresults.spec b/gcc12-testresults.spec index 537d6e4..ba751ea 100644 --- a/gcc12-testresults.spec +++ b/gcc12-testresults.spec @@ -892,11 +892,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \ diff --git a/gcc12.changes b/gcc12.changes index 81babf6..2b9e28e 100644 --- a/gcc12.changes +++ b/gcc12.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 29 14:27:43 UTC 2023 - Martin Liška + +- Speed up builds with --enable-link-serialization. + ------------------------------------------------------------------- Tue Jan 24 11:03:08 UTC 2023 - Richard Biener diff --git a/gcc12.spec b/gcc12.spec index c1a67ae..5da699d 100644 --- a/gcc12.spec +++ b/gcc12.spec @@ -2392,11 +2392,8 @@ amdgcn-amdhsa,\ %endif %if %{use_lto_bootstrap} && !0%{?building_testsuite:1} --with-build-config=bootstrap-lto-lean \ - --enable-link-mutex \ -%endif -%ifarch riscv64 - --enable-link-mutex \ %endif + --enable-link-serialization \ $CONFARGS \ --build=%{GCCDIST} \ --host=%{GCCDIST} || \