diff --git a/change_spec b/change_spec index c0bc939..82bedcd 100644 --- a/change_spec +++ b/change_spec @@ -106,6 +106,7 @@ add_cross cross-mips-gcc$base_ver mips mips-suse-linux %define gcc_icecream 1 add_cross cross-hppa-gcc$base_ver hppa hppa-suse-linux %define gcc_icecream 1 add_newlib_cross cross-epiphany-gcc$base_ver epiphany epiphany-elf add_newlib_cross cross-rx-gcc$base_ver rx rx-elf +add_cross cross-nvptx-gcc$base_ver nvptx nvptx-none %define gcc_accel 1 #add_newlib_cross cross-rl78-gcc$base_ver rl78 rl78-elf #add_newlib_cross cross-nds32le-gcc$base_ver nds32le nds32le-elf fi diff --git a/cross-aarch64-gcc7.changes b/cross-aarch64-gcc7.changes index fa2aa67..bc71a49 100644 --- a/cross-aarch64-gcc7.changes +++ b/cross-aarch64-gcc7.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 26 15:10:21 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244934). +- Add accelerator offloading cross to nvptx-none, for this also + add nvptx-newlib.tar.bz2. + ------------------------------------------------------------------- Tue Jan 24 12:56:39 UTC 2017 - rguenther@suse.com diff --git a/cross-aarch64-gcc7.spec b/cross-aarch64-gcc7.spec index ecdddce..009ad58 100644 --- a/cross-aarch64-gcc7.spec +++ b/cross-aarch64-gcc7.spec @@ -66,10 +66,14 @@ %if "%{binutils_target}" == "arm" %define binutils_os %{canonical_target}-suse-linux-gnueabi %else +%if 0%{?gcc_accel:1} +%define binutils_os %{gcc_target_arch} +%else %define binutils_os %{canonical_target}-suse-linux %endif %endif %endif +%endif %if 0%{?gcc_icecream:1} %define build_sysroot / @@ -78,10 +82,6 @@ %define sysroot %{_prefix}/%{binutils_os}/sys-root %endif -%if 0%{!?gcc_target_newlib:1} -%define gcc_target_glibc 1 -%endif - %if %{suse_version} >= 1220 %define selfconflict() %1 %else @@ -89,8 +89,10 @@ %endif Name: %{pkgname} -BuildRequires: bison +%if %{cross_arch} != "nvptx" BuildRequires: cross-%{binutils_target}-binutils +%endif +BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: gettext-devel @@ -117,6 +119,10 @@ BuildRequires: cross-%cross_arch-newlib-devel %if 0%{?gcc_target_glibc:1} BuildRequires: cross-%cross_arch-glibc-devel %endif +%if %{cross_arch} == "nvptx" +BuildRequires: nvptx-tools +ExclusiveArch: x86_64 +%endif %endif %if 0%{?gcc_icecream:1} ExclusiveArch: ppc64le ppc64 x86_64 s390x @@ -137,7 +143,7 @@ Conflicts: %selfconflict %{gcc_target_arch}-gcc %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 Url: http://gcc.gnu.org/ -Version: 7.0.1+r244867 +Version: 7.0.1+r244934 Release: 0 %define gcc_version %(echo %version | sed 's/+.*//') %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1) @@ -148,6 +154,7 @@ Source: gcc-%{gcc_version}%{gcc_snapshot_revision}.tar.bz2 Source1: change_spec Source3: gcc7-rpmlintrc Source4: README.First-for.SuSE.packagers +Source5: nvptx-newlib.tar.bz2 #testpatch begin @@ -214,7 +221,12 @@ namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go. %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version} %prep +%if %{cross_arch} == "nvptx" +%setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} -a 5 +ln -s nvptx-newlib/newlib . +%else %setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} +%endif #test patching start @@ -456,6 +468,11 @@ nvptx-none=%{_prefix}/nvptx-none, \ --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \ --with-newlib \ %endif +%if "%{TARGET_ARCH}" == "nvptx" + --enable-as-accelerator-for=%{GCCDIST} \ + --disable-sjlj-exceptions \ + --enable-newlib-io-long-long \ +%endif %endif %if "%{TARGET_ARCH}" == "arm" --with-arch=armv6zk \ @@ -647,7 +664,14 @@ rm -r env %files %defattr(-,root,root) +%if 0%{?gcc_accel:1} +%{_prefix}/bin/%{GCCDIST}-accel-%{gcc_target_arch}-* +%dir %{libsubdir} +%dir %{libsubdir}/accel +%{libsubdir}/accel/%{gcc_target_arch} +%else %{_prefix}/bin/%{gcc_target_arch}-* +%endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} %{targetlibsubdir} diff --git a/cross-arm-gcc7.changes b/cross-arm-gcc7.changes index fa2aa67..bc71a49 100644 --- a/cross-arm-gcc7.changes +++ b/cross-arm-gcc7.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 26 15:10:21 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244934). +- Add accelerator offloading cross to nvptx-none, for this also + add nvptx-newlib.tar.bz2. + ------------------------------------------------------------------- Tue Jan 24 12:56:39 UTC 2017 - rguenther@suse.com diff --git a/cross-arm-gcc7.spec b/cross-arm-gcc7.spec index b342c6a..564f0e2 100644 --- a/cross-arm-gcc7.spec +++ b/cross-arm-gcc7.spec @@ -66,10 +66,14 @@ %if "%{binutils_target}" == "arm" %define binutils_os %{canonical_target}-suse-linux-gnueabi %else +%if 0%{?gcc_accel:1} +%define binutils_os %{gcc_target_arch} +%else %define binutils_os %{canonical_target}-suse-linux %endif %endif %endif +%endif %if 0%{?gcc_icecream:1} %define build_sysroot / @@ -78,10 +82,6 @@ %define sysroot %{_prefix}/%{binutils_os}/sys-root %endif -%if 0%{!?gcc_target_newlib:1} -%define gcc_target_glibc 1 -%endif - %if %{suse_version} >= 1220 %define selfconflict() %1 %else @@ -89,8 +89,10 @@ %endif Name: %{pkgname} -BuildRequires: bison +%if %{cross_arch} != "nvptx" BuildRequires: cross-%{binutils_target}-binutils +%endif +BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: gettext-devel @@ -117,6 +119,10 @@ BuildRequires: cross-%cross_arch-newlib-devel %if 0%{?gcc_target_glibc:1} BuildRequires: cross-%cross_arch-glibc-devel %endif +%if %{cross_arch} == "nvptx" +BuildRequires: nvptx-tools +ExclusiveArch: x86_64 +%endif %endif %if 0%{?gcc_icecream:1} ExclusiveArch: ppc64le ppc64 x86_64 s390x aarch64 @@ -137,7 +143,7 @@ Conflicts: %selfconflict %{gcc_target_arch}-gcc %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 Url: http://gcc.gnu.org/ -Version: 7.0.1+r244867 +Version: 7.0.1+r244934 Release: 0 %define gcc_version %(echo %version | sed 's/+.*//') %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1) @@ -148,6 +154,7 @@ Source: gcc-%{gcc_version}%{gcc_snapshot_revision}.tar.bz2 Source1: change_spec Source3: gcc7-rpmlintrc Source4: README.First-for.SuSE.packagers +Source5: nvptx-newlib.tar.bz2 #testpatch begin @@ -214,7 +221,12 @@ namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go. %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version} %prep +%if %{cross_arch} == "nvptx" +%setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} -a 5 +ln -s nvptx-newlib/newlib . +%else %setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} +%endif #test patching start @@ -456,6 +468,11 @@ nvptx-none=%{_prefix}/nvptx-none, \ --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \ --with-newlib \ %endif +%if "%{TARGET_ARCH}" == "nvptx" + --enable-as-accelerator-for=%{GCCDIST} \ + --disable-sjlj-exceptions \ + --enable-newlib-io-long-long \ +%endif %endif %if "%{TARGET_ARCH}" == "arm" --with-arch=armv6zk \ @@ -647,7 +664,14 @@ rm -r env %files %defattr(-,root,root) +%if 0%{?gcc_accel:1} +%{_prefix}/bin/%{GCCDIST}-accel-%{gcc_target_arch}-* +%dir %{libsubdir} +%dir %{libsubdir}/accel +%{libsubdir}/accel/%{gcc_target_arch} +%else %{_prefix}/bin/%{gcc_target_arch}-* +%endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} %{targetlibsubdir} diff --git a/cross-avr-gcc7.changes b/cross-avr-gcc7.changes index fa2aa67..bc71a49 100644 --- a/cross-avr-gcc7.changes +++ b/cross-avr-gcc7.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 26 15:10:21 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244934). +- Add accelerator offloading cross to nvptx-none, for this also + add nvptx-newlib.tar.bz2. + ------------------------------------------------------------------- Tue Jan 24 12:56:39 UTC 2017 - rguenther@suse.com diff --git a/cross-avr-gcc7.spec b/cross-avr-gcc7.spec index 6e6f045..3c0ec2f 100644 --- a/cross-avr-gcc7.spec +++ b/cross-avr-gcc7.spec @@ -66,10 +66,14 @@ %if "%{binutils_target}" == "arm" %define binutils_os %{canonical_target}-suse-linux-gnueabi %else +%if 0%{?gcc_accel:1} +%define binutils_os %{gcc_target_arch} +%else %define binutils_os %{canonical_target}-suse-linux %endif %endif %endif +%endif %if 0%{?gcc_icecream:1} %define build_sysroot / @@ -78,10 +82,6 @@ %define sysroot %{_prefix}/%{binutils_os}/sys-root %endif -%if 0%{!?gcc_target_newlib:1} -%define gcc_target_glibc 1 -%endif - %if %{suse_version} >= 1220 %define selfconflict() %1 %else @@ -89,8 +89,10 @@ %endif Name: %{pkgname} -BuildRequires: bison +%if %{cross_arch} != "nvptx" BuildRequires: cross-%{binutils_target}-binutils +%endif +BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: gettext-devel @@ -117,6 +119,10 @@ BuildRequires: cross-%cross_arch-newlib-devel %if 0%{?gcc_target_glibc:1} BuildRequires: cross-%cross_arch-glibc-devel %endif +%if %{cross_arch} == "nvptx" +BuildRequires: nvptx-tools +ExclusiveArch: x86_64 +%endif %endif %if 0%{?gcc_icecream:1} ExclusiveArch: ppc64le ppc64 x86_64 s390x aarch64 @@ -137,7 +143,7 @@ Conflicts: %selfconflict %{gcc_target_arch}-gcc %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 Url: http://gcc.gnu.org/ -Version: 7.0.1+r244867 +Version: 7.0.1+r244934 Release: 0 %define gcc_version %(echo %version | sed 's/+.*//') %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1) @@ -148,6 +154,7 @@ Source: gcc-%{gcc_version}%{gcc_snapshot_revision}.tar.bz2 Source1: change_spec Source3: gcc7-rpmlintrc Source4: README.First-for.SuSE.packagers +Source5: nvptx-newlib.tar.bz2 #testpatch begin @@ -214,7 +221,12 @@ namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go. %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version} %prep +%if %{cross_arch} == "nvptx" +%setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} -a 5 +ln -s nvptx-newlib/newlib . +%else %setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} +%endif #test patching start @@ -456,6 +468,11 @@ nvptx-none=%{_prefix}/nvptx-none, \ --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \ --with-newlib \ %endif +%if "%{TARGET_ARCH}" == "nvptx" + --enable-as-accelerator-for=%{GCCDIST} \ + --disable-sjlj-exceptions \ + --enable-newlib-io-long-long \ +%endif %endif %if "%{TARGET_ARCH}" == "arm" --with-arch=armv6zk \ @@ -647,7 +664,14 @@ rm -r env %files %defattr(-,root,root) +%if 0%{?gcc_accel:1} +%{_prefix}/bin/%{GCCDIST}-accel-%{gcc_target_arch}-* +%dir %{libsubdir} +%dir %{libsubdir}/accel +%{libsubdir}/accel/%{gcc_target_arch} +%else %{_prefix}/bin/%{gcc_target_arch}-* +%endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} %{targetlibsubdir} diff --git a/cross-epiphany-gcc7-bootstrap.changes b/cross-epiphany-gcc7-bootstrap.changes index fa2aa67..bc71a49 100644 --- a/cross-epiphany-gcc7-bootstrap.changes +++ b/cross-epiphany-gcc7-bootstrap.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 26 15:10:21 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244934). +- Add accelerator offloading cross to nvptx-none, for this also + add nvptx-newlib.tar.bz2. + ------------------------------------------------------------------- Tue Jan 24 12:56:39 UTC 2017 - rguenther@suse.com diff --git a/cross-epiphany-gcc7-bootstrap.spec b/cross-epiphany-gcc7-bootstrap.spec index 8887d4a..23d575b 100644 --- a/cross-epiphany-gcc7-bootstrap.spec +++ b/cross-epiphany-gcc7-bootstrap.spec @@ -67,10 +67,14 @@ %if "%{binutils_target}" == "arm" %define binutils_os %{canonical_target}-suse-linux-gnueabi %else +%if 0%{?gcc_accel:1} +%define binutils_os %{gcc_target_arch} +%else %define binutils_os %{canonical_target}-suse-linux %endif %endif %endif +%endif %if 0%{?gcc_icecream:1} %define build_sysroot / @@ -79,10 +83,6 @@ %define sysroot %{_prefix}/%{binutils_os}/sys-root %endif -%if 0%{!?gcc_target_newlib:1} -%define gcc_target_glibc 1 -%endif - %if %{suse_version} >= 1220 %define selfconflict() %1 %else @@ -90,8 +90,10 @@ %endif Name: %{pkgname} -BuildRequires: bison +%if %{cross_arch} != "nvptx" BuildRequires: cross-%{binutils_target}-binutils +%endif +BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: gettext-devel @@ -118,6 +120,10 @@ BuildRequires: cross-%cross_arch-newlib-devel %if 0%{?gcc_target_glibc:1} BuildRequires: cross-%cross_arch-glibc-devel %endif +%if %{cross_arch} == "nvptx" +BuildRequires: nvptx-tools +ExclusiveArch: x86_64 +%endif %endif %if 0%{?gcc_icecream:1} ExclusiveArch: ppc64le ppc64 x86_64 s390x aarch64 @@ -138,7 +144,7 @@ Conflicts: %selfconflict %{gcc_target_arch}-gcc %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 Url: http://gcc.gnu.org/ -Version: 7.0.1+r244867 +Version: 7.0.1+r244934 Release: 0 %define gcc_version %(echo %version | sed 's/+.*//') %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1) @@ -149,6 +155,7 @@ Source: gcc-%{gcc_version}%{gcc_snapshot_revision}.tar.bz2 Source1: change_spec Source3: gcc7-rpmlintrc Source4: README.First-for.SuSE.packagers +Source5: nvptx-newlib.tar.bz2 #testpatch begin @@ -215,7 +222,12 @@ namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go. %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version} %prep +%if %{cross_arch} == "nvptx" +%setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} -a 5 +ln -s nvptx-newlib/newlib . +%else %setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} +%endif #test patching start @@ -457,6 +469,11 @@ nvptx-none=%{_prefix}/nvptx-none, \ --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \ --with-newlib \ %endif +%if "%{TARGET_ARCH}" == "nvptx" + --enable-as-accelerator-for=%{GCCDIST} \ + --disable-sjlj-exceptions \ + --enable-newlib-io-long-long \ +%endif %endif %if "%{TARGET_ARCH}" == "arm" --with-arch=armv6zk \ @@ -648,7 +665,14 @@ rm -r env %files %defattr(-,root,root) +%if 0%{?gcc_accel:1} +%{_prefix}/bin/%{GCCDIST}-accel-%{gcc_target_arch}-* +%dir %{libsubdir} +%dir %{libsubdir}/accel +%{libsubdir}/accel/%{gcc_target_arch} +%else %{_prefix}/bin/%{gcc_target_arch}-* +%endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} %{targetlibsubdir} diff --git a/cross-epiphany-gcc7.changes b/cross-epiphany-gcc7.changes index fa2aa67..bc71a49 100644 --- a/cross-epiphany-gcc7.changes +++ b/cross-epiphany-gcc7.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 26 15:10:21 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244934). +- Add accelerator offloading cross to nvptx-none, for this also + add nvptx-newlib.tar.bz2. + ------------------------------------------------------------------- Tue Jan 24 12:56:39 UTC 2017 - rguenther@suse.com diff --git a/cross-epiphany-gcc7.spec b/cross-epiphany-gcc7.spec index ecda138..4758bf4 100644 --- a/cross-epiphany-gcc7.spec +++ b/cross-epiphany-gcc7.spec @@ -66,10 +66,14 @@ %if "%{binutils_target}" == "arm" %define binutils_os %{canonical_target}-suse-linux-gnueabi %else +%if 0%{?gcc_accel:1} +%define binutils_os %{gcc_target_arch} +%else %define binutils_os %{canonical_target}-suse-linux %endif %endif %endif +%endif %if 0%{?gcc_icecream:1} %define build_sysroot / @@ -78,10 +82,6 @@ %define sysroot %{_prefix}/%{binutils_os}/sys-root %endif -%if 0%{!?gcc_target_newlib:1} -%define gcc_target_glibc 1 -%endif - %if %{suse_version} >= 1220 %define selfconflict() %1 %else @@ -89,8 +89,10 @@ %endif Name: %{pkgname} -BuildRequires: bison +%if %{cross_arch} != "nvptx" BuildRequires: cross-%{binutils_target}-binutils +%endif +BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: gettext-devel @@ -117,6 +119,10 @@ BuildRequires: cross-%cross_arch-newlib-devel %if 0%{?gcc_target_glibc:1} BuildRequires: cross-%cross_arch-glibc-devel %endif +%if %{cross_arch} == "nvptx" +BuildRequires: nvptx-tools +ExclusiveArch: x86_64 +%endif %endif %if 0%{?gcc_icecream:1} ExclusiveArch: ppc64le ppc64 x86_64 s390x aarch64 @@ -137,7 +143,7 @@ Conflicts: %selfconflict %{gcc_target_arch}-gcc %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 Url: http://gcc.gnu.org/ -Version: 7.0.1+r244867 +Version: 7.0.1+r244934 Release: 0 %define gcc_version %(echo %version | sed 's/+.*//') %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1) @@ -148,6 +154,7 @@ Source: gcc-%{gcc_version}%{gcc_snapshot_revision}.tar.bz2 Source1: change_spec Source3: gcc7-rpmlintrc Source4: README.First-for.SuSE.packagers +Source5: nvptx-newlib.tar.bz2 #testpatch begin @@ -214,7 +221,12 @@ namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go. %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version} %prep +%if %{cross_arch} == "nvptx" +%setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} -a 5 +ln -s nvptx-newlib/newlib . +%else %setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} +%endif #test patching start @@ -456,6 +468,11 @@ nvptx-none=%{_prefix}/nvptx-none, \ --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \ --with-newlib \ %endif +%if "%{TARGET_ARCH}" == "nvptx" + --enable-as-accelerator-for=%{GCCDIST} \ + --disable-sjlj-exceptions \ + --enable-newlib-io-long-long \ +%endif %endif %if "%{TARGET_ARCH}" == "arm" --with-arch=armv6zk \ @@ -647,7 +664,14 @@ rm -r env %files %defattr(-,root,root) +%if 0%{?gcc_accel:1} +%{_prefix}/bin/%{GCCDIST}-accel-%{gcc_target_arch}-* +%dir %{libsubdir} +%dir %{libsubdir}/accel +%{libsubdir}/accel/%{gcc_target_arch} +%else %{_prefix}/bin/%{gcc_target_arch}-* +%endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} %{targetlibsubdir} diff --git a/cross-hppa-gcc7.changes b/cross-hppa-gcc7.changes index fa2aa67..bc71a49 100644 --- a/cross-hppa-gcc7.changes +++ b/cross-hppa-gcc7.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 26 15:10:21 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244934). +- Add accelerator offloading cross to nvptx-none, for this also + add nvptx-newlib.tar.bz2. + ------------------------------------------------------------------- Tue Jan 24 12:56:39 UTC 2017 - rguenther@suse.com diff --git a/cross-hppa-gcc7.spec b/cross-hppa-gcc7.spec index a9ea2e2..a805e69 100644 --- a/cross-hppa-gcc7.spec +++ b/cross-hppa-gcc7.spec @@ -66,10 +66,14 @@ %if "%{binutils_target}" == "arm" %define binutils_os %{canonical_target}-suse-linux-gnueabi %else +%if 0%{?gcc_accel:1} +%define binutils_os %{gcc_target_arch} +%else %define binutils_os %{canonical_target}-suse-linux %endif %endif %endif +%endif %if 0%{?gcc_icecream:1} %define build_sysroot / @@ -78,10 +82,6 @@ %define sysroot %{_prefix}/%{binutils_os}/sys-root %endif -%if 0%{!?gcc_target_newlib:1} -%define gcc_target_glibc 1 -%endif - %if %{suse_version} >= 1220 %define selfconflict() %1 %else @@ -89,8 +89,10 @@ %endif Name: %{pkgname} -BuildRequires: bison +%if %{cross_arch} != "nvptx" BuildRequires: cross-%{binutils_target}-binutils +%endif +BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: gettext-devel @@ -117,6 +119,10 @@ BuildRequires: cross-%cross_arch-newlib-devel %if 0%{?gcc_target_glibc:1} BuildRequires: cross-%cross_arch-glibc-devel %endif +%if %{cross_arch} == "nvptx" +BuildRequires: nvptx-tools +ExclusiveArch: x86_64 +%endif %endif %if 0%{?gcc_icecream:1} ExclusiveArch: ppc64le ppc64 x86_64 s390x aarch64 @@ -137,7 +143,7 @@ Conflicts: %selfconflict %{gcc_target_arch}-gcc %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 Url: http://gcc.gnu.org/ -Version: 7.0.1+r244867 +Version: 7.0.1+r244934 Release: 0 %define gcc_version %(echo %version | sed 's/+.*//') %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1) @@ -148,6 +154,7 @@ Source: gcc-%{gcc_version}%{gcc_snapshot_revision}.tar.bz2 Source1: change_spec Source3: gcc7-rpmlintrc Source4: README.First-for.SuSE.packagers +Source5: nvptx-newlib.tar.bz2 #testpatch begin @@ -214,7 +221,12 @@ namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go. %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version} %prep +%if %{cross_arch} == "nvptx" +%setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} -a 5 +ln -s nvptx-newlib/newlib . +%else %setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} +%endif #test patching start @@ -456,6 +468,11 @@ nvptx-none=%{_prefix}/nvptx-none, \ --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \ --with-newlib \ %endif +%if "%{TARGET_ARCH}" == "nvptx" + --enable-as-accelerator-for=%{GCCDIST} \ + --disable-sjlj-exceptions \ + --enable-newlib-io-long-long \ +%endif %endif %if "%{TARGET_ARCH}" == "arm" --with-arch=armv6zk \ @@ -647,7 +664,14 @@ rm -r env %files %defattr(-,root,root) +%if 0%{?gcc_accel:1} +%{_prefix}/bin/%{GCCDIST}-accel-%{gcc_target_arch}-* +%dir %{libsubdir} +%dir %{libsubdir}/accel +%{libsubdir}/accel/%{gcc_target_arch} +%else %{_prefix}/bin/%{gcc_target_arch}-* +%endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} %{targetlibsubdir} diff --git a/cross-i386-gcc7.changes b/cross-i386-gcc7.changes index fa2aa67..bc71a49 100644 --- a/cross-i386-gcc7.changes +++ b/cross-i386-gcc7.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 26 15:10:21 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244934). +- Add accelerator offloading cross to nvptx-none, for this also + add nvptx-newlib.tar.bz2. + ------------------------------------------------------------------- Tue Jan 24 12:56:39 UTC 2017 - rguenther@suse.com diff --git a/cross-i386-gcc7.spec b/cross-i386-gcc7.spec index 9cbfc3b..b75db2f 100644 --- a/cross-i386-gcc7.spec +++ b/cross-i386-gcc7.spec @@ -66,10 +66,14 @@ %if "%{binutils_target}" == "arm" %define binutils_os %{canonical_target}-suse-linux-gnueabi %else +%if 0%{?gcc_accel:1} +%define binutils_os %{gcc_target_arch} +%else %define binutils_os %{canonical_target}-suse-linux %endif %endif %endif +%endif %if 0%{?gcc_icecream:1} %define build_sysroot / @@ -78,10 +82,6 @@ %define sysroot %{_prefix}/%{binutils_os}/sys-root %endif -%if 0%{!?gcc_target_newlib:1} -%define gcc_target_glibc 1 -%endif - %if %{suse_version} >= 1220 %define selfconflict() %1 %else @@ -89,8 +89,10 @@ %endif Name: %{pkgname} -BuildRequires: bison +%if %{cross_arch} != "nvptx" BuildRequires: cross-%{binutils_target}-binutils +%endif +BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: gettext-devel @@ -117,6 +119,10 @@ BuildRequires: cross-%cross_arch-newlib-devel %if 0%{?gcc_target_glibc:1} BuildRequires: cross-%cross_arch-glibc-devel %endif +%if %{cross_arch} == "nvptx" +BuildRequires: nvptx-tools +ExclusiveArch: x86_64 +%endif %endif %if 0%{?gcc_icecream:1} ExclusiveArch: ppc64le ppc64 x86_64 s390x aarch64 @@ -137,7 +143,7 @@ Conflicts: %selfconflict %{gcc_target_arch}-gcc %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 Url: http://gcc.gnu.org/ -Version: 7.0.1+r244867 +Version: 7.0.1+r244934 Release: 0 %define gcc_version %(echo %version | sed 's/+.*//') %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1) @@ -148,6 +154,7 @@ Source: gcc-%{gcc_version}%{gcc_snapshot_revision}.tar.bz2 Source1: change_spec Source3: gcc7-rpmlintrc Source4: README.First-for.SuSE.packagers +Source5: nvptx-newlib.tar.bz2 #testpatch begin @@ -214,7 +221,12 @@ namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go. %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version} %prep +%if %{cross_arch} == "nvptx" +%setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} -a 5 +ln -s nvptx-newlib/newlib . +%else %setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} +%endif #test patching start @@ -456,6 +468,11 @@ nvptx-none=%{_prefix}/nvptx-none, \ --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \ --with-newlib \ %endif +%if "%{TARGET_ARCH}" == "nvptx" + --enable-as-accelerator-for=%{GCCDIST} \ + --disable-sjlj-exceptions \ + --enable-newlib-io-long-long \ +%endif %endif %if "%{TARGET_ARCH}" == "arm" --with-arch=armv6zk \ @@ -647,7 +664,14 @@ rm -r env %files %defattr(-,root,root) +%if 0%{?gcc_accel:1} +%{_prefix}/bin/%{GCCDIST}-accel-%{gcc_target_arch}-* +%dir %{libsubdir} +%dir %{libsubdir}/accel +%{libsubdir}/accel/%{gcc_target_arch} +%else %{_prefix}/bin/%{gcc_target_arch}-* +%endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} %{targetlibsubdir} diff --git a/cross-m68k-gcc7.changes b/cross-m68k-gcc7.changes index fa2aa67..bc71a49 100644 --- a/cross-m68k-gcc7.changes +++ b/cross-m68k-gcc7.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 26 15:10:21 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244934). +- Add accelerator offloading cross to nvptx-none, for this also + add nvptx-newlib.tar.bz2. + ------------------------------------------------------------------- Tue Jan 24 12:56:39 UTC 2017 - rguenther@suse.com diff --git a/cross-m68k-gcc7.spec b/cross-m68k-gcc7.spec index 6301b45..756cb74 100644 --- a/cross-m68k-gcc7.spec +++ b/cross-m68k-gcc7.spec @@ -66,10 +66,14 @@ %if "%{binutils_target}" == "arm" %define binutils_os %{canonical_target}-suse-linux-gnueabi %else +%if 0%{?gcc_accel:1} +%define binutils_os %{gcc_target_arch} +%else %define binutils_os %{canonical_target}-suse-linux %endif %endif %endif +%endif %if 0%{?gcc_icecream:1} %define build_sysroot / @@ -78,10 +82,6 @@ %define sysroot %{_prefix}/%{binutils_os}/sys-root %endif -%if 0%{!?gcc_target_newlib:1} -%define gcc_target_glibc 1 -%endif - %if %{suse_version} >= 1220 %define selfconflict() %1 %else @@ -89,8 +89,10 @@ %endif Name: %{pkgname} -BuildRequires: bison +%if %{cross_arch} != "nvptx" BuildRequires: cross-%{binutils_target}-binutils +%endif +BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: gettext-devel @@ -117,6 +119,10 @@ BuildRequires: cross-%cross_arch-newlib-devel %if 0%{?gcc_target_glibc:1} BuildRequires: cross-%cross_arch-glibc-devel %endif +%if %{cross_arch} == "nvptx" +BuildRequires: nvptx-tools +ExclusiveArch: x86_64 +%endif %endif %if 0%{?gcc_icecream:1} ExclusiveArch: ppc64le ppc64 x86_64 s390x aarch64 @@ -137,7 +143,7 @@ Conflicts: %selfconflict %{gcc_target_arch}-gcc %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 Url: http://gcc.gnu.org/ -Version: 7.0.1+r244867 +Version: 7.0.1+r244934 Release: 0 %define gcc_version %(echo %version | sed 's/+.*//') %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1) @@ -148,6 +154,7 @@ Source: gcc-%{gcc_version}%{gcc_snapshot_revision}.tar.bz2 Source1: change_spec Source3: gcc7-rpmlintrc Source4: README.First-for.SuSE.packagers +Source5: nvptx-newlib.tar.bz2 #testpatch begin @@ -214,7 +221,12 @@ namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go. %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version} %prep +%if %{cross_arch} == "nvptx" +%setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} -a 5 +ln -s nvptx-newlib/newlib . +%else %setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} +%endif #test patching start @@ -456,6 +468,11 @@ nvptx-none=%{_prefix}/nvptx-none, \ --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \ --with-newlib \ %endif +%if "%{TARGET_ARCH}" == "nvptx" + --enable-as-accelerator-for=%{GCCDIST} \ + --disable-sjlj-exceptions \ + --enable-newlib-io-long-long \ +%endif %endif %if "%{TARGET_ARCH}" == "arm" --with-arch=armv6zk \ @@ -647,7 +664,14 @@ rm -r env %files %defattr(-,root,root) +%if 0%{?gcc_accel:1} +%{_prefix}/bin/%{GCCDIST}-accel-%{gcc_target_arch}-* +%dir %{libsubdir} +%dir %{libsubdir}/accel +%{libsubdir}/accel/%{gcc_target_arch} +%else %{_prefix}/bin/%{gcc_target_arch}-* +%endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} %{targetlibsubdir} diff --git a/cross-mips-gcc7.changes b/cross-mips-gcc7.changes index fa2aa67..bc71a49 100644 --- a/cross-mips-gcc7.changes +++ b/cross-mips-gcc7.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 26 15:10:21 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244934). +- Add accelerator offloading cross to nvptx-none, for this also + add nvptx-newlib.tar.bz2. + ------------------------------------------------------------------- Tue Jan 24 12:56:39 UTC 2017 - rguenther@suse.com diff --git a/cross-mips-gcc7.spec b/cross-mips-gcc7.spec index e1cead3..dd56b8a 100644 --- a/cross-mips-gcc7.spec +++ b/cross-mips-gcc7.spec @@ -66,10 +66,14 @@ %if "%{binutils_target}" == "arm" %define binutils_os %{canonical_target}-suse-linux-gnueabi %else +%if 0%{?gcc_accel:1} +%define binutils_os %{gcc_target_arch} +%else %define binutils_os %{canonical_target}-suse-linux %endif %endif %endif +%endif %if 0%{?gcc_icecream:1} %define build_sysroot / @@ -78,10 +82,6 @@ %define sysroot %{_prefix}/%{binutils_os}/sys-root %endif -%if 0%{!?gcc_target_newlib:1} -%define gcc_target_glibc 1 -%endif - %if %{suse_version} >= 1220 %define selfconflict() %1 %else @@ -89,8 +89,10 @@ %endif Name: %{pkgname} -BuildRequires: bison +%if %{cross_arch} != "nvptx" BuildRequires: cross-%{binutils_target}-binutils +%endif +BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: gettext-devel @@ -117,6 +119,10 @@ BuildRequires: cross-%cross_arch-newlib-devel %if 0%{?gcc_target_glibc:1} BuildRequires: cross-%cross_arch-glibc-devel %endif +%if %{cross_arch} == "nvptx" +BuildRequires: nvptx-tools +ExclusiveArch: x86_64 +%endif %endif %if 0%{?gcc_icecream:1} ExclusiveArch: ppc64le ppc64 x86_64 s390x aarch64 @@ -137,7 +143,7 @@ Conflicts: %selfconflict %{gcc_target_arch}-gcc %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 Url: http://gcc.gnu.org/ -Version: 7.0.1+r244867 +Version: 7.0.1+r244934 Release: 0 %define gcc_version %(echo %version | sed 's/+.*//') %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1) @@ -148,6 +154,7 @@ Source: gcc-%{gcc_version}%{gcc_snapshot_revision}.tar.bz2 Source1: change_spec Source3: gcc7-rpmlintrc Source4: README.First-for.SuSE.packagers +Source5: nvptx-newlib.tar.bz2 #testpatch begin @@ -214,7 +221,12 @@ namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go. %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version} %prep +%if %{cross_arch} == "nvptx" +%setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} -a 5 +ln -s nvptx-newlib/newlib . +%else %setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} +%endif #test patching start @@ -456,6 +468,11 @@ nvptx-none=%{_prefix}/nvptx-none, \ --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \ --with-newlib \ %endif +%if "%{TARGET_ARCH}" == "nvptx" + --enable-as-accelerator-for=%{GCCDIST} \ + --disable-sjlj-exceptions \ + --enable-newlib-io-long-long \ +%endif %endif %if "%{TARGET_ARCH}" == "arm" --with-arch=armv6zk \ @@ -647,7 +664,14 @@ rm -r env %files %defattr(-,root,root) +%if 0%{?gcc_accel:1} +%{_prefix}/bin/%{GCCDIST}-accel-%{gcc_target_arch}-* +%dir %{libsubdir} +%dir %{libsubdir}/accel +%{libsubdir}/accel/%{gcc_target_arch} +%else %{_prefix}/bin/%{gcc_target_arch}-* +%endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} %{targetlibsubdir} diff --git a/cross-nvptx-gcc7.changes b/cross-nvptx-gcc7.changes new file mode 100644 index 0000000..bc71a49 --- /dev/null +++ b/cross-nvptx-gcc7.changes @@ -0,0 +1,75 @@ +------------------------------------------------------------------- +Thu Jan 26 15:10:21 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244934). +- Add accelerator offloading cross to nvptx-none, for this also + add nvptx-newlib.tar.bz2. + +------------------------------------------------------------------- +Tue Jan 24 12:56:39 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244867). +- Bump libgo SO version to 11. +- PowerPC now supports lsan and tsan. +- Correct lsan/tsan packaging who are 64bits only. + +------------------------------------------------------------------- +Fri Jan 20 08:36:18 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244684). +- Use --with-gcc-major-version-only and drop gcc-dir-version.patch. +- Enable offloading for nvptx-none on the host (offload compiler still + missing). Re-enable HSA offloading. +- Re-add missing cross.spec.in and enable crosses. + +------------------------------------------------------------------- +Thu Jan 12 12:01:01 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244350). +- Package avx512vpopcntdqintrin.h and sgxintrin.h on x86_64/i?86. + +------------------------------------------------------------------- +Wed Dec 14 14:34:22 UTC 2016 - rguenther@suse.com + +- Update to gcc trunk head (r243648). +- Package {arm,aarch64}/arm_fp16.h and arm/arm_cmse.h. + +------------------------------------------------------------------- +Mon Nov 28 10:43:45 UTC 2016 - rguenther@suse.com + +- Remove broken libffi build support. +- Remove more Java remanents. + +------------------------------------------------------------------- +Fri Nov 25 08:30:28 UTC 2016 - mliska@suse.cz + +- Update to gcc trunk (r242874). +- Add avx5124fmapsintrin.h and avx5124vnniwintrin.h header files. + +------------------------------------------------------------------- +Wed Nov 23 15:36:06 UTC 2016 - mliska@suse.cz + +- New package, inherits from gcc6 + * gcc-dir-version.patch, drop patchlevel from install directory names + * gcc-add-defaultsspec.diff, add the ability to provide a specs file + that is read by default + * tls-no-direct.diff, avoid direct %fs references on x86 to not slow down + Xen + * gcc43-no-unwind-tables.diff, do not produce unwind tables for CRT files + * gcc41-ppc32-retaddr.patch, fix expansion of __builtin_return_addr for ppc + * gcc44-textdomain.patch, make translation files version specific and + adjust textdomain to find them + * gcc44-rename-info-files.patch, fix cross-references in info files when + renaming them to be version specific + * gcc48-libstdc++-api-reference.patch, fix link in the installed libstdc++ + html documentation + * gcc48-remove-mpfr-2.4.0-requirement.patch, make GCC work with earlier + mpfr versions on old products + * gcc5-no-return-gcc43-workaround.patch, make build work with host gcc 4.3 +- Drops + * libjava-no-multilib.diff, gcc41-java-slow_pthread_self.patch + and all Java related hunks in included patches + because Java is no longer included in GCC 7. + * gcc6-hsa-enablement.patch as it's part of trunk + * gcc6-libsanitizer-aarch64-vma48.patch as it's part of trunk + * gcc6-SOURCE_DATE_EPOCH.patch as it's part of trunk diff --git a/cross-nvptx-gcc7.spec b/cross-nvptx-gcc7.spec new file mode 100644 index 0000000..bd3aa5d --- /dev/null +++ b/cross-nvptx-gcc7.spec @@ -0,0 +1,689 @@ +# +# spec file for package cross-nvptx-gcc7 +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%define pkgname cross-nvptx-gcc7 +%define cross_arch nvptx +%define gcc_target_arch nvptx-none +%define gcc_accel 1 +# +# spec file for package gcc (Version 4.0.1) +# +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://www.suse.de/feedback/ +# + +%define build_cp 1 +%define build_ada 0 +%define build_libjava 0 +%define build_java 0 + +%define build_fortran 0 +%define build_objc 0 +%define build_objcp 0 +%define build_go 0 +%define build_hsa 0 +%define build_nvptx 0 + +%define enable_plugins 0 + +%define binutils_target %{cross_arch} +%if %{cross_arch} == "armv7l" || %{cross_arch} == "armv7hl" +%define binutils_target arm +%endif +%if %{cross_arch} == "armv6l" || %{cross_arch} == "armv6hl" +%define binutils_target arm +%endif +%if %{cross_arch} == "armv5tel" +%define binutils_target arm +%endif +%if %{cross_arch} == "sparcv9" +%define binutils_target sparc +%endif +%define canonical_target %(echo %{binutils_target} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;") +%if "%{binutils_target}" == "avr" || "%{binutils_target}" == "spu" +%define binutils_os %{canonical_target} +%else +%if "%{binutils_target}" == "epiphany" || "%{binutils_target}" == "nds32le" || "%{binutils_target}" == "rl78" || "%{binutils_target}" == "rx" +%define binutils_os %{canonical_target}-elf +%else +%if "%{binutils_target}" == "arm" +%define binutils_os %{canonical_target}-suse-linux-gnueabi +%else +%if 0%{?gcc_accel:1} +%define binutils_os %{gcc_target_arch} +%else +%define binutils_os %{canonical_target}-suse-linux +%endif +%endif +%endif +%endif + +%if 0%{?gcc_icecream:1} +%define build_sysroot / +%else +# use same sysroot as in binutils.spec +%define sysroot %{_prefix}/%{binutils_os}/sys-root +%endif + +%if %{suse_version} >= 1220 +%define selfconflict() %1 +%else +%define selfconflict() otherproviders(%1) +%endif + +Name: %{pkgname} +%if %{cross_arch} != "nvptx" +BuildRequires: cross-%{binutils_target}-binutils +%endif +BuildRequires: bison +BuildRequires: flex +BuildRequires: gcc-c++ +BuildRequires: gettext-devel +BuildRequires: glibc-devel-32bit +BuildRequires: mpc-devel +BuildRequires: mpfr-devel +BuildRequires: perl +%if %{suse_version} > 1220 +BuildRequires: makeinfo +%else +BuildRequires: texinfo +%endif +BuildRequires: zlib-devel +%ifarch %ix86 x86_64 ppc ppc64 s390 s390x ia64 %sparc hppa %arm +BuildRequires: isl-devel +%endif +%ifarch ia64 +BuildRequires: libunwind-devel +%endif +%if 0%{!?gcc_icecream:1} +%if 0%{?gcc_target_newlib:1} && 0%{!?gcc_libc_bootstrap:1} +BuildRequires: cross-%cross_arch-newlib-devel +%endif +%if 0%{?gcc_target_glibc:1} +BuildRequires: cross-%cross_arch-glibc-devel +%endif +%if %{cross_arch} == "nvptx" +BuildRequires: nvptx-tools +ExclusiveArch: x86_64 +%endif +%endif +%if 0%{?gcc_icecream:1} +ExclusiveArch: ppc64le ppc64 x86_64 s390x aarch64 +%endif +%define _binary_payload w.ufdio +# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has +# file conflicts with it and is no longer packaged +%if "%pkgname" == "cross-ppc64-gcc49" +Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 +%endif +%if 0%{?gcc_target_newlib:1} +# Generally only one cross for the same target triplet can be installed +# at the same time as we are populating a non-version-specific sysroot +Provides: %{gcc_target_arch}-gcc +Conflicts: %selfconflict %{gcc_target_arch}-gcc +%endif + +%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 + +Url: http://gcc.gnu.org/ +Version: 7.0.1+r244934 +Release: 0 +%define gcc_version %(echo %version | sed 's/+.*//') +%define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1) +%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/') +%define binsuffix -7 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Source: gcc-%{gcc_version}%{gcc_snapshot_revision}.tar.bz2 +Source1: change_spec +Source3: gcc7-rpmlintrc +Source4: README.First-for.SuSE.packagers +Source5: nvptx-newlib.tar.bz2 + +#testpatch begin + +Patch2: gcc-add-defaultsspec.diff +Patch5: tls-no-direct.diff +Patch6: gcc43-no-unwind-tables.diff +Patch7: gcc48-libstdc++-api-reference.patch +Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch +Patch10: gcc5-no-return-gcc43-workaround.patch +# A set of patches from the RH srpm +Patch51: gcc41-ppc32-retaddr.patch +# Some patches taken from Debian +Patch60: gcc44-textdomain.patch +Patch61: gcc44-rename-info-files.patch + +#testpatch end + +Summary: The GNU C Compiler and Support Files +License: GPL-3.0+ +Group: Development/Languages/C and C++ + +%description +Core package for the GNU Compiler Collection, including the C language +frontend. + +Language frontends other than C are split to different sub-packages, +namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go. + + + + +# Define the canonical target and host architecture +# %gcc_target_arch is supposed to be the full target triple +# %cross_arch is supposed to be the rpm target variant arch +# %TARGET_ARCH will be the canonicalized target CPU part +# %HOST_ARCH will be the canonicalized host CPU part +%if 0%{?gcc_target_arch:1} +%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;") +%else +%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;") +%endif +%if 0%{?disable_32bit:1} +%define biarch 0 +%else +%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac) +%endif + +%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;") +%ifarch ppc +%define GCCDIST powerpc64-suse-linux +%else +%ifarch %sparc +%define GCCDIST sparc64-suse-linux +%else +%ifarch %arm +%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi +%else +%define GCCDIST %{HOST_ARCH}-suse-linux +%endif +%endif +%endif + +%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version} +%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version} + +%prep +%if %{cross_arch} == "nvptx" +%setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} -a 5 +ln -s nvptx-newlib/newlib . +%else +%setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} +%endif + +#test patching start + +%patch2 +%patch5 +%patch6 +%patch7 +%if %{suse_version} < 1310 +%patch9 +%endif +%patch10 +%patch51 +%patch60 +%patch61 + +#test patching end + +# We are configuring ppc as ppc64 but with switched multilibs. Adjust +# the libstdc++ abi testsuite baseline files accordingly +%ifarch ppc +if [ -d libstdc++-v3/config/abi/post/powerpc64-linux-gnu ]; then + mkdir -p libstdc++-v3/config/abi/post/powerpc64-linux-gnu/64 + mv libstdc++-v3/config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt \ + libstdc++-v3/config/abi/post/powerpc64-linux-gnu/64/ + mv libstdc++-v3/config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt \ + libstdc++-v3/config/abi/post/powerpc64-linux-gnu/ +fi +%endif + +%build +# Avoid rebuilding of generated files +contrib/gcc_update --touch +# Avoid fucking up testsuite results with Java and indirect dispatch +export SUSE_ASNEEDED=0 +# Split version file into version used for directories (X) and +# version to report with --version (X.Y.Z). +# See also gcc-dir-version.patch. +mv gcc/BASE-VER gcc/FULL-VER +cat gcc/FULL-VER | cut -d '.' -f 1 > gcc/BASE-VER + +# SLE11 does not allow empty rpms +%if %{suse_version} < 1310 +echo "This is a dummy package to provide a dependency." > README +%endif + +rm -rf obj-%{GCCDIST} +mkdir obj-%{GCCDIST} +cd obj-%{GCCDIST} +RPM_OPT_FLAGS="$RPM_OPT_FLAGS -U_FORTIFY_SOURCE" +RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-fno-rtti//g' -e 's/-fno-exceptions//g' -e 's/-Wmissing-format-attribute//g' -e 's/-fstack-protector[^ ]*//g' -e 's/-ffortify=.//g' -e 's/-Wall//g' -e 's/-m32//g' -e 's/-m64//g'` +%ifarch %ix86 +# -mcpu is superceded by -mtune but -mtune is not supported by +# our bootstrap compiler. -mcpu gives a warning that stops +# the build process, so remove it for now. Also remove all other +# -march and -mtune flags. They are superseeded by proper +# default compiler settings now. +RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-mcpu=i.86//g' -e 's/-march=i.86//g' -e 's/-mtune=i.86//g'` +%endif +%ifarch s390 s390x +RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-fsigned-char//g'` +RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-O1/-O2/g'` +%endif +%if 0%{?gcc_target_arch:1} +# Kill all -march/tune/cpu because that screws building the target libs +RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-m\(arch\|tune\|cpu\)=[^ ]*//g'` +%endif +# Replace 2 spaces by one finally +RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/ / /g'` + +languages=c +%if %{build_cp} +languages=$languages,c++ +%endif +%if %{build_objc} +languages=$languages,objc +%endif +%if %{build_fortran} +languages=$languages,fortran +%endif +%if %{build_objcp} +languages=$languages,obj-c++ +%endif +%if %{build_ada} +languages=$languages,ada +%endif +%if %{build_go} +languages=$languages,go +%endif + +J=%{?jobs:%jobs} +if test -z "$J"; then + J=$(getconf _NPROCESSORS_CONF) + JL=$(($J * 2)) +else + test 1 -gt "$J" && J=1 + JL=$(($(getconf _NPROCESSORS_CONF)*2)) +fi +if test "$J" == "0"; then + J=1 +fi +if test "$JL" == "0"; then + JL=1 +fi +PARALLEL="-j$J -l$JL" + +# we don't want some miscompiles in the testsuite, or some fault in +# the compiler to kill the machine. Hence we limit the amount of memory +# by the physical RAM plus half of swap +#MEM=$(free -m | awk '/^Mem:/ {print $2}') +#SWAP=$(free -m | awk '/^Swap:/ {print $2}') +#ulimit -v $(((MEM + SWAP/2)*1024)) + +# In general we want to ship release checking enabled compilers +# 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 + +%if %{build_ada} +# Using the host gnatmake like +# CC="gcc%{hostsuffix}" GNATBIND="gnatbind%{hostsuffix}" +# GNATMAKE="gnatmake%{hostsuffix}" +# doesn't work due to PR33857, so an un-suffixed gnatmake has to be +# available +mkdir -p host-tools/bin +cp -a /usr/bin/gnatmake%{hostsuffix} host-tools/bin/gnatmake +cp -a /usr/bin/gnatlink%{hostsuffix} host-tools/bin/gnatlink +cp -a /usr/bin/gnatbind%{hostsuffix} host-tools/bin/gnatbind +cp -a /usr/bin/gcc%{hostsuffix} host-tools/bin/gcc +ln -sf /usr/%{_lib} host-tools/%{_lib} +export PATH="`pwd`/host-tools/bin:$PATH" +%endif +#%if 0%{?gcc_target_arch:1} +#%else +# --enable-threads=posix \ +#%endif +# --enable-shared \ +CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \ +TCFLAGS="$RPM_OPT_FLAGS" \ +../configure \ + --prefix=%{_prefix} \ + --infodir=%{_infodir} \ + --mandir=%{_mandir} \ + --libdir=%{_libdir} \ + --libexecdir=%{_libdir} \ + --enable-languages=$languages \ +%if %{build_hsa} || %{build_nvptx} + --enable-offload-targets=\ +%if %{build_hsa} +hsa,\ +%endif +%if %{build_nvptx} +nvptx-none=%{_prefix}/nvptx-none, \ +%endif +%endif +%if %{build_nvptx} + --without-cuda-driver \ +%endif + $ENABLE_CHECKING \ + --disable-werror \ + --with-gxx-include-dir=%{_prefix}/include/c++/%{gcc_dir_version} \ + --enable-ssp \ + --disable-libssp \ +%if 0%{!?build_libvtv:1} + --disable-libvtv \ +%endif +%ifnarch %mpx_arch + --disable-libmpx \ +%endif + --disable-libcc1 \ +%if %{enable_plugins} + --enable-plugin \ +%else + --disable-plugin \ +%endif + --with-bugurl="http://bugs.opensuse.org/" \ + --with-pkgversion="SUSE Linux" \ + --with-slibdir=/%{_lib} \ + --with-system-zlib \ + --enable-__cxa_atexit \ + --enable-libstdcxx-allocator=new \ + --disable-libstdcxx-pch \ +%if 0%{suse_version} <= 1320 + --with-default-libstdcxx-abi=gcc4-compatible \ +%endif + --enable-version-specific-runtime-libs \ + --with-gcc-major-version-only \ +%if 0%{suse_version} > 1100 + --enable-linker-build-id \ +%endif + --enable-linux-futex \ +%if %{suse_version} >= 1315 +%ifarch %ix86 x86_64 ppc ppc64 ppc64le %arm aarch64 s390 s390x %sparc + --enable-gnu-indirect-function \ +%endif +%endif + --program-suffix=%{binsuffix} \ +%if 0%{?disable_32bit:1} + --disable-multilib \ +%endif +%if 0%{!?gcc_target_arch:1} +%ifarch ia64 + --with-system-libunwind \ +%else + --without-system-libunwind \ +%endif +%endif +%if 0%{?gcc_target_arch:1} + --program-prefix=%{gcc_target_arch}- \ + --target=%{gcc_target_arch} \ + --disable-nls \ +%if 0%{?sysroot:1} + --with-sysroot=%sysroot \ +%else + --with-sysroot=%{_prefix}/%{gcc_target_arch} \ +%endif +%if 0%{?build_sysroot:1} + --with-build-sysroot=%{build_sysroot} \ +%else +%if 0%{?sysroot:1} + --with-build-sysroot=%{sysroot} \ +%else + --with-build-sysroot=%{_prefix}/%{gcc_target_arch} \ +%endif +%endif +%if 0%{?binutils_os:1} + --with-build-time-tools=/usr/%{binutils_os}/bin \ +%endif +%if 0%{?gcc_target_newlib} + --with-newlib \ +%if 0%{?gcc_libc_bootstrap:1} + --without-headers \ +%endif +%endif +%if "%{TARGET_ARCH}" == "spu" + --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \ + --with-newlib \ +%endif +%if "%{TARGET_ARCH}" == "nvptx" + --enable-as-accelerator-for=%{GCCDIST} \ + --disable-sjlj-exceptions \ + --enable-newlib-io-long-long \ +%endif +%endif +%if "%{TARGET_ARCH}" == "arm" + --with-arch=armv6zk \ + --with-tune=arm1176jzf-s \ + --with-float=hard \ + --with-abi=aapcs-linux \ + --with-fpu=vfp \ + --disable-sjlj-exceptions \ +%endif +%if "%{TARGET_ARCH}" == "armv5tel" + --with-arch=armv5te \ + --with-float=soft \ + --with-mode=arm \ + --with-abi=aapcs-linux \ + --disable-sjlj-exceptions \ +%endif +%if "%{TARGET_ARCH}" == "armv6hl" + --with-arch=armv6zk \ + --with-tune=arm1176jzf-s \ + --with-float=hard \ + --with-abi=aapcs-linux \ + --with-fpu=vfp \ + --disable-sjlj-exceptions \ +%endif +%if "%{TARGET_ARCH}" == "armv7hl" + --with-arch=armv7-a \ + --with-tune=cortex-a15 \ + --with-float=hard \ + --with-abi=aapcs-linux \ + --with-fpu=vfpv3-d16 \ + --disable-sjlj-exceptions \ +%endif +%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le" +%if "%{TARGET_ARCH}" == "powerpc" + --with-cpu=default32 \ +%endif +%if "%{TARGET_ARCH}" == "powerpc64le" +%if %{suse_version} >= 1315 && %{suse_version} != 1320 + --with-cpu=power8 \ + --with-tune=power8 \ +%else + --with-cpu=power7 \ + --with-tune=power7 \ +%endif +%else + --with-cpu-64=power4 \ +%endif + --enable-secureplt \ + --with-long-double-128 \ +%if "%{TARGET_ARCH}" == "powerpc64le" + --enable-targets=powerpcle-linux \ + --disable-multilib \ +%endif +%endif +%if "%{TARGET_ARCH}" == "sparc64" + --with-cpu=ultrasparc \ + --with-long-double-128 \ +%endif +%if "%{TARGET_ARCH}" == "sparc" + --with-cpu=v8 \ + --with-long-double-128 \ +%endif +%if "%{TARGET_ARCH}" == "i586" + --with-arch-32=i586 \ + --with-tune=generic \ +%endif +%if "%{TARGET_ARCH}" == "x86_64" + --enable-multilib \ + --with-arch-32=x86-64 \ + --with-tune=generic \ +%endif +%if "%{TARGET_ARCH}" == "s390" +%if %{suse_version} >= 1310 + --with-tune=zEC12 --with-arch=z196 \ +%else + --with-tune=z9-109 --with-arch=z900 \ +%endif + --with-long-double-128 \ + --enable-decimal-float \ +%endif +%if "%{TARGET_ARCH}" == "s390x" +%if %{suse_version} >= 1310 + --with-tune=zEC12 --with-arch=z196 \ +%else + --with-tune=z9-109 --with-arch=z900 \ +%endif + --with-long-double-128 \ + --enable-decimal-float \ +%endif +%if "%{TARGET_ARCH}" == "m68k" + --disable-multilib \ +%endif + --build=%{GCCDIST} \ + --host=%{GCCDIST} + +%if 0%{!?gcc_icecream:1} && 0%{!?gcc_libc_bootstrap:1} +make %{?jobs:-j%jobs} +%else +make %{?jobs:-j%jobs} all-host +%endif + +%if 0%{?gcc_icecream:%gcc_icecream} +%package -n cross-%cross_arch-gcc7-icecream-backend +Summary: Icecream backend for the GNU C Compiler +Group: Development/Languages/C and C++ + +%description -n cross-%cross_arch-gcc7-icecream-backend +This package contains the icecream environment for the GNU C Compiler +%endif + +%define targetlibsubdir %{_libdir}/gcc/%{gcc_target_arch}/%{gcc_dir_version} + +%install +cd obj-%{GCCDIST} + +# install and fixup host parts +make DESTDIR=$RPM_BUILD_ROOT install-host +%if 0%{?gcc_icecream:1} +# with the gcc_icecream setup fixincludes are for the build includes which +# is wrong - get rid of them +rm -rf $RPM_BUILD_ROOT/%{targetlibsubdir}/include-fixed +%endif +rm -f $RPM_BUILD_ROOT/%{targetlibsubdir}/liblto_plugin.la +# common fixup +rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a + +# install and fixup target parts +# debugedit is not prepared for this and crashes +%if 0%{?gcc_icecream:1} +# so expect the sysroot to be populated from natively built binaries +%else +%if 0%{!?gcc_libc_bootstrap:1} +export NO_BRP_STRIP_DEBUG=true +export NO_DEBUGINFO_STRIP_DEBUG=true +%define __debug_install_post %{nil} +: >../debugfiles.list +: >../debugsources.list +make DESTDIR=$RPM_BUILD_ROOT/%{sysroot} install-target +%endif +%endif + +# remove docs +rm -rf $RPM_BUILD_ROOT%{_mandir} +rm -rf $RPM_BUILD_ROOT%{_infodir} + +%if 0%{?gcc_icecream:%gcc_icecream} +# Build an icecream environment +# The assembler comes from the cross-binutils, and hence is _not_ +# named funnily, not even on ppc, so there we need the original target +install -s -D %{_prefix}/bin/%{binutils_os}-as \ + $RPM_BUILD_ROOT/env/usr/bin/as +install -s $RPM_BUILD_ROOT/%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} \ + $RPM_BUILD_ROOT/env/usr/bin/g++ +install -s $RPM_BUILD_ROOT/%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} \ + $RPM_BUILD_ROOT/env/usr/bin/gcc + +for back in cc1 cc1plus; do + install -s -D $RPM_BUILD_ROOT/%{targetlibsubdir}/$back \ + $RPM_BUILD_ROOT/env%{targetlibsubdir}/$back +done +if test -f $RPM_BUILD_ROOT/%{targetlibsubdir}/liblto_plugin.so; then + install -s -D $RPM_BUILD_ROOT/%{targetlibsubdir}/liblto_plugin.so \ + $RPM_BUILD_ROOT/env%{targetlibsubdir}/liblto_plugin.so +fi + +# Make sure to also pull in all shared library requirements for the +# binaries we put into the environment which is operated by chrooting +# into it and execing the compiler +libs=`for bin in $RPM_BUILD_ROOT/env/usr/bin/* $RPM_BUILD_ROOT/env%{targetlibsubdir}/*; do \ + ldd $bin | sed -n '\,^[^/]*\(/[^ ]*\).*,{ s//\1/; p; }' ;\ +done | sort -u ` +for lib in $libs; do + # Check wether the same library also exists in the parent directory, + # and prefer that on the assumption that it is a more generic one. + baselib=`echo "$lib" | sed 's,/[^/]*\(/[^/]*\)$,\1,'` + test -f "$baselib" && lib=$baselib + install -s -D $lib $RPM_BUILD_ROOT/env$lib +done + +cd $RPM_BUILD_ROOT/env +tar cvzf ../%{name}_%{_arch}.tar.gz * +cd .. +mkdir -p usr/share/icecream-envs +mv %{name}_%{_arch}.tar.gz usr/share/icecream-envs +rpm -q --changelog glibc > usr/share/icecream-envs/%{name}_%{_arch}.glibc +rpm -q --changelog binutils > usr/share/icecream-envs/%{name}_%{_arch}.binutils +rm -r env +%endif + +%files +%defattr(-,root,root) +%if 0%{?gcc_accel:1} +%{_prefix}/bin/%{GCCDIST}-accel-%{gcc_target_arch}-* +%dir %{libsubdir} +%dir %{libsubdir}/accel +%{libsubdir}/accel/%{gcc_target_arch} +%else +%{_prefix}/bin/%{gcc_target_arch}-* +%endif +%dir %{targetlibsubdir} +%dir %{_libdir}/gcc/%{gcc_target_arch} +%{targetlibsubdir} + +%if 0%{!?gcc_icecream:1} && 0%{!?gcc_libc_bootstrap:1} +%{sysroot} +%endif + +%if 0%{?gcc_icecream:%gcc_icecream} +%files -n cross-%cross_arch-gcc7-icecream-backend +%defattr(-,root,root) +/usr/share/icecream-envs +%endif + +%changelog diff --git a/cross-ppc64-gcc7.changes b/cross-ppc64-gcc7.changes index fa2aa67..bc71a49 100644 --- a/cross-ppc64-gcc7.changes +++ b/cross-ppc64-gcc7.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 26 15:10:21 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244934). +- Add accelerator offloading cross to nvptx-none, for this also + add nvptx-newlib.tar.bz2. + ------------------------------------------------------------------- Tue Jan 24 12:56:39 UTC 2017 - rguenther@suse.com diff --git a/cross-ppc64-gcc7.spec b/cross-ppc64-gcc7.spec index f07007e..a8fd2ea 100644 --- a/cross-ppc64-gcc7.spec +++ b/cross-ppc64-gcc7.spec @@ -66,10 +66,14 @@ %if "%{binutils_target}" == "arm" %define binutils_os %{canonical_target}-suse-linux-gnueabi %else +%if 0%{?gcc_accel:1} +%define binutils_os %{gcc_target_arch} +%else %define binutils_os %{canonical_target}-suse-linux %endif %endif %endif +%endif %if 0%{?gcc_icecream:1} %define build_sysroot / @@ -78,10 +82,6 @@ %define sysroot %{_prefix}/%{binutils_os}/sys-root %endif -%if 0%{!?gcc_target_newlib:1} -%define gcc_target_glibc 1 -%endif - %if %{suse_version} >= 1220 %define selfconflict() %1 %else @@ -89,8 +89,10 @@ %endif Name: %{pkgname} -BuildRequires: bison +%if %{cross_arch} != "nvptx" BuildRequires: cross-%{binutils_target}-binutils +%endif +BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: gettext-devel @@ -117,6 +119,10 @@ BuildRequires: cross-%cross_arch-newlib-devel %if 0%{?gcc_target_glibc:1} BuildRequires: cross-%cross_arch-glibc-devel %endif +%if %{cross_arch} == "nvptx" +BuildRequires: nvptx-tools +ExclusiveArch: x86_64 +%endif %endif %if 0%{?gcc_icecream:1} ExclusiveArch: ppc64le x86_64 s390x aarch64 @@ -137,7 +143,7 @@ Conflicts: %selfconflict %{gcc_target_arch}-gcc %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 Url: http://gcc.gnu.org/ -Version: 7.0.1+r244867 +Version: 7.0.1+r244934 Release: 0 %define gcc_version %(echo %version | sed 's/+.*//') %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1) @@ -148,6 +154,7 @@ Source: gcc-%{gcc_version}%{gcc_snapshot_revision}.tar.bz2 Source1: change_spec Source3: gcc7-rpmlintrc Source4: README.First-for.SuSE.packagers +Source5: nvptx-newlib.tar.bz2 #testpatch begin @@ -214,7 +221,12 @@ namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go. %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version} %prep +%if %{cross_arch} == "nvptx" +%setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} -a 5 +ln -s nvptx-newlib/newlib . +%else %setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} +%endif #test patching start @@ -456,6 +468,11 @@ nvptx-none=%{_prefix}/nvptx-none, \ --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \ --with-newlib \ %endif +%if "%{TARGET_ARCH}" == "nvptx" + --enable-as-accelerator-for=%{GCCDIST} \ + --disable-sjlj-exceptions \ + --enable-newlib-io-long-long \ +%endif %endif %if "%{TARGET_ARCH}" == "arm" --with-arch=armv6zk \ @@ -647,7 +664,14 @@ rm -r env %files %defattr(-,root,root) +%if 0%{?gcc_accel:1} +%{_prefix}/bin/%{GCCDIST}-accel-%{gcc_target_arch}-* +%dir %{libsubdir} +%dir %{libsubdir}/accel +%{libsubdir}/accel/%{gcc_target_arch} +%else %{_prefix}/bin/%{gcc_target_arch}-* +%endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} %{targetlibsubdir} diff --git a/cross-ppc64le-gcc7.changes b/cross-ppc64le-gcc7.changes index fa2aa67..bc71a49 100644 --- a/cross-ppc64le-gcc7.changes +++ b/cross-ppc64le-gcc7.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 26 15:10:21 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244934). +- Add accelerator offloading cross to nvptx-none, for this also + add nvptx-newlib.tar.bz2. + ------------------------------------------------------------------- Tue Jan 24 12:56:39 UTC 2017 - rguenther@suse.com diff --git a/cross-ppc64le-gcc7.spec b/cross-ppc64le-gcc7.spec index a9cd6c8..32702be 100644 --- a/cross-ppc64le-gcc7.spec +++ b/cross-ppc64le-gcc7.spec @@ -66,10 +66,14 @@ %if "%{binutils_target}" == "arm" %define binutils_os %{canonical_target}-suse-linux-gnueabi %else +%if 0%{?gcc_accel:1} +%define binutils_os %{gcc_target_arch} +%else %define binutils_os %{canonical_target}-suse-linux %endif %endif %endif +%endif %if 0%{?gcc_icecream:1} %define build_sysroot / @@ -78,10 +82,6 @@ %define sysroot %{_prefix}/%{binutils_os}/sys-root %endif -%if 0%{!?gcc_target_newlib:1} -%define gcc_target_glibc 1 -%endif - %if %{suse_version} >= 1220 %define selfconflict() %1 %else @@ -89,8 +89,10 @@ %endif Name: %{pkgname} -BuildRequires: bison +%if %{cross_arch} != "nvptx" BuildRequires: cross-%{binutils_target}-binutils +%endif +BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: gettext-devel @@ -117,6 +119,10 @@ BuildRequires: cross-%cross_arch-newlib-devel %if 0%{?gcc_target_glibc:1} BuildRequires: cross-%cross_arch-glibc-devel %endif +%if %{cross_arch} == "nvptx" +BuildRequires: nvptx-tools +ExclusiveArch: x86_64 +%endif %endif %if 0%{?gcc_icecream:1} ExclusiveArch: ppc64 x86_64 s390x aarch64 @@ -137,7 +143,7 @@ Conflicts: %selfconflict %{gcc_target_arch}-gcc %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 Url: http://gcc.gnu.org/ -Version: 7.0.1+r244867 +Version: 7.0.1+r244934 Release: 0 %define gcc_version %(echo %version | sed 's/+.*//') %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1) @@ -148,6 +154,7 @@ Source: gcc-%{gcc_version}%{gcc_snapshot_revision}.tar.bz2 Source1: change_spec Source3: gcc7-rpmlintrc Source4: README.First-for.SuSE.packagers +Source5: nvptx-newlib.tar.bz2 #testpatch begin @@ -214,7 +221,12 @@ namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go. %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version} %prep +%if %{cross_arch} == "nvptx" +%setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} -a 5 +ln -s nvptx-newlib/newlib . +%else %setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} +%endif #test patching start @@ -456,6 +468,11 @@ nvptx-none=%{_prefix}/nvptx-none, \ --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \ --with-newlib \ %endif +%if "%{TARGET_ARCH}" == "nvptx" + --enable-as-accelerator-for=%{GCCDIST} \ + --disable-sjlj-exceptions \ + --enable-newlib-io-long-long \ +%endif %endif %if "%{TARGET_ARCH}" == "arm" --with-arch=armv6zk \ @@ -647,7 +664,14 @@ rm -r env %files %defattr(-,root,root) +%if 0%{?gcc_accel:1} +%{_prefix}/bin/%{GCCDIST}-accel-%{gcc_target_arch}-* +%dir %{libsubdir} +%dir %{libsubdir}/accel +%{libsubdir}/accel/%{gcc_target_arch} +%else %{_prefix}/bin/%{gcc_target_arch}-* +%endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} %{targetlibsubdir} diff --git a/cross-rx-gcc7-bootstrap.changes b/cross-rx-gcc7-bootstrap.changes index fa2aa67..bc71a49 100644 --- a/cross-rx-gcc7-bootstrap.changes +++ b/cross-rx-gcc7-bootstrap.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 26 15:10:21 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244934). +- Add accelerator offloading cross to nvptx-none, for this also + add nvptx-newlib.tar.bz2. + ------------------------------------------------------------------- Tue Jan 24 12:56:39 UTC 2017 - rguenther@suse.com diff --git a/cross-rx-gcc7-bootstrap.spec b/cross-rx-gcc7-bootstrap.spec index 1e94045..e53f2cc 100644 --- a/cross-rx-gcc7-bootstrap.spec +++ b/cross-rx-gcc7-bootstrap.spec @@ -67,10 +67,14 @@ %if "%{binutils_target}" == "arm" %define binutils_os %{canonical_target}-suse-linux-gnueabi %else +%if 0%{?gcc_accel:1} +%define binutils_os %{gcc_target_arch} +%else %define binutils_os %{canonical_target}-suse-linux %endif %endif %endif +%endif %if 0%{?gcc_icecream:1} %define build_sysroot / @@ -79,10 +83,6 @@ %define sysroot %{_prefix}/%{binutils_os}/sys-root %endif -%if 0%{!?gcc_target_newlib:1} -%define gcc_target_glibc 1 -%endif - %if %{suse_version} >= 1220 %define selfconflict() %1 %else @@ -90,8 +90,10 @@ %endif Name: %{pkgname} -BuildRequires: bison +%if %{cross_arch} != "nvptx" BuildRequires: cross-%{binutils_target}-binutils +%endif +BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: gettext-devel @@ -118,6 +120,10 @@ BuildRequires: cross-%cross_arch-newlib-devel %if 0%{?gcc_target_glibc:1} BuildRequires: cross-%cross_arch-glibc-devel %endif +%if %{cross_arch} == "nvptx" +BuildRequires: nvptx-tools +ExclusiveArch: x86_64 +%endif %endif %if 0%{?gcc_icecream:1} ExclusiveArch: ppc64le ppc64 x86_64 s390x aarch64 @@ -138,7 +144,7 @@ Conflicts: %selfconflict %{gcc_target_arch}-gcc %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 Url: http://gcc.gnu.org/ -Version: 7.0.1+r244867 +Version: 7.0.1+r244934 Release: 0 %define gcc_version %(echo %version | sed 's/+.*//') %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1) @@ -149,6 +155,7 @@ Source: gcc-%{gcc_version}%{gcc_snapshot_revision}.tar.bz2 Source1: change_spec Source3: gcc7-rpmlintrc Source4: README.First-for.SuSE.packagers +Source5: nvptx-newlib.tar.bz2 #testpatch begin @@ -215,7 +222,12 @@ namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go. %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version} %prep +%if %{cross_arch} == "nvptx" +%setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} -a 5 +ln -s nvptx-newlib/newlib . +%else %setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} +%endif #test patching start @@ -457,6 +469,11 @@ nvptx-none=%{_prefix}/nvptx-none, \ --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \ --with-newlib \ %endif +%if "%{TARGET_ARCH}" == "nvptx" + --enable-as-accelerator-for=%{GCCDIST} \ + --disable-sjlj-exceptions \ + --enable-newlib-io-long-long \ +%endif %endif %if "%{TARGET_ARCH}" == "arm" --with-arch=armv6zk \ @@ -648,7 +665,14 @@ rm -r env %files %defattr(-,root,root) +%if 0%{?gcc_accel:1} +%{_prefix}/bin/%{GCCDIST}-accel-%{gcc_target_arch}-* +%dir %{libsubdir} +%dir %{libsubdir}/accel +%{libsubdir}/accel/%{gcc_target_arch} +%else %{_prefix}/bin/%{gcc_target_arch}-* +%endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} %{targetlibsubdir} diff --git a/cross-rx-gcc7.changes b/cross-rx-gcc7.changes index fa2aa67..bc71a49 100644 --- a/cross-rx-gcc7.changes +++ b/cross-rx-gcc7.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 26 15:10:21 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244934). +- Add accelerator offloading cross to nvptx-none, for this also + add nvptx-newlib.tar.bz2. + ------------------------------------------------------------------- Tue Jan 24 12:56:39 UTC 2017 - rguenther@suse.com diff --git a/cross-rx-gcc7.spec b/cross-rx-gcc7.spec index db727a5..777d34d 100644 --- a/cross-rx-gcc7.spec +++ b/cross-rx-gcc7.spec @@ -66,10 +66,14 @@ %if "%{binutils_target}" == "arm" %define binutils_os %{canonical_target}-suse-linux-gnueabi %else +%if 0%{?gcc_accel:1} +%define binutils_os %{gcc_target_arch} +%else %define binutils_os %{canonical_target}-suse-linux %endif %endif %endif +%endif %if 0%{?gcc_icecream:1} %define build_sysroot / @@ -78,10 +82,6 @@ %define sysroot %{_prefix}/%{binutils_os}/sys-root %endif -%if 0%{!?gcc_target_newlib:1} -%define gcc_target_glibc 1 -%endif - %if %{suse_version} >= 1220 %define selfconflict() %1 %else @@ -89,8 +89,10 @@ %endif Name: %{pkgname} -BuildRequires: bison +%if %{cross_arch} != "nvptx" BuildRequires: cross-%{binutils_target}-binutils +%endif +BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: gettext-devel @@ -117,6 +119,10 @@ BuildRequires: cross-%cross_arch-newlib-devel %if 0%{?gcc_target_glibc:1} BuildRequires: cross-%cross_arch-glibc-devel %endif +%if %{cross_arch} == "nvptx" +BuildRequires: nvptx-tools +ExclusiveArch: x86_64 +%endif %endif %if 0%{?gcc_icecream:1} ExclusiveArch: ppc64le ppc64 x86_64 s390x aarch64 @@ -137,7 +143,7 @@ Conflicts: %selfconflict %{gcc_target_arch}-gcc %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 Url: http://gcc.gnu.org/ -Version: 7.0.1+r244867 +Version: 7.0.1+r244934 Release: 0 %define gcc_version %(echo %version | sed 's/+.*//') %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1) @@ -148,6 +154,7 @@ Source: gcc-%{gcc_version}%{gcc_snapshot_revision}.tar.bz2 Source1: change_spec Source3: gcc7-rpmlintrc Source4: README.First-for.SuSE.packagers +Source5: nvptx-newlib.tar.bz2 #testpatch begin @@ -214,7 +221,12 @@ namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go. %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version} %prep +%if %{cross_arch} == "nvptx" +%setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} -a 5 +ln -s nvptx-newlib/newlib . +%else %setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} +%endif #test patching start @@ -456,6 +468,11 @@ nvptx-none=%{_prefix}/nvptx-none, \ --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \ --with-newlib \ %endif +%if "%{TARGET_ARCH}" == "nvptx" + --enable-as-accelerator-for=%{GCCDIST} \ + --disable-sjlj-exceptions \ + --enable-newlib-io-long-long \ +%endif %endif %if "%{TARGET_ARCH}" == "arm" --with-arch=armv6zk \ @@ -647,7 +664,14 @@ rm -r env %files %defattr(-,root,root) +%if 0%{?gcc_accel:1} +%{_prefix}/bin/%{GCCDIST}-accel-%{gcc_target_arch}-* +%dir %{libsubdir} +%dir %{libsubdir}/accel +%{libsubdir}/accel/%{gcc_target_arch} +%else %{_prefix}/bin/%{gcc_target_arch}-* +%endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} %{targetlibsubdir} diff --git a/cross-s390x-gcc7.changes b/cross-s390x-gcc7.changes index fa2aa67..bc71a49 100644 --- a/cross-s390x-gcc7.changes +++ b/cross-s390x-gcc7.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 26 15:10:21 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244934). +- Add accelerator offloading cross to nvptx-none, for this also + add nvptx-newlib.tar.bz2. + ------------------------------------------------------------------- Tue Jan 24 12:56:39 UTC 2017 - rguenther@suse.com diff --git a/cross-s390x-gcc7.spec b/cross-s390x-gcc7.spec index 4b70f8a..04e4491 100644 --- a/cross-s390x-gcc7.spec +++ b/cross-s390x-gcc7.spec @@ -66,10 +66,14 @@ %if "%{binutils_target}" == "arm" %define binutils_os %{canonical_target}-suse-linux-gnueabi %else +%if 0%{?gcc_accel:1} +%define binutils_os %{gcc_target_arch} +%else %define binutils_os %{canonical_target}-suse-linux %endif %endif %endif +%endif %if 0%{?gcc_icecream:1} %define build_sysroot / @@ -78,10 +82,6 @@ %define sysroot %{_prefix}/%{binutils_os}/sys-root %endif -%if 0%{!?gcc_target_newlib:1} -%define gcc_target_glibc 1 -%endif - %if %{suse_version} >= 1220 %define selfconflict() %1 %else @@ -89,8 +89,10 @@ %endif Name: %{pkgname} -BuildRequires: bison +%if %{cross_arch} != "nvptx" BuildRequires: cross-%{binutils_target}-binutils +%endif +BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: gettext-devel @@ -117,6 +119,10 @@ BuildRequires: cross-%cross_arch-newlib-devel %if 0%{?gcc_target_glibc:1} BuildRequires: cross-%cross_arch-glibc-devel %endif +%if %{cross_arch} == "nvptx" +BuildRequires: nvptx-tools +ExclusiveArch: x86_64 +%endif %endif %if 0%{?gcc_icecream:1} ExclusiveArch: ppc64le ppc64 x86_64 aarch64 @@ -137,7 +143,7 @@ Conflicts: %selfconflict %{gcc_target_arch}-gcc %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 Url: http://gcc.gnu.org/ -Version: 7.0.1+r244867 +Version: 7.0.1+r244934 Release: 0 %define gcc_version %(echo %version | sed 's/+.*//') %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1) @@ -148,6 +154,7 @@ Source: gcc-%{gcc_version}%{gcc_snapshot_revision}.tar.bz2 Source1: change_spec Source3: gcc7-rpmlintrc Source4: README.First-for.SuSE.packagers +Source5: nvptx-newlib.tar.bz2 #testpatch begin @@ -214,7 +221,12 @@ namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go. %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version} %prep +%if %{cross_arch} == "nvptx" +%setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} -a 5 +ln -s nvptx-newlib/newlib . +%else %setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} +%endif #test patching start @@ -456,6 +468,11 @@ nvptx-none=%{_prefix}/nvptx-none, \ --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \ --with-newlib \ %endif +%if "%{TARGET_ARCH}" == "nvptx" + --enable-as-accelerator-for=%{GCCDIST} \ + --disable-sjlj-exceptions \ + --enable-newlib-io-long-long \ +%endif %endif %if "%{TARGET_ARCH}" == "arm" --with-arch=armv6zk \ @@ -647,7 +664,14 @@ rm -r env %files %defattr(-,root,root) +%if 0%{?gcc_accel:1} +%{_prefix}/bin/%{GCCDIST}-accel-%{gcc_target_arch}-* +%dir %{libsubdir} +%dir %{libsubdir}/accel +%{libsubdir}/accel/%{gcc_target_arch} +%else %{_prefix}/bin/%{gcc_target_arch}-* +%endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} %{targetlibsubdir} diff --git a/cross-sparc-gcc7.changes b/cross-sparc-gcc7.changes index fa2aa67..bc71a49 100644 --- a/cross-sparc-gcc7.changes +++ b/cross-sparc-gcc7.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 26 15:10:21 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244934). +- Add accelerator offloading cross to nvptx-none, for this also + add nvptx-newlib.tar.bz2. + ------------------------------------------------------------------- Tue Jan 24 12:56:39 UTC 2017 - rguenther@suse.com diff --git a/cross-sparc-gcc7.spec b/cross-sparc-gcc7.spec index fad2608..ac44ba5 100644 --- a/cross-sparc-gcc7.spec +++ b/cross-sparc-gcc7.spec @@ -66,10 +66,14 @@ %if "%{binutils_target}" == "arm" %define binutils_os %{canonical_target}-suse-linux-gnueabi %else +%if 0%{?gcc_accel:1} +%define binutils_os %{gcc_target_arch} +%else %define binutils_os %{canonical_target}-suse-linux %endif %endif %endif +%endif %if 0%{?gcc_icecream:1} %define build_sysroot / @@ -78,10 +82,6 @@ %define sysroot %{_prefix}/%{binutils_os}/sys-root %endif -%if 0%{!?gcc_target_newlib:1} -%define gcc_target_glibc 1 -%endif - %if %{suse_version} >= 1220 %define selfconflict() %1 %else @@ -89,8 +89,10 @@ %endif Name: %{pkgname} -BuildRequires: bison +%if %{cross_arch} != "nvptx" BuildRequires: cross-%{binutils_target}-binutils +%endif +BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: gettext-devel @@ -117,6 +119,10 @@ BuildRequires: cross-%cross_arch-newlib-devel %if 0%{?gcc_target_glibc:1} BuildRequires: cross-%cross_arch-glibc-devel %endif +%if %{cross_arch} == "nvptx" +BuildRequires: nvptx-tools +ExclusiveArch: x86_64 +%endif %endif %if 0%{?gcc_icecream:1} ExclusiveArch: ppc64le ppc64 x86_64 s390x aarch64 @@ -137,7 +143,7 @@ Conflicts: %selfconflict %{gcc_target_arch}-gcc %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 Url: http://gcc.gnu.org/ -Version: 7.0.1+r244867 +Version: 7.0.1+r244934 Release: 0 %define gcc_version %(echo %version | sed 's/+.*//') %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1) @@ -148,6 +154,7 @@ Source: gcc-%{gcc_version}%{gcc_snapshot_revision}.tar.bz2 Source1: change_spec Source3: gcc7-rpmlintrc Source4: README.First-for.SuSE.packagers +Source5: nvptx-newlib.tar.bz2 #testpatch begin @@ -214,7 +221,12 @@ namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go. %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version} %prep +%if %{cross_arch} == "nvptx" +%setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} -a 5 +ln -s nvptx-newlib/newlib . +%else %setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} +%endif #test patching start @@ -456,6 +468,11 @@ nvptx-none=%{_prefix}/nvptx-none, \ --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \ --with-newlib \ %endif +%if "%{TARGET_ARCH}" == "nvptx" + --enable-as-accelerator-for=%{GCCDIST} \ + --disable-sjlj-exceptions \ + --enable-newlib-io-long-long \ +%endif %endif %if "%{TARGET_ARCH}" == "arm" --with-arch=armv6zk \ @@ -647,7 +664,14 @@ rm -r env %files %defattr(-,root,root) +%if 0%{?gcc_accel:1} +%{_prefix}/bin/%{GCCDIST}-accel-%{gcc_target_arch}-* +%dir %{libsubdir} +%dir %{libsubdir}/accel +%{libsubdir}/accel/%{gcc_target_arch} +%else %{_prefix}/bin/%{gcc_target_arch}-* +%endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} %{targetlibsubdir} diff --git a/cross-sparc64-gcc7.changes b/cross-sparc64-gcc7.changes index fa2aa67..bc71a49 100644 --- a/cross-sparc64-gcc7.changes +++ b/cross-sparc64-gcc7.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 26 15:10:21 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244934). +- Add accelerator offloading cross to nvptx-none, for this also + add nvptx-newlib.tar.bz2. + ------------------------------------------------------------------- Tue Jan 24 12:56:39 UTC 2017 - rguenther@suse.com diff --git a/cross-sparc64-gcc7.spec b/cross-sparc64-gcc7.spec index 1a9c84b..0e143c3 100644 --- a/cross-sparc64-gcc7.spec +++ b/cross-sparc64-gcc7.spec @@ -66,10 +66,14 @@ %if "%{binutils_target}" == "arm" %define binutils_os %{canonical_target}-suse-linux-gnueabi %else +%if 0%{?gcc_accel:1} +%define binutils_os %{gcc_target_arch} +%else %define binutils_os %{canonical_target}-suse-linux %endif %endif %endif +%endif %if 0%{?gcc_icecream:1} %define build_sysroot / @@ -78,10 +82,6 @@ %define sysroot %{_prefix}/%{binutils_os}/sys-root %endif -%if 0%{!?gcc_target_newlib:1} -%define gcc_target_glibc 1 -%endif - %if %{suse_version} >= 1220 %define selfconflict() %1 %else @@ -89,8 +89,10 @@ %endif Name: %{pkgname} -BuildRequires: bison +%if %{cross_arch} != "nvptx" BuildRequires: cross-%{binutils_target}-binutils +%endif +BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: gettext-devel @@ -117,6 +119,10 @@ BuildRequires: cross-%cross_arch-newlib-devel %if 0%{?gcc_target_glibc:1} BuildRequires: cross-%cross_arch-glibc-devel %endif +%if %{cross_arch} == "nvptx" +BuildRequires: nvptx-tools +ExclusiveArch: x86_64 +%endif %endif %if 0%{?gcc_icecream:1} ExclusiveArch: ppc64le ppc64 x86_64 s390x aarch64 @@ -137,7 +143,7 @@ Conflicts: %selfconflict %{gcc_target_arch}-gcc %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 Url: http://gcc.gnu.org/ -Version: 7.0.1+r244867 +Version: 7.0.1+r244934 Release: 0 %define gcc_version %(echo %version | sed 's/+.*//') %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1) @@ -148,6 +154,7 @@ Source: gcc-%{gcc_version}%{gcc_snapshot_revision}.tar.bz2 Source1: change_spec Source3: gcc7-rpmlintrc Source4: README.First-for.SuSE.packagers +Source5: nvptx-newlib.tar.bz2 #testpatch begin @@ -214,7 +221,12 @@ namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go. %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version} %prep +%if %{cross_arch} == "nvptx" +%setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} -a 5 +ln -s nvptx-newlib/newlib . +%else %setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} +%endif #test patching start @@ -456,6 +468,11 @@ nvptx-none=%{_prefix}/nvptx-none, \ --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \ --with-newlib \ %endif +%if "%{TARGET_ARCH}" == "nvptx" + --enable-as-accelerator-for=%{GCCDIST} \ + --disable-sjlj-exceptions \ + --enable-newlib-io-long-long \ +%endif %endif %if "%{TARGET_ARCH}" == "arm" --with-arch=armv6zk \ @@ -647,7 +664,14 @@ rm -r env %files %defattr(-,root,root) +%if 0%{?gcc_accel:1} +%{_prefix}/bin/%{GCCDIST}-accel-%{gcc_target_arch}-* +%dir %{libsubdir} +%dir %{libsubdir}/accel +%{libsubdir}/accel/%{gcc_target_arch} +%else %{_prefix}/bin/%{gcc_target_arch}-* +%endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} %{targetlibsubdir} diff --git a/cross-x86_64-gcc7.changes b/cross-x86_64-gcc7.changes index fa2aa67..bc71a49 100644 --- a/cross-x86_64-gcc7.changes +++ b/cross-x86_64-gcc7.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 26 15:10:21 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244934). +- Add accelerator offloading cross to nvptx-none, for this also + add nvptx-newlib.tar.bz2. + ------------------------------------------------------------------- Tue Jan 24 12:56:39 UTC 2017 - rguenther@suse.com diff --git a/cross-x86_64-gcc7.spec b/cross-x86_64-gcc7.spec index 0d636ef..395a1e2 100644 --- a/cross-x86_64-gcc7.spec +++ b/cross-x86_64-gcc7.spec @@ -66,10 +66,14 @@ %if "%{binutils_target}" == "arm" %define binutils_os %{canonical_target}-suse-linux-gnueabi %else +%if 0%{?gcc_accel:1} +%define binutils_os %{gcc_target_arch} +%else %define binutils_os %{canonical_target}-suse-linux %endif %endif %endif +%endif %if 0%{?gcc_icecream:1} %define build_sysroot / @@ -78,10 +82,6 @@ %define sysroot %{_prefix}/%{binutils_os}/sys-root %endif -%if 0%{!?gcc_target_newlib:1} -%define gcc_target_glibc 1 -%endif - %if %{suse_version} >= 1220 %define selfconflict() %1 %else @@ -89,8 +89,10 @@ %endif Name: %{pkgname} -BuildRequires: bison +%if %{cross_arch} != "nvptx" BuildRequires: cross-%{binutils_target}-binutils +%endif +BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: gettext-devel @@ -117,6 +119,10 @@ BuildRequires: cross-%cross_arch-newlib-devel %if 0%{?gcc_target_glibc:1} BuildRequires: cross-%cross_arch-glibc-devel %endif +%if %{cross_arch} == "nvptx" +BuildRequires: nvptx-tools +ExclusiveArch: +%endif %endif %if 0%{?gcc_icecream:1} ExclusiveArch: ppc64le ppc64 s390x aarch64 @@ -137,7 +143,7 @@ Conflicts: %selfconflict %{gcc_target_arch}-gcc %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 Url: http://gcc.gnu.org/ -Version: 7.0.1+r244867 +Version: 7.0.1+r244934 Release: 0 %define gcc_version %(echo %version | sed 's/+.*//') %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1) @@ -148,6 +154,7 @@ Source: gcc-%{gcc_version}%{gcc_snapshot_revision}.tar.bz2 Source1: change_spec Source3: gcc7-rpmlintrc Source4: README.First-for.SuSE.packagers +Source5: nvptx-newlib.tar.bz2 #testpatch begin @@ -214,7 +221,12 @@ namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go. %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version} %prep +%if %{cross_arch} == "nvptx" +%setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} -a 5 +ln -s nvptx-newlib/newlib . +%else %setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} +%endif #test patching start @@ -456,6 +468,11 @@ nvptx-none=%{_prefix}/nvptx-none, \ --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \ --with-newlib \ %endif +%if "%{TARGET_ARCH}" == "nvptx" + --enable-as-accelerator-for=%{GCCDIST} \ + --disable-sjlj-exceptions \ + --enable-newlib-io-long-long \ +%endif %endif %if "%{TARGET_ARCH}" == "arm" --with-arch=armv6zk \ @@ -647,7 +664,14 @@ rm -r env %files %defattr(-,root,root) +%if 0%{?gcc_accel:1} +%{_prefix}/bin/%{GCCDIST}-accel-%{gcc_target_arch}-* +%dir %{libsubdir} +%dir %{libsubdir}/accel +%{libsubdir}/accel/%{gcc_target_arch} +%else %{_prefix}/bin/%{gcc_target_arch}-* +%endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} %{targetlibsubdir} diff --git a/cross.spec.in b/cross.spec.in index 5395cf3..2f63e30 100644 --- a/cross.spec.in +++ b/cross.spec.in @@ -45,10 +45,14 @@ %if "%{binutils_target}" == "arm" %define binutils_os %{canonical_target}-suse-linux-gnueabi %else +%if 0%{?gcc_accel:1} +%define binutils_os %{gcc_target_arch} +%else %define binutils_os %{canonical_target}-suse-linux %endif %endif %endif +%endif %if 0%{?gcc_icecream:1} %define build_sysroot / @@ -57,10 +61,6 @@ %define sysroot %{_prefix}/%{binutils_os}/sys-root %endif -%if 0%{!?gcc_target_newlib:1} -%define gcc_target_glibc 1 -%endif - %if %{suse_version} >= 1220 %define selfconflict() %1 %else @@ -68,7 +68,9 @@ %endif Name: %{pkgname} +%if %{cross_arch} != "nvptx" BuildRequires: cross-%{binutils_target}-binutils +%endif BuildRequires: gcc-c++ BuildRequires: bison BuildRequires: flex @@ -96,6 +98,10 @@ BuildRequires: cross-%cross_arch-newlib-devel %if 0%{?gcc_target_glibc:1} BuildRequires: cross-%cross_arch-glibc-devel %endif +%if %{cross_arch} == "nvptx" +BuildRequires: nvptx-tools +ExclusiveArch: x86_64 +%endif %endif %if 0%{?gcc_icecream:1} ExclusiveArch: ppc64le ppc64 x86_64 s390x aarch64 @@ -216,7 +222,14 @@ rm -r env %files %defattr(-,root,root) +%if 0%{?gcc_accel:1} +%{_prefix}/bin/%{GCCDIST}-accel-%{gcc_target_arch}-* +%dir %{libsubdir} +%dir %{libsubdir}/accel +%{libsubdir}/accel/%{gcc_target_arch} +%else %{_prefix}/bin/%{gcc_target_arch}-* +%endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} %{targetlibsubdir} diff --git a/gcc-7.0.1-r244867.tar.bz2 b/gcc-7.0.1-r244867.tar.bz2 deleted file mode 100644 index 71e8278..0000000 --- a/gcc-7.0.1-r244867.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:220593d2391ad2d37ce52a02b70f0d7be0ba9e255eb3a83693c541c22e7a181d -size 76689679 diff --git a/gcc-7.0.1-r244934.tar.bz2 b/gcc-7.0.1-r244934.tar.bz2 new file mode 100644 index 0000000..dca509e --- /dev/null +++ b/gcc-7.0.1-r244934.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:06bc264a83aba7d87b3a8d4fde920c933383ae5341235f0478cb0c0d940afec4 +size 76750522 diff --git a/gcc.spec.in b/gcc.spec.in index 99ec2cd..905394c 100644 --- a/gcc.spec.in +++ b/gcc.spec.in @@ -231,7 +231,7 @@ BuildRequires: gdb %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 URL: http://gcc.gnu.org/ -Version: 7.0.1+r244867 +Version: 7.0.1+r244934 Release: 1 %define gcc_version %(echo %version | sed 's/+.*//') %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1) @@ -281,6 +281,7 @@ Source: gcc-%{gcc_version}%{gcc_snapshot_revision}.tar.bz2 Source1: change_spec Source3: gcc7-rpmlintrc Source4: README.First-for.SuSE.packagers +Source5: nvptx-newlib.tar.bz2 #testpatch begin @@ -1044,7 +1045,12 @@ Results from running the gcc and target library testsuites. # COMMON-BEGIN %prep +%if %{cross_arch} == "nvptx" +%setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} -a 5 +ln -s nvptx-newlib/newlib . +%else %setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} +%endif #test patching start @@ -1286,6 +1292,11 @@ nvptx-none=%{_prefix}/nvptx-none, \ --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \ --with-newlib \ %endif +%if "%{TARGET_ARCH}" == "nvptx" + --enable-as-accelerator-for=%{GCCDIST} \ + --disable-sjlj-exceptions \ + --enable-newlib-io-long-long \ +%endif %endif %if "%{TARGET_ARCH}" == "arm" --with-arch=armv6zk \ diff --git a/gcc7-testresults.changes b/gcc7-testresults.changes index fa2aa67..bc71a49 100644 --- a/gcc7-testresults.changes +++ b/gcc7-testresults.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 26 15:10:21 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244934). +- Add accelerator offloading cross to nvptx-none, for this also + add nvptx-newlib.tar.bz2. + ------------------------------------------------------------------- Tue Jan 24 12:56:39 UTC 2017 - rguenther@suse.com diff --git a/gcc7-testresults.spec b/gcc7-testresults.spec index c4e2c66..e77b074 100644 --- a/gcc7-testresults.spec +++ b/gcc7-testresults.spec @@ -243,7 +243,7 @@ BuildRequires: gdb %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 Url: http://gcc.gnu.org/ -Version: 7.0.1+r244867 +Version: 7.0.1+r244934 Release: 0 %define gcc_version %(echo %version | sed 's/+.*//') %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1) @@ -292,6 +292,7 @@ Source: gcc-%{gcc_version}%{gcc_snapshot_revision}.tar.bz2 Source1: change_spec Source3: gcc7-rpmlintrc Source4: README.First-for.SuSE.packagers +Source5: nvptx-newlib.tar.bz2 #testpatch begin @@ -410,7 +411,12 @@ Results from running the gcc and target library testsuites. %endif %prep +%if %{cross_arch} == "nvptx" +%setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} -a 5 +ln -s nvptx-newlib/newlib . +%else %setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} +%endif #test patching start @@ -652,6 +658,11 @@ nvptx-none=%{_prefix}/nvptx-none, \ --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \ --with-newlib \ %endif +%if "%{TARGET_ARCH}" == "nvptx" + --enable-as-accelerator-for=%{GCCDIST} \ + --disable-sjlj-exceptions \ + --enable-newlib-io-long-long \ +%endif %endif %if "%{TARGET_ARCH}" == "arm" --with-arch=armv6zk \ diff --git a/gcc7.changes b/gcc7.changes index fa2aa67..bc71a49 100644 --- a/gcc7.changes +++ b/gcc7.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 26 15:10:21 UTC 2017 - rguenther@suse.com + +- Update to gcc trunk head (r244934). +- Add accelerator offloading cross to nvptx-none, for this also + add nvptx-newlib.tar.bz2. + ------------------------------------------------------------------- Tue Jan 24 12:56:39 UTC 2017 - rguenther@suse.com diff --git a/gcc7.spec b/gcc7.spec index 90fc062..143dd20 100644 --- a/gcc7.spec +++ b/gcc7.spec @@ -225,7 +225,7 @@ BuildRequires: gdb %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 Url: http://gcc.gnu.org/ -Version: 7.0.1+r244867 +Version: 7.0.1+r244934 Release: 0 %define gcc_version %(echo %version | sed 's/+.*//') %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1) @@ -274,6 +274,7 @@ Source: gcc-%{gcc_version}%{gcc_snapshot_revision}.tar.bz2 Source1: change_spec Source3: gcc7-rpmlintrc Source4: README.First-for.SuSE.packagers +Source5: nvptx-newlib.tar.bz2 #testpatch begin @@ -1737,7 +1738,12 @@ Results from running the gcc and target library testsuites. %endif %prep +%if %{cross_arch} == "nvptx" +%setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} -a 5 +ln -s nvptx-newlib/newlib . +%else %setup -q -n gcc-%{gcc_version}%{gcc_snapshot_revision} +%endif #test patching start @@ -1979,6 +1985,11 @@ nvptx-none=%{_prefix}/nvptx-none, \ --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \ --with-newlib \ %endif +%if "%{TARGET_ARCH}" == "nvptx" + --enable-as-accelerator-for=%{GCCDIST} \ + --disable-sjlj-exceptions \ + --enable-newlib-io-long-long \ +%endif %endif %if "%{TARGET_ARCH}" == "arm" --with-arch=armv6zk \ diff --git a/nvptx-newlib.tar.bz2 b/nvptx-newlib.tar.bz2 new file mode 100644 index 0000000..829606e --- /dev/null +++ b/nvptx-newlib.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cff35a599386b5d4739fec3a8b1a75a5a417d57991531314b1eaa7e6756ce273 +size 12561054