From f01a06d690032042eae9f99e1bfbc6a3af134925318c31d600ee694e88557e51 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 13 Nov 2020 07:37:25 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc11?expand=0&rev=155 --- cross-aarch64-gcc11.spec | 32 ++++++++++++++++----- cross-amdgcn-gcc11.spec | 32 ++++++++++++++++----- cross-arm-gcc11.spec | 32 ++++++++++++++++----- cross-arm-none-gcc11-bootstrap.spec | 32 ++++++++++++++++----- cross-arm-none-gcc11.spec | 32 ++++++++++++++++----- cross-avr-gcc11-bootstrap.spec | 32 ++++++++++++++++----- cross-avr-gcc11.spec | 32 ++++++++++++++++----- cross-epiphany-gcc11-bootstrap.spec | 32 ++++++++++++++++----- cross-epiphany-gcc11.spec | 32 ++++++++++++++++----- cross-hppa-gcc11.spec | 32 ++++++++++++++++----- cross-i386-gcc11.spec | 32 ++++++++++++++++----- cross-m68k-gcc11.spec | 32 ++++++++++++++++----- cross-mips-gcc11.spec | 32 ++++++++++++++++----- cross-nvptx-gcc11.spec | 32 ++++++++++++++++----- cross-ppc64-gcc11.spec | 32 ++++++++++++++++----- cross-ppc64le-gcc11.spec | 32 ++++++++++++++++----- cross-riscv64-elf-gcc11-bootstrap.spec | 32 ++++++++++++++++----- cross-riscv64-elf-gcc11.spec | 32 ++++++++++++++++----- cross-riscv64-gcc11.spec | 32 ++++++++++++++++----- cross-rx-gcc11-bootstrap.spec | 32 ++++++++++++++++----- cross-rx-gcc11.spec | 32 ++++++++++++++++----- cross-s390x-gcc11.spec | 32 ++++++++++++++++----- cross-sparc-gcc11.spec | 32 ++++++++++++++++----- cross-sparc64-gcc11.spec | 32 ++++++++++++++++----- cross-x86_64-gcc11.spec | 32 ++++++++++++++++----- cross.spec.in | 9 ++++-- gcc.spec.in | 39 ++++++++++++++++++++------ gcc11-testresults.spec | 37 +++++++++++++++++++----- gcc11.spec | 39 ++++++++++++++++++++------ 29 files changed, 724 insertions(+), 200 deletions(-) diff --git a/cross-aarch64-gcc11.spec b/cross-aarch64-gcc11.spec index fe4d58c..d8a1d04 100644 --- a/cross-aarch64-gcc11.spec +++ b/cross-aarch64-gcc11.spec @@ -47,7 +47,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -230,7 +229,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-amdgcn-gcc11.spec b/cross-amdgcn-gcc11.spec index 22a300a..dd19e9c 100644 --- a/cross-amdgcn-gcc11.spec +++ b/cross-amdgcn-gcc11.spec @@ -47,7 +47,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -230,7 +229,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-arm-gcc11.spec b/cross-arm-gcc11.spec index 69d5ce1..a6b49ab 100644 --- a/cross-arm-gcc11.spec +++ b/cross-arm-gcc11.spec @@ -47,7 +47,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -230,7 +229,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-arm-none-gcc11-bootstrap.spec b/cross-arm-none-gcc11-bootstrap.spec index df31242..b369d77 100644 --- a/cross-arm-none-gcc11-bootstrap.spec +++ b/cross-arm-none-gcc11-bootstrap.spec @@ -48,7 +48,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -221,7 +220,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -231,7 +230,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -404,7 +409,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -424,7 +429,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -501,11 +510,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -516,6 +522,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-arm-none-gcc11.spec b/cross-arm-none-gcc11.spec index 102d222..b25ba82 100644 --- a/cross-arm-none-gcc11.spec +++ b/cross-arm-none-gcc11.spec @@ -47,7 +47,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -230,7 +229,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-avr-gcc11-bootstrap.spec b/cross-avr-gcc11-bootstrap.spec index 1728d67..1d5c69b 100644 --- a/cross-avr-gcc11-bootstrap.spec +++ b/cross-avr-gcc11-bootstrap.spec @@ -47,7 +47,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -230,7 +229,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-avr-gcc11.spec b/cross-avr-gcc11.spec index c0c8195..fc9237d 100644 --- a/cross-avr-gcc11.spec +++ b/cross-avr-gcc11.spec @@ -47,7 +47,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -230,7 +229,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-epiphany-gcc11-bootstrap.spec b/cross-epiphany-gcc11-bootstrap.spec index 3720f41..45ddab5 100644 --- a/cross-epiphany-gcc11-bootstrap.spec +++ b/cross-epiphany-gcc11-bootstrap.spec @@ -48,7 +48,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -221,7 +220,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -231,7 +230,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -404,7 +409,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -424,7 +429,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -501,11 +510,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -516,6 +522,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-epiphany-gcc11.spec b/cross-epiphany-gcc11.spec index 2e84f57..d4ca149 100644 --- a/cross-epiphany-gcc11.spec +++ b/cross-epiphany-gcc11.spec @@ -47,7 +47,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -230,7 +229,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-hppa-gcc11.spec b/cross-hppa-gcc11.spec index d48fbdc..1fef7ba 100644 --- a/cross-hppa-gcc11.spec +++ b/cross-hppa-gcc11.spec @@ -47,7 +47,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -230,7 +229,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-i386-gcc11.spec b/cross-i386-gcc11.spec index 1585e08..12a5e4e 100644 --- a/cross-i386-gcc11.spec +++ b/cross-i386-gcc11.spec @@ -47,7 +47,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -230,7 +229,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-m68k-gcc11.spec b/cross-m68k-gcc11.spec index 94a7220..ed8974f 100644 --- a/cross-m68k-gcc11.spec +++ b/cross-m68k-gcc11.spec @@ -47,7 +47,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -230,7 +229,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-mips-gcc11.spec b/cross-mips-gcc11.spec index 263633a..c93c56b 100644 --- a/cross-mips-gcc11.spec +++ b/cross-mips-gcc11.spec @@ -47,7 +47,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -230,7 +229,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-nvptx-gcc11.spec b/cross-nvptx-gcc11.spec index 0a48fe0..952ab94 100644 --- a/cross-nvptx-gcc11.spec +++ b/cross-nvptx-gcc11.spec @@ -47,7 +47,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -230,7 +229,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-ppc64-gcc11.spec b/cross-ppc64-gcc11.spec index f7e58f0..adad3be 100644 --- a/cross-ppc64-gcc11.spec +++ b/cross-ppc64-gcc11.spec @@ -47,7 +47,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -230,7 +229,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-ppc64le-gcc11.spec b/cross-ppc64le-gcc11.spec index 6843b84..65bb6c7 100644 --- a/cross-ppc64le-gcc11.spec +++ b/cross-ppc64le-gcc11.spec @@ -47,7 +47,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -230,7 +229,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-riscv64-elf-gcc11-bootstrap.spec b/cross-riscv64-elf-gcc11-bootstrap.spec index 6779446..6ab893c 100644 --- a/cross-riscv64-elf-gcc11-bootstrap.spec +++ b/cross-riscv64-elf-gcc11-bootstrap.spec @@ -48,7 +48,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -221,7 +220,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -231,7 +230,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -404,7 +409,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -424,7 +429,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -501,11 +510,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -516,6 +522,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-riscv64-elf-gcc11.spec b/cross-riscv64-elf-gcc11.spec index 989f3b5..a43db14 100644 --- a/cross-riscv64-elf-gcc11.spec +++ b/cross-riscv64-elf-gcc11.spec @@ -47,7 +47,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -230,7 +229,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-riscv64-gcc11.spec b/cross-riscv64-gcc11.spec index 55ab982..5da9dc6 100644 --- a/cross-riscv64-gcc11.spec +++ b/cross-riscv64-gcc11.spec @@ -47,7 +47,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -230,7 +229,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-rx-gcc11-bootstrap.spec b/cross-rx-gcc11-bootstrap.spec index 1ae400c..28f52f5 100644 --- a/cross-rx-gcc11-bootstrap.spec +++ b/cross-rx-gcc11-bootstrap.spec @@ -48,7 +48,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -221,7 +220,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -231,7 +230,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -404,7 +409,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -424,7 +429,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -501,11 +510,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -516,6 +522,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-rx-gcc11.spec b/cross-rx-gcc11.spec index b80dcb4..cbc2260 100644 --- a/cross-rx-gcc11.spec +++ b/cross-rx-gcc11.spec @@ -47,7 +47,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -230,7 +229,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-s390x-gcc11.spec b/cross-s390x-gcc11.spec index 692c2b8..6430a0e 100644 --- a/cross-s390x-gcc11.spec +++ b/cross-s390x-gcc11.spec @@ -47,7 +47,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -230,7 +229,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-sparc-gcc11.spec b/cross-sparc-gcc11.spec index 8de39d7..05a864d 100644 --- a/cross-sparc-gcc11.spec +++ b/cross-sparc-gcc11.spec @@ -47,7 +47,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -230,7 +229,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-sparc64-gcc11.spec b/cross-sparc64-gcc11.spec index b742a42..0248ba8 100644 --- a/cross-sparc64-gcc11.spec +++ b/cross-sparc64-gcc11.spec @@ -47,7 +47,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -230,7 +229,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross-x86_64-gcc11.spec b/cross-x86_64-gcc11.spec index df8e9f2..8dcb112 100644 --- a/cross-x86_64-gcc11.spec +++ b/cross-x86_64-gcc11.spec @@ -47,7 +47,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} Requires: nvptx-tools -ExclusiveArch: +ExclusiveArch: aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -230,7 +229,13 @@ BuildRequires: llvm Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} Requires: lld Requires: llvm +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif @@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/cross.spec.in b/cross.spec.in index 8685a40..4cb569d 100644 --- a/cross.spec.in +++ b/cross.spec.in @@ -26,7 +26,6 @@ ExclusiveArch: do-not-build %define build_objc 0 %define build_objcp 0 %define build_go 0 -%define build_hsa 0 %define build_nvptx 0 %define build_gcn 0 %define build_d 0 @@ -133,7 +132,7 @@ BuildRequires: cross-%cross_arch-glibc-devel BuildRequires: nvptx-tools Requires: nvptx-tools Requires: cross-nvptx-newlib-devel >= %{version}-%{release} -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %define nvptx_newlib 1 %endif %if "%{cross_arch}" == "amdgcn" @@ -143,7 +142,13 @@ BuildRequires: lld Requires: llvm Requires: lld Requires: cross-amdgcn-newlib-devel >= %{version}-%{release} +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 ExclusiveArch: x86_64 +%else +ExclusiveArch: do-not-build +%endif %define amdgcn_newlib 1 %endif %endif diff --git a/gcc.spec.in b/gcc.spec.in index 99e1144..7c7f514 100644 --- a/gcc.spec.in +++ b/gcc.spec.in @@ -70,11 +70,21 @@ %define build_d 0 %endif -%ifarch x86_64 +%ifarch x86_64 aarch64 %define build_nvptx 1 -%define build_gcn 1 %else %define build_nvptx 0 +%endif + +%ifarch x86_64 +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 +%define build_gcn 1 +%else +%define build_gcn 0 +%endif +%else %define build_gcn 0 %endif @@ -1179,7 +1189,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -1199,7 +1209,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -1276,11 +1290,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -1291,6 +1302,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ @@ -1445,7 +1468,7 @@ export LIBRARY_PATH=%{buildroot}/%{libsubdir}:%{buildroot}/%{mainlibdirbi} # Remove some useless .la files for lib in libobjc libgfortran libquadmath libcaf_single \ - libgomp libstdc++ libsupc++ libgo \ + libgomp libgomp-plugin-hsa libstdc++ libsupc++ libgo \ libasan libatomic libitm libtsan liblsan libubsan libvtv \ libstdc++fs libgomp-plugin-nvptx libgomp-plugin-gcn \ libgdruntime libgphobos; do diff --git a/gcc11-testresults.spec b/gcc11-testresults.spec index 368929d..eb9398b 100644 --- a/gcc11-testresults.spec +++ b/gcc11-testresults.spec @@ -88,11 +88,21 @@ %define build_d 0 %endif -%ifarch x86_64 +%ifarch x86_64 aarch64 %define build_nvptx 1 -%define build_gcn 1 %else %define build_nvptx 0 +%endif + +%ifarch x86_64 +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 +%define build_gcn 1 +%else +%define build_gcn 0 +%endif +%else %define build_gcn 0 %endif @@ -562,7 +572,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -582,7 +592,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -659,11 +673,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -674,6 +685,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ diff --git a/gcc11.spec b/gcc11.spec index dc77203..7af2dcc 100644 --- a/gcc11.spec +++ b/gcc11.spec @@ -70,11 +70,21 @@ %define build_d 0 %endif -%ifarch x86_64 +%ifarch x86_64 aarch64 %define build_nvptx 1 -%define build_gcn 1 %else %define build_nvptx 0 +%endif + +%ifarch x86_64 +# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does +# technically also SLE12 SP5 but do not bother there +%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100 +%define build_gcn 1 +%else +%define build_gcn 0 +%endif +%else %define build_gcn 0 %endif @@ -1901,7 +1911,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --enable-languages=$languages \ -%if %{build_nvptx} +%if %{build_nvptx} || %{build_gcn} --enable-offload-targets=\ %if %{build_nvptx} nvptx-none=%{_prefix}/nvptx-none,\ @@ -1921,7 +1931,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %if 0%{!?build_libvtv:1} --disable-libvtv \ %endif +%if 0%{suse_version} >= 1500 + --enable-cet=auto \ +%else --disable-cet \ +%endif --disable-libcc1 \ %if %{enable_plugins} --enable-plugin \ @@ -1998,11 +2012,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ %endif %if "%{TARGET_ARCH}" == "avr" --enable-lto \ + --without-gxx-include-dir \ --with-native-system-header-dir=/include \ - --with-newlib \ - --disable-__cxa_atexit \ - --enable-libstdcxx \ - --disable-hosted-libstdcxx \ %endif %endif %if "%{TARGET_ARCH}" == "arm" @@ -2013,6 +2024,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\ --with-fpu=vfp \ --disable-sjlj-exceptions \ %endif +%if "%{TARGET_ARCH}" == "arm-none" + --enable-multilib \ + --with-multilib-list=aprofile,rmprofile \ + --disable-decimal-float \ + --disable-libffi \ + --disable-libgomp \ + --disable-libmudflap \ + --disable-libquadmath \ + --disable-shared \ + --disable-threads \ + --disable-tls \ +%endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ --with-float=soft \ @@ -2164,7 +2187,7 @@ export LIBRARY_PATH=%{buildroot}/%{libsubdir}:%{buildroot}/%{mainlibdirbi} # Remove some useless .la files for lib in libobjc libgfortran libquadmath libcaf_single \ - libgomp libstdc++ libsupc++ libgo \ + libgomp libgomp-plugin-hsa libstdc++ libsupc++ libgo \ libasan libatomic libitm libtsan liblsan libubsan libvtv \ libstdc++fs libgomp-plugin-nvptx libgomp-plugin-gcn \ libgdruntime libgphobos; do