From 9ab7df18219697eb3e027e57115502d716b5ed6a8736a31596c1c502d5668437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Li=C5=A1ka?= Date: Fri, 8 Jan 2021 08:51:28 +0000 Subject: [PATCH] Sync changes with gcc10. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc11?expand=0&rev=222 --- cross-aarch64-gcc11.spec | 9 ++++++-- cross-amdgcn-gcc11.spec | 9 ++++++-- cross-arm-gcc11.spec | 9 ++++++-- cross-arm-none-gcc11-bootstrap.spec | 9 ++++++-- cross-arm-none-gcc11.spec | 9 ++++++-- cross-avr-gcc11-bootstrap.spec | 9 ++++++-- cross-avr-gcc11.spec | 9 ++++++-- cross-epiphany-gcc11-bootstrap.spec | 9 ++++++-- cross-epiphany-gcc11.spec | 9 ++++++-- cross-hppa-gcc11.spec | 9 ++++++-- cross-i386-gcc11.spec | 9 ++++++-- cross-m68k-gcc11.spec | 9 ++++++-- cross-mips-gcc11.spec | 9 ++++++-- cross-nvptx-gcc11.spec | 9 ++++++-- cross-ppc64-gcc11.spec | 9 ++++++-- cross-ppc64le-gcc11.spec | 9 ++++++-- cross-riscv64-elf-gcc11-bootstrap.spec | 9 ++++++-- cross-riscv64-elf-gcc11.spec | 9 ++++++-- cross-riscv64-gcc11.spec | 9 ++++++-- cross-rx-gcc11-bootstrap.spec | 9 ++++++-- cross-rx-gcc11.spec | 9 ++++++-- cross-s390x-gcc11.spec | 9 ++++++-- cross-sparc-gcc11.spec | 9 ++++++-- cross-sparc64-gcc11.spec | 9 ++++++-- cross-x86_64-gcc11.spec | 9 ++++++-- gcc.spec.in | 19 ++++++++++++++--- gcc10-amdgcn-llvm-as.patch | 29 ++++++++++++++++++++++++++ gcc11-testresults.spec | 19 ++++++++++++++--- gcc11.spec | 19 ++++++++++++++--- 29 files changed, 252 insertions(+), 59 deletions(-) create mode 100644 gcc10-amdgcn-llvm-as.patch diff --git a/cross-aarch64-gcc11.spec b/cross-aarch64-gcc11.spec index 0c80918..7df94f2 100644 --- a/cross-aarch64-gcc11.spec +++ b/cross-aarch64-gcc11.spec @@ -136,6 +136,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -299,6 +300,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -367,6 +371,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -408,10 +413,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-amdgcn-gcc11.spec b/cross-amdgcn-gcc11.spec index d52a27a..0655ae1 100644 --- a/cross-amdgcn-gcc11.spec +++ b/cross-amdgcn-gcc11.spec @@ -136,6 +136,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -299,6 +300,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -367,6 +371,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -408,10 +413,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-arm-gcc11.spec b/cross-arm-gcc11.spec index 4c24184..624c216 100644 --- a/cross-arm-gcc11.spec +++ b/cross-arm-gcc11.spec @@ -136,6 +136,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -299,6 +300,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -367,6 +371,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -408,10 +413,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-arm-none-gcc11-bootstrap.spec b/cross-arm-none-gcc11-bootstrap.spec index 8b2c3bb..77341d0 100644 --- a/cross-arm-none-gcc11-bootstrap.spec +++ b/cross-arm-none-gcc11-bootstrap.spec @@ -137,6 +137,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -300,6 +301,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -368,6 +372,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -409,10 +414,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-arm-none-gcc11.spec b/cross-arm-none-gcc11.spec index 30fbfba..4b52234 100644 --- a/cross-arm-none-gcc11.spec +++ b/cross-arm-none-gcc11.spec @@ -136,6 +136,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -299,6 +300,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -367,6 +371,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -408,10 +413,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-avr-gcc11-bootstrap.spec b/cross-avr-gcc11-bootstrap.spec index de1a9af..12843f8 100644 --- a/cross-avr-gcc11-bootstrap.spec +++ b/cross-avr-gcc11-bootstrap.spec @@ -136,6 +136,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -299,6 +300,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -367,6 +371,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -408,10 +413,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-avr-gcc11.spec b/cross-avr-gcc11.spec index f7ce9ad..6ae5f78 100644 --- a/cross-avr-gcc11.spec +++ b/cross-avr-gcc11.spec @@ -136,6 +136,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -299,6 +300,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -367,6 +371,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -408,10 +413,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-epiphany-gcc11-bootstrap.spec b/cross-epiphany-gcc11-bootstrap.spec index 1b66add..452779a 100644 --- a/cross-epiphany-gcc11-bootstrap.spec +++ b/cross-epiphany-gcc11-bootstrap.spec @@ -137,6 +137,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -300,6 +301,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -368,6 +372,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -409,10 +414,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-epiphany-gcc11.spec b/cross-epiphany-gcc11.spec index ec86531..888a909 100644 --- a/cross-epiphany-gcc11.spec +++ b/cross-epiphany-gcc11.spec @@ -136,6 +136,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -299,6 +300,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -367,6 +371,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -408,10 +413,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-hppa-gcc11.spec b/cross-hppa-gcc11.spec index d2b1786..39d46f2 100644 --- a/cross-hppa-gcc11.spec +++ b/cross-hppa-gcc11.spec @@ -136,6 +136,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -299,6 +300,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -367,6 +371,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -408,10 +413,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-i386-gcc11.spec b/cross-i386-gcc11.spec index d066228..39f9f71 100644 --- a/cross-i386-gcc11.spec +++ b/cross-i386-gcc11.spec @@ -136,6 +136,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -299,6 +300,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -367,6 +371,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -408,10 +413,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-m68k-gcc11.spec b/cross-m68k-gcc11.spec index 8a8a3f5..9a989da 100644 --- a/cross-m68k-gcc11.spec +++ b/cross-m68k-gcc11.spec @@ -136,6 +136,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -299,6 +300,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -367,6 +371,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -408,10 +413,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-mips-gcc11.spec b/cross-mips-gcc11.spec index ebfe216..b58e8b2 100644 --- a/cross-mips-gcc11.spec +++ b/cross-mips-gcc11.spec @@ -136,6 +136,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -299,6 +300,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -367,6 +371,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -408,10 +413,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-nvptx-gcc11.spec b/cross-nvptx-gcc11.spec index 06b42ec..ec0eaad 100644 --- a/cross-nvptx-gcc11.spec +++ b/cross-nvptx-gcc11.spec @@ -136,6 +136,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -299,6 +300,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -367,6 +371,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -408,10 +413,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-ppc64-gcc11.spec b/cross-ppc64-gcc11.spec index 607977e..8056768 100644 --- a/cross-ppc64-gcc11.spec +++ b/cross-ppc64-gcc11.spec @@ -136,6 +136,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -299,6 +300,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -367,6 +371,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -408,10 +413,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-ppc64le-gcc11.spec b/cross-ppc64le-gcc11.spec index f0f4bbf..f435595 100644 --- a/cross-ppc64le-gcc11.spec +++ b/cross-ppc64le-gcc11.spec @@ -136,6 +136,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -299,6 +300,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -367,6 +371,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -408,10 +413,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-riscv64-elf-gcc11-bootstrap.spec b/cross-riscv64-elf-gcc11-bootstrap.spec index 27c5e09..db97b13 100644 --- a/cross-riscv64-elf-gcc11-bootstrap.spec +++ b/cross-riscv64-elf-gcc11-bootstrap.spec @@ -137,6 +137,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -300,6 +301,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -368,6 +372,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -409,10 +414,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-riscv64-elf-gcc11.spec b/cross-riscv64-elf-gcc11.spec index 0205327..f621845 100644 --- a/cross-riscv64-elf-gcc11.spec +++ b/cross-riscv64-elf-gcc11.spec @@ -136,6 +136,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -299,6 +300,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -367,6 +371,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -408,10 +413,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-riscv64-gcc11.spec b/cross-riscv64-gcc11.spec index 94f9ff7..9df1738 100644 --- a/cross-riscv64-gcc11.spec +++ b/cross-riscv64-gcc11.spec @@ -136,6 +136,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -299,6 +300,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -367,6 +371,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -408,10 +413,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-rx-gcc11-bootstrap.spec b/cross-rx-gcc11-bootstrap.spec index 178d1d7..f6940be 100644 --- a/cross-rx-gcc11-bootstrap.spec +++ b/cross-rx-gcc11-bootstrap.spec @@ -137,6 +137,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -300,6 +301,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -368,6 +372,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -409,10 +414,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-rx-gcc11.spec b/cross-rx-gcc11.spec index 4bad80d..9d46c5c 100644 --- a/cross-rx-gcc11.spec +++ b/cross-rx-gcc11.spec @@ -136,6 +136,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -299,6 +300,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -367,6 +371,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -408,10 +413,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-s390x-gcc11.spec b/cross-s390x-gcc11.spec index 195c41c..97af9a8 100644 --- a/cross-s390x-gcc11.spec +++ b/cross-s390x-gcc11.spec @@ -136,6 +136,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -299,6 +300,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -367,6 +371,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -408,10 +413,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-sparc-gcc11.spec b/cross-sparc-gcc11.spec index a95c606..21a9241 100644 --- a/cross-sparc-gcc11.spec +++ b/cross-sparc-gcc11.spec @@ -136,6 +136,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -299,6 +300,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -367,6 +371,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -408,10 +413,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-sparc64-gcc11.spec b/cross-sparc64-gcc11.spec index 8e6ebf6..298b45a 100644 --- a/cross-sparc64-gcc11.spec +++ b/cross-sparc64-gcc11.spec @@ -136,6 +136,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -299,6 +300,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -367,6 +371,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -408,10 +413,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/cross-x86_64-gcc11.spec b/cross-x86_64-gcc11.spec index 3cc7374..710d49a 100644 --- a/cross-x86_64-gcc11.spec +++ b/cross-x86_64-gcc11.spec @@ -136,6 +136,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -299,6 +300,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -367,6 +371,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -408,10 +413,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} diff --git a/gcc.spec.in b/gcc.spec.in index 721e103..b960ba9 100644 --- a/gcc.spec.in +++ b/gcc.spec.in @@ -230,6 +230,14 @@ BuildRequires: libunwind-devel BuildRequires: dejagnu BuildRequires: expect BuildRequires: gdb +%if %{build_nvptx} +BuildRequires: cross-nvptx-gcc@base_ver@ +BuildRequires: cross-nvptx-newlib@base_ver@-devel +%endif +%if %{build_gcn} +BuildRequires: cross-amdgcn-gcc@base_ver@ +BuildRequires: cross-amdgcn-newlib@base_ver@-devel +%endif %endif #!BuildIgnore: gcc-PIE @@ -329,6 +337,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -1109,6 +1118,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -1177,6 +1189,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -1218,10 +1231,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} @@ -1454,7 +1467,7 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ STAGE1_FLAGS="-g -O2" %if 0%{?do_profiling} && !0%{?building_testsuite:1} %ifarch x86_64 %ix86 ppc64le s390x aarch64 -%define use_pgo_bootstrap 0 +%define use_pgo_bootstrap 1 %endif %endif %{?use_pgo_bootstrap:setarch `arch` -R} make %{?use_pgo_bootstrap:profiledbootstrap} STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} diff --git a/gcc10-amdgcn-llvm-as.patch b/gcc10-amdgcn-llvm-as.patch new file mode 100644 index 0000000..9554403 --- /dev/null +++ b/gcc10-amdgcn-llvm-as.patch @@ -0,0 +1,29 @@ +varasm.c: Always output flags in merged .section for LLVM assembler compatibility [PR97827] + +For compatibility with LLVM 11's 'mc' assembler, the flags have to be +repeated every time. See also LLVM Bug 48201 for this issue and +https://reviews.llvm.org/D73999 for the patch causing the issue. + +gcc/ + PR target/97827 + * varasm.c (default_elf_asm_named_section): Always output all + flags if SECTION_MERGE, even if already declared before. + +diff --git a/gcc/varasm.c b/gcc/varasm.c +index ada99940f65..51a507393a8 100644 +--- a/gcc/varasm.c ++++ b/gcc/varasm.c +@@ -6738,9 +6738,11 @@ default_elf_asm_named_section (const char *name, unsigned int flags, + /* If we have already declared this section, we can use an + abbreviated form to switch back to it -- unless this section is + part of a COMDAT groups, in which case GAS requires the full +- declaration every time. */ ++ declaration every time. LLVM's MC linker requires that the ++ flags are identical, thus avoid the abbreviated form with MERGE. */ + if (!(HAVE_COMDAT_GROUP && (flags & SECTION_LINKONCE)) +- && (flags & SECTION_DECLARED)) ++ && (flags & SECTION_DECLARED) ++ && !(flags & SECTION_MERGE)) + { + fprintf (asm_out_file, "\t.section\t%s\n", name); + return; diff --git a/gcc11-testresults.spec b/gcc11-testresults.spec index 4f955d3..b2efdbb 100644 --- a/gcc11-testresults.spec +++ b/gcc11-testresults.spec @@ -245,6 +245,14 @@ BuildRequires: libunwind-devel BuildRequires: dejagnu BuildRequires: expect BuildRequires: gdb +%if %{build_nvptx} +BuildRequires: cross-nvptx-gcc11 +BuildRequires: cross-nvptx-newlib11-devel +%endif +%if %{build_gcn} +BuildRequires: cross-amdgcn-gcc11 +BuildRequires: cross-amdgcn-newlib11-devel +%endif %endif #!BuildIgnore: gcc-PIE @@ -341,6 +349,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -469,6 +478,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -537,6 +549,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -578,10 +591,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} @@ -812,7 +825,7 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ STAGE1_FLAGS="-g -O2" %if 0%{?do_profiling} && !0%{?building_testsuite:1} %ifarch x86_64 %ix86 ppc64le s390x aarch64 -%define use_pgo_bootstrap 0 +%define use_pgo_bootstrap 1 %endif %endif %{?use_pgo_bootstrap:setarch `arch` -R} make %{?use_pgo_bootstrap:profiledbootstrap} STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} diff --git a/gcc11.spec b/gcc11.spec index aee94f7..26e0b92 100644 --- a/gcc11.spec +++ b/gcc11.spec @@ -227,6 +227,14 @@ BuildRequires: libunwind-devel BuildRequires: dejagnu BuildRequires: expect BuildRequires: gdb +%if %{build_nvptx} +BuildRequires: cross-nvptx-gcc11 +BuildRequires: cross-nvptx-newlib11-devel +%endif +%if %{build_gcn} +BuildRequires: cross-amdgcn-gcc11 +BuildRequires: cross-amdgcn-newlib11-devel +%endif %endif #!BuildIgnore: gcc-PIE @@ -323,6 +331,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch Patch15: gcc7-avoid-fixinc-error.diff Patch16: gcc9-reproducible-builds.patch Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch +Patch18: gcc10-amdgcn-llvm-as.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch Patch52: gcc10-foffload-default.patch @@ -1860,6 +1869,9 @@ ln -s newlib-3.3.0/newlib . %patch15 %patch16 %patch17 -p1 +%if "%{TARGET_ARCH}" == "amdgcn" +%patch18 -p1 +%endif %patch51 %patch52 -p1 %patch60 -p1 @@ -1928,6 +1940,7 @@ languages=$languages,d # which is the default for released compilers #ENABLE_CHECKING="--enable-checking=yes" ENABLE_CHECKING="--enable-checking=release" +#ENABLE_CHECKING="" # Work around tail/head -1 changes export _POSIX2_VERSION=199209 @@ -1969,10 +1982,10 @@ TCFLAGS="$RPM_OPT_FLAGS" \ %if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} -nvptx-none=%{_prefix}/nvptx-none,\ +nvptx-none,\ %endif %if %{build_gcn} -amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ +amdgcn-amdhsa,\ %endif %endif %if %{build_nvptx} @@ -2203,7 +2216,7 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ STAGE1_FLAGS="-g -O2" %if 0%{?do_profiling} && !0%{?building_testsuite:1} %ifarch x86_64 %ix86 ppc64le s390x aarch64 -%define use_pgo_bootstrap 0 +%define use_pgo_bootstrap 1 %endif %endif %{?use_pgo_bootstrap:setarch `arch` -R} make %{?use_pgo_bootstrap:profiledbootstrap} STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}