From db0aca6b64223d0aa8e4bccac4ac2ebf5d0fe796 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 27 Jan 2019 18:57:31 +0100 Subject: [PATCH 1/7] Remove obsolete scriptlets References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko --- gcc.spec | 98 -------------------------------------------------------- 1 file changed, 98 deletions(-) diff --git a/gcc.spec b/gcc.spec index 576801c..72eae25 100644 --- a/gcc.spec +++ b/gcc.spec @@ -239,8 +239,6 @@ Obsoletes: libcilkrts-static Obsoletes: libmpx Obsoletes: libmpx-static %endif -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info AutoReq: true Provides: bundled(libiberty) Provides: gcc(major) = %{gcc_major} @@ -416,8 +414,6 @@ Requires: libgfortran = %{version}-%{release} Requires: libquadmath = %{version}-%{release} Requires: libquadmath-devel = %{version}-%{release} %endif -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info Autoreq: true %description gfortran @@ -453,8 +449,6 @@ Summary: D support Group: Development/Languages Requires: gcc = %{version}-%{release} Requires: libgphobos = %{version}-%{release} -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info Autoreq: true %description gdc @@ -482,8 +476,6 @@ This package contains static D libraries. %package -n libgomp Summary: GCC OpenMP v4.5 shared support library Group: System Environment/Libraries -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info %description -n libgomp This package contains GCC shared support library which is needed @@ -524,8 +516,6 @@ BuildRequires: python3-sphinx BuildRequires: python-sphinx %endif Requires: libgccjit = %{version}-%{release} -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info %description -n libgccjit-devel This package contains header files and documentation for GCC JIT front-end. @@ -533,8 +523,6 @@ This package contains header files and documentation for GCC JIT front-end. %package -n libquadmath Summary: GCC __float128 shared support library Group: System Environment/Libraries -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info %description -n libquadmath This package contains GCC shared support library which is needed @@ -562,8 +550,6 @@ using REAL*16 and programs using __float128 math. %package -n libitm Summary: The GNU Transactional Memory library Group: System Environment/Libraries -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info %description -n libitm This package contains the GNU Transactional Memory library @@ -590,8 +576,6 @@ This package contains GNU Transactional Memory static libraries. %package -n libatomic Summary: The GNU Atomic library Group: System Environment/Libraries -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info %description -n libatomic This package contains the GNU Atomic library @@ -609,8 +593,6 @@ This package contains GNU Atomic static libraries. %package -n libasan Summary: The Address Sanitizer runtime library Group: System Environment/Libraries -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info %description -n libasan This package contains the Address Sanitizer library @@ -627,8 +609,6 @@ This package contains Address Sanitizer static runtime library. %package -n libtsan Summary: The Thread Sanitizer runtime library Group: System Environment/Libraries -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info %description -n libtsan This package contains the Thread Sanitizer library @@ -645,8 +625,6 @@ This package contains Thread Sanitizer static runtime library. %package -n libubsan Summary: The Undefined Behavior Sanitizer runtime library Group: System Environment/Libraries -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info %description -n libubsan This package contains the Undefined Behavior Sanitizer library @@ -663,8 +641,6 @@ This package contains Undefined Behavior Sanitizer static runtime library. %package -n liblsan Summary: The Leak Sanitizer runtime library Group: System Environment/Libraries -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info %description -n liblsan This package contains the Leak Sanitizer library @@ -683,8 +659,6 @@ Summary: The C Preprocessor Group: Development/Languages Requires: filesystem >= 3 Provides: /lib/cpp -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info Autoreq: true %description -n cpp @@ -714,8 +688,6 @@ Summary: Ada 83, 95, 2005 and 2012 support for GCC Group: Development/Languages Requires: gcc = %{version}-%{release} Requires: libgnat = %{version}-%{release}, libgnat-devel = %{version}-%{release} -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info Autoreq: true %description gnat @@ -756,8 +728,6 @@ Group: Development/Languages Requires: gcc = %{version}-%{release} Requires: libgo = %{version}-%{release} Requires: libgo-devel = %{version}-%{release} -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info Requires(post): %{_sbindir}/update-alternatives Requires(postun): %{_sbindir}/update-alternatives Autoreq: true @@ -1970,74 +1940,6 @@ tar cf - testlogs-%{_target_platform}-%{version}-%{release} | xz -9e \ | uuencode testlogs-%{_target_platform}.tar.xz || : rm -rf testlogs-%{_target_platform}-%{version}-%{release} -%post -if [ -f %{_infodir}/gcc.info.gz ]; then - /sbin/install-info \ - --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || : -fi - -%preun -if [ $1 = 0 -a -f %{_infodir}/gcc.info.gz ]; then - /sbin/install-info --delete \ - --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || : -fi - -%post -n cpp -if [ -f %{_infodir}/cpp.info.gz ]; then - /sbin/install-info \ - --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || : -fi - -%preun -n cpp -if [ $1 = 0 -a -f %{_infodir}/cpp.info.gz ]; then - /sbin/install-info --delete \ - --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || : -fi - -%post gfortran -if [ -f %{_infodir}/gfortran.info.gz ]; then - /sbin/install-info \ - --info-dir=%{_infodir} %{_infodir}/gfortran.info.gz || : -fi - -%preun gfortran -if [ $1 = 0 -a -f %{_infodir}/gfortran.info.gz ]; then - /sbin/install-info --delete \ - --info-dir=%{_infodir} %{_infodir}/gfortran.info.gz || : -fi - -%post gdc -if [ -f %{_infodir}/gdc.info.gz ]; then - /sbin/install-info \ - --info-dir=%{_infodir} %{_infodir}/gdc.info.gz || : -fi - -%preun gdc -if [ $1 = 0 -a -f %{_infodir}/gdc.info.gz ]; then - /sbin/install-info --delete \ - --info-dir=%{_infodir} %{_infodir}/gdc.info.gz || : -fi - -%post gnat -if [ -f %{_infodir}/gnat_rm.info.gz ]; then - /sbin/install-info \ - --info-dir=%{_infodir} %{_infodir}/gnat_rm.info.gz || : - /sbin/install-info \ - --info-dir=%{_infodir} %{_infodir}/gnat_ugn.info.gz || : - /sbin/install-info \ - --info-dir=%{_infodir} %{_infodir}/gnat-style.info.gz || : -fi - -%preun gnat -if [ $1 = 0 -a -f %{_infodir}/gnat_rm.info.gz ]; then - /sbin/install-info --delete \ - --info-dir=%{_infodir} %{_infodir}/gnat_rm.info.gz || : - /sbin/install-info --delete \ - --info-dir=%{_infodir} %{_infodir}/gnat_ugn.info.gz || : - /sbin/install-info --delete \ - --info-dir=%{_infodir} %{_infodir}/gnat-style.info.gz || : -fi - %post go %{_sbindir}/update-alternatives --install \ %{_prefix}/bin/go go %{_prefix}/bin/go.gcc 92 \ From a71fb3364eca1a478eb196314b220eb8475c6010 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 28 Jan 2019 20:17:44 +0100 Subject: [PATCH 2/7] Remove obsolete Group tag References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag --- gcc.spec | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) diff --git a/gcc.spec b/gcc.spec index 72eae25..8b461d3 100644 --- a/gcc.spec +++ b/gcc.spec @@ -105,7 +105,6 @@ Release: %{gcc_release}%{?dist} # libgcc, libgfortran, libgomp, libstdc++ and crtstuff have # GCC Runtime Exception. License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD -Group: Development/Languages # The source for this package was pulled from upstream's vcs. Use the # following commands to generate the tarball: # svn export svn://gcc.gnu.org/svn/gcc/branches/redhat/gcc-9-branch@%%{SVNREV} gcc-%%{version}-%%{DATE} @@ -307,7 +306,6 @@ You'll need this package in order to compile C code. %package -n libgcc Summary: GCC version 9 shared support library -Group: System Environment/Libraries Autoreq: false %if !%{build_ada} Obsoletes: libgnat < %{version}-%{release} @@ -325,7 +323,6 @@ e.g. for exception handling support. %package c++ Summary: C++ support for GCC -Group: Development/Languages Requires: gcc = %{version}-%{release} Requires: libstdc++ = %{version}-%{release} Requires: libstdc++-devel = %{version}-%{release} @@ -338,7 +335,6 @@ including templates and exception handling. %package -n libstdc++ Summary: GNU Standard C++ Library -Group: System Environment/Libraries Autoreq: true Requires: glibc >= 2.10.90-7 @@ -348,7 +344,6 @@ C++ Library. %package -n libstdc++-devel Summary: Header files and libraries for C++ development -Group: Development/Libraries Requires: libstdc++%{?_isa} = %{version}-%{release} Autoreq: true @@ -359,7 +354,6 @@ development. This includes rewritten implementation of STL. %package -n libstdc++-static Summary: Static libraries for the GNU standard C++ library -Group: Development/Libraries Requires: libstdc++-devel = %{version}-%{release} Autoreq: true @@ -368,7 +362,6 @@ Static libraries for the GNU standard C++ library. %package -n libstdc++-docs Summary: Documentation for the GNU standard C++ library -Group: Development/Libraries Autoreq: true %description -n libstdc++-docs @@ -377,7 +370,6 @@ for the GNU standard C++ library. %package objc Summary: Objective-C support for GCC -Group: Development/Languages Requires: gcc = %{version}-%{release} Requires: libobjc = %{version}-%{release} Autoreq: true @@ -389,7 +381,6 @@ object-oriented derivative of the C language. %package objc++ Summary: Objective-C++ support for GCC -Group: Development/Languages Requires: gcc-c++ = %{version}-%{release}, gcc-objc = %{version}-%{release} Autoreq: true @@ -398,7 +389,6 @@ gcc-objc++ package provides Objective-C++ support for the GCC. %package -n libobjc Summary: Objective-C runtime -Group: System Environment/Libraries Autoreq: true %description -n libobjc @@ -407,7 +397,6 @@ Objective-C dynamically linked programs. %package gfortran Summary: Fortran support -Group: Development/Languages Requires: gcc = %{version}-%{release} Requires: libgfortran = %{version}-%{release} %if %{build_libquadmath} @@ -422,7 +411,6 @@ programs with the GNU Compiler Collection. %package -n libgfortran Summary: Fortran runtime -Group: System Environment/Libraries Autoreq: true %if %{build_libquadmath} Requires: libquadmath = %{version}-%{release} @@ -434,7 +422,6 @@ Fortran dynamically linked programs. %package -n libgfortran-static Summary: Static Fortran libraries -Group: Development/Libraries Requires: libgfortran = %{version}-%{release} Requires: gcc = %{version}-%{release} %if %{build_libquadmath} @@ -446,7 +433,6 @@ This package contains static Fortran libraries. %package gdc Summary: D support -Group: Development/Languages Requires: gcc = %{version}-%{release} Requires: libgphobos = %{version}-%{release} Autoreq: true @@ -457,7 +443,6 @@ programs with the GNU Compiler Collection. %package -n libgphobos Summary: D runtime -Group: System Environment/Libraries Autoreq: true %description -n libgphobos @@ -466,7 +451,6 @@ D dynamically linked programs. %package -n libgphobos-static Summary: Static D libraries -Group: Development/Libraries Requires: libgphobos = %{version}-%{release} Requires: gcc-gdc = %{version}-%{release} @@ -475,7 +459,6 @@ This package contains static D libraries. %package -n libgomp Summary: GCC OpenMP v4.5 shared support library -Group: System Environment/Libraries %description -n libgomp This package contains GCC shared support library which is needed @@ -483,7 +466,6 @@ for OpenMP v4.5 support. %package -n libgomp-offload-nvptx Summary: GCC OpenMP v4.5 plugin for offloading to NVPTX -Group: System Environment/Libraries Requires: libgomp = %{version}-%{release} %description -n libgomp-offload-nvptx @@ -493,7 +475,6 @@ installed separately. %package gdb-plugin Summary: GCC plugin for GDB -Group: Development/Debuggers Requires: gcc = %{version}-%{release} %description gdb-plugin @@ -501,7 +482,6 @@ This package contains GCC plugin for GDB C expression evaluation. %package -n libgccjit Summary: Library for embedding GCC inside programs and libraries -Group: System Environment/Libraries Requires: gcc = %{version}-%{release} %description -n libgccjit @@ -509,7 +489,6 @@ This package contains shared library with GCC JIT front-end. %package -n libgccjit-devel Summary: Support for embedding GCC inside programs and libraries -Group: Development/Libraries %if 0%{?fedora} > 27 || 0%{?rhel} > 7 BuildRequires: python3-sphinx %else @@ -522,7 +501,6 @@ This package contains header files and documentation for GCC JIT front-end. %package -n libquadmath Summary: GCC __float128 shared support library -Group: System Environment/Libraries %description -n libquadmath This package contains GCC shared support library which is needed @@ -530,7 +508,6 @@ for __float128 math support and for Fortran REAL*16 support. %package -n libquadmath-devel Summary: GCC __float128 support -Group: Development/Libraries Requires: libquadmath = %{version}-%{release} Requires: gcc = %{version}-%{release} @@ -540,7 +517,6 @@ REAL*16 and programs using __float128 math. %package -n libquadmath-static Summary: Static libraries for __float128 support -Group: Development/Libraries Requires: libquadmath-devel = %{version}-%{release} %description -n libquadmath-static @@ -549,7 +525,6 @@ using REAL*16 and programs using __float128 math. %package -n libitm Summary: The GNU Transactional Memory library -Group: System Environment/Libraries %description -n libitm This package contains the GNU Transactional Memory library @@ -557,7 +532,6 @@ which is a GCC transactional memory support runtime library. %package -n libitm-devel Summary: The GNU Transactional Memory support -Group: Development/Libraries Requires: libitm = %{version}-%{release} Requires: gcc = %{version}-%{release} @@ -567,7 +541,6 @@ GNU Transactional Memory library. %package -n libitm-static Summary: The GNU Transactional Memory static library -Group: Development/Libraries Requires: libitm-devel = %{version}-%{release} %description -n libitm-static @@ -575,7 +548,6 @@ This package contains GNU Transactional Memory static libraries. %package -n libatomic Summary: The GNU Atomic library -Group: System Environment/Libraries %description -n libatomic This package contains the GNU Atomic library @@ -584,7 +556,6 @@ by hardware. %package -n libatomic-static Summary: The GNU Atomic static library -Group: Development/Libraries Requires: libatomic = %{version}-%{release} %description -n libatomic-static @@ -592,7 +563,6 @@ This package contains GNU Atomic static libraries. %package -n libasan Summary: The Address Sanitizer runtime library -Group: System Environment/Libraries %description -n libasan This package contains the Address Sanitizer library @@ -600,7 +570,6 @@ which is used for -fsanitize=address instrumented programs. %package -n libasan-static Summary: The Address Sanitizer static library -Group: Development/Libraries Requires: libasan = %{version}-%{release} %description -n libasan-static @@ -608,7 +577,6 @@ This package contains Address Sanitizer static runtime library. %package -n libtsan Summary: The Thread Sanitizer runtime library -Group: System Environment/Libraries %description -n libtsan This package contains the Thread Sanitizer library @@ -616,7 +584,6 @@ which is used for -fsanitize=thread instrumented programs. %package -n libtsan-static Summary: The Thread Sanitizer static library -Group: Development/Libraries Requires: libtsan = %{version}-%{release} %description -n libtsan-static @@ -624,7 +591,6 @@ This package contains Thread Sanitizer static runtime library. %package -n libubsan Summary: The Undefined Behavior Sanitizer runtime library -Group: System Environment/Libraries %description -n libubsan This package contains the Undefined Behavior Sanitizer library @@ -632,7 +598,6 @@ which is used for -fsanitize=undefined instrumented programs. %package -n libubsan-static Summary: The Undefined Behavior Sanitizer static library -Group: Development/Libraries Requires: libubsan = %{version}-%{release} %description -n libubsan-static @@ -640,7 +605,6 @@ This package contains Undefined Behavior Sanitizer static runtime library. %package -n liblsan Summary: The Leak Sanitizer runtime library -Group: System Environment/Libraries %description -n liblsan This package contains the Leak Sanitizer library @@ -648,7 +612,6 @@ which is used for -fsanitize=leak instrumented programs. %package -n liblsan-static Summary: The Leak Sanitizer static library -Group: Development/Libraries Requires: liblsan = %{version}-%{release} %description -n liblsan-static @@ -656,7 +619,6 @@ This package contains Leak Sanitizer static runtime library. %package -n cpp Summary: The C Preprocessor -Group: Development/Languages Requires: filesystem >= 3 Provides: /lib/cpp Autoreq: true @@ -685,7 +647,6 @@ macros. %package gnat Summary: Ada 83, 95, 2005 and 2012 support for GCC -Group: Development/Languages Requires: gcc = %{version}-%{release} Requires: libgnat = %{version}-%{release}, libgnat-devel = %{version}-%{release} Autoreq: true @@ -696,7 +657,6 @@ development tools, the documents and Ada compiler. %package -n libgnat Summary: GNU Ada 83, 95, 2005 and 2012 runtime shared libraries -Group: System Environment/Libraries Autoreq: true %description -n libgnat @@ -705,7 +665,6 @@ shared libraries, which are required to run programs compiled with the GNAT. %package -n libgnat-devel Summary: GNU Ada 83, 95, 2005 and 2012 libraries -Group: Development/Languages Autoreq: true %description -n libgnat-devel @@ -714,7 +673,6 @@ libraries, which are required to compile with the GNAT. %package -n libgnat-static Summary: GNU Ada 83, 95, 2005 and 2012 static libraries -Group: Development/Languages Requires: libgnat-devel = %{version}-%{release} Autoreq: true @@ -724,7 +682,6 @@ static libraries. %package go Summary: Go support -Group: Development/Languages Requires: gcc = %{version}-%{release} Requires: libgo = %{version}-%{release} Requires: libgo-devel = %{version}-%{release} @@ -738,7 +695,6 @@ with the GNU Compiler Collection. %package -n libgo Summary: Go runtime -Group: System Environment/Libraries Autoreq: true %description -n libgo @@ -747,7 +703,6 @@ Go dynamically linked programs. %package -n libgo-devel Summary: Go development libraries -Group: Development/Languages Requires: libgo = %{version}-%{release} Autoreq: true @@ -757,7 +712,6 @@ Go programs. %package -n libgo-static Summary: Static Go libraries -Group: Development/Libraries Requires: libgo = %{version}-%{release} Requires: gcc = %{version}-%{release} @@ -766,7 +720,6 @@ This package contains static Go libraries. %package plugin-devel Summary: Support for compiling GCC plugins -Group: Development/Languages Requires: gcc = %{version}-%{release} Requires: gmp-devel >= 4.1.2-8, mpfr-devel >= 2.2.1, libmpc-devel >= 0.8.1 @@ -777,7 +730,6 @@ not stable, so plugins must be rebuilt any time GCC is updated. %package offload-nvptx Summary: Offloading compiler to NVPTX -Group: Group: Development/Languages Requires: gcc = %{version}-%{release} Requires: libgomp-offload-nvptx = %{version}-%{release} From d895623061d7e75735415d4c50f69db93595eae6 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 29 Jan 2019 06:28:14 +0100 Subject: [PATCH 3/7] Remove obsolete scriptlets References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko --- gcc.spec | 57 +++----------------------------------------------------- 1 file changed, 3 insertions(+), 54 deletions(-) diff --git a/gcc.spec b/gcc.spec index 8b461d3..1b7cbc5 100644 --- a/gcc.spec +++ b/gcc.spec @@ -1935,66 +1935,15 @@ end %ldconfig_scriptlets -n libgnat -%post -n libgomp -/sbin/ldconfig -if [ -f %{_infodir}/libgomp.info.gz ]; then - /sbin/install-info \ - --info-dir=%{_infodir} %{_infodir}/libgomp.info.gz || : -fi - -%preun -n libgomp -if [ $1 = 0 -a -f %{_infodir}/libgomp.info.gz ]; then - /sbin/install-info --delete \ - --info-dir=%{_infodir} %{_infodir}/libgomp.info.gz || : -fi - -%postun -n libgomp -p /sbin/ldconfig +%ldconfig_scriptlets -n libgomp %ldconfig_scriptlets gdb-plugin %ldconfig_scriptlets -n libgccjit -%post -n libgccjit-devel -if [ -f %{_infodir}/libgccjit.info.gz ]; then - /sbin/install-info \ - --info-dir=%{_infodir} %{_infodir}/libgccjit.info.gz || : -fi +%ldconfig_scriptlets -n libgquadmath -%preun -n libgccjit-devel -if [ $1 = 0 -a -f %{_infodir}/libgccjit.info.gz ]; then - /sbin/install-info --delete \ - --info-dir=%{_infodir} %{_infodir}/libgccjit.info.gz || : -fi - -%post -n libquadmath -/sbin/ldconfig -if [ -f %{_infodir}/libquadmath.info.gz ]; then - /sbin/install-info \ - --info-dir=%{_infodir} %{_infodir}/libquadmath.info.gz || : -fi - -%preun -n libquadmath -if [ $1 = 0 -a -f %{_infodir}/libquadmath.info.gz ]; then - /sbin/install-info --delete \ - --info-dir=%{_infodir} %{_infodir}/libquadmath.info.gz || : -fi - -%postun -n libquadmath -p /sbin/ldconfig - -%post -n libitm -/sbin/ldconfig -if [ -f %{_infodir}/libitm.info.gz ]; then - /sbin/install-info \ - --info-dir=%{_infodir} %{_infodir}/libitm.info.gz || : -fi - -%preun -n libitm -if [ $1 = 0 -a -f %{_infodir}/libitm.info.gz ]; then - /sbin/install-info --delete \ - --info-dir=%{_infodir} %{_infodir}/libitm.info.gz || : -fi - -%postun -n libitm -p /sbin/ldconfig +%ldconfig_scriptlets -n libitm %ldconfig_scriptlets -n libatomic From a6c3c8f082b66540b57fa725503f85559f8b7c0e Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 29 Jan 2019 23:15:56 +0100 Subject: [PATCH 4/7] 9.0.1-0.2 --- .gitignore | 1 + gcc.spec | 23 +++++++-- gcc9-pr89093.patch | 114 +++++++++++++++++++++++++++++++++++++++++++++ sources | 2 +- 4 files changed, 136 insertions(+), 4 deletions(-) create mode 100644 gcc9-pr89093.patch diff --git a/.gitignore b/.gitignore index 876d7d6..65881c6 100644 --- a/.gitignore +++ b/.gitignore @@ -60,3 +60,4 @@ /gcc-9.0.0-20190119.tar.xz /gcc-9.0.0-20190121.tar.xz /gcc-9.0.1-20190123.tar.xz +/gcc-9.0.1-20190129.tar.xz diff --git a/gcc.spec b/gcc.spec index 1b7cbc5..9720621 100644 --- a/gcc.spec +++ b/gcc.spec @@ -1,10 +1,10 @@ -%global DATE 20190123 -%global SVNREV 268193 +%global DATE 20190129 +%global SVNREV 268371 %global gcc_version 9.0.1 %global gcc_major 9 # Note, gcc_release must be integer, if you want to add suffixes to # %%{release}, append them after %%{gcc_release} on Release: line. -%global gcc_release 0.1 +%global gcc_release 0.2 %global nvptx_tools_gitrev c28050f60193b3b95a18866a96f03334e874e78f %global nvptx_newlib_gitrev aadc8eb0ec43b7cd0dd2dfb484bae63c8b05ef24 %global _unpackaged_files_terminate_build 0 @@ -256,6 +256,7 @@ Patch10: gcc9-rh1574936.patch Patch11: gcc9-d-shared-libphobos.patch Patch12: gcc9-pr88714.patch Patch13: gcc9-pr89014.patch +Patch14: gcc9-pr89093.patch Patch1000: nvptx-tools-no-ptxas.patch Patch1001: nvptx-tools-build.patch @@ -761,6 +762,7 @@ to NVidia PTX capable devices if available. %patch11 -p0 -b .d-shared-libphobos~ %patch12 -p0 -b .pr88714~ %patch13 -p0 -b .pr89014~ +%patch14 -p0 -b .pr89093~ cd nvptx-tools-%{nvptx_tools_gitrev} %patch1000 -p1 -b .nvptx-tools-no-ptxas~ @@ -2949,6 +2951,21 @@ end %endif %changelog +* Tue Jan 29 2019 Jakub Jelinek 9.0.1-0.2 +- update from trunk + - PRs c++/66676, c++/88358, c++/88815, c++/88865, c++/88969, c++/88976, + c++/89001, c++/89024, c++/89089, c/86125, c/88886, c/89045, d/89042, + debug/87295, debug/89006, debug/89076, fortran/57553, fortran/70696, + fortran/85780, fortran/88929, gcc/87763, gcov-profile/88994, + ipa/88933, ipa/89104, libfortran/89020, libgcc/88931, libstdc++/68737, + libstdc++/88840, lto/87187, middle-end/86308, middle-end/89002, + middle-end/89015, middle-end/89037, preprocessor/88974, + rtl-optimization/88846, rtl-optimization/88948, target/85711, + target/87214, target/88998, target/89073, testsuite/89064, + tree-optimization/86865, tree-optimization/88739, + tree-optimization/89027, tree-optimization/89049 +- make sure ARM unwinder doesn't use VFP registers (#1670069, PR target/89093) + * Wed Jan 23 2019 Jakub Jelinek 9.0.1-0.1 - update from trunk - PRs c++/87893, c++/88293, c++/88757, c++/88984, c/44715, driver/89014, diff --git a/gcc9-pr89093.patch b/gcc9-pr89093.patch new file mode 100644 index 0000000..78957e3 --- /dev/null +++ b/gcc9-pr89093.patch @@ -0,0 +1,114 @@ +2019-01-29 Ramana Radhakrishnan + + PR target/89093 + * config/arm/arm-cpus.in: Add -mfpu=none support. + * config/arm/arm-tables.opt: Likewise. + * config/arm/arm.c (arm_options_perform_arch_sanity_checks): Remove + error for no FPU. + + * config/arm/pr-support.c: Add #pragma GCC target ("fpu=none"). + * config/arm/unwind-arm.c: Likewise. + * unwind-c.c: Likewise, #ifdef __arm__ only. + + * libsupc++/eh_personality.cc: Add #pragma GCC target ("fpu=none") + for __arm__. + +--- gcc/config/arm/arm-cpus.in ++++ gcc/config/arm/arm-cpus.in +@@ -128,6 +128,7 @@ define feature cmse + + # Floating point and Neon extensions. + # VFPv1 is not supported in GCC. ++define feature nofp + + # Vector floating point v2. + define feature vfpv2 +@@ -258,6 +259,7 @@ define fgroup ARMv8m_main ARMv7m armv8 cmse + define fgroup ARMv8r ARMv8a + + # Useful combinations. ++define fgroup NONE nofp + define fgroup VFPv2 vfpv2 + define fgroup VFPv3 VFPv2 vfpv3 + define fgroup VFPv4 VFPv3 vfpv4 fp16conv +@@ -1394,6 +1396,9 @@ end cpu cortex-r52 + # begin fpu + # isa + # end fpu ++begin fpu none ++isa NONE FP_DBL ++end fpu none + + begin fpu vfp + isa VFPv2 FP_DBL +--- gcc/config/arm/arm-tables.opt ++++ gcc/config/arm/arm-tables.opt +@@ -353,6 +353,9 @@ Enum + Name(arm_fpu) Type(enum fpu_type) + Known ARM FPUs (for use with the -mfpu= option): + ++EnumValue ++Enum(arm_fpu) String(none) Value(TARGET_FPU_none) ++ + EnumValue + Enum(arm_fpu) String(vfp) Value(TARGET_FPU_vfp) + +--- gcc/config/arm/arm.c ++++ gcc/config/arm/arm.c +@@ -3759,8 +3759,6 @@ arm_options_perform_arch_sanity_checks (void) + else if (TARGET_HARD_FLOAT_ABI) + { + arm_pcs_default = ARM_PCS_AAPCS_VFP; +- if (!bitmap_bit_p (arm_active_target.isa, isa_bit_vfpv2)) +- error ("-mfloat-abi=hard: selected processor lacks an FPU"); + } + else + arm_pcs_default = ARM_PCS_AAPCS; +--- libgcc/config/arm/pr-support.c ++++ libgcc/config/arm/pr-support.c +@@ -21,6 +21,8 @@ + see the files COPYING3 and COPYING.RUNTIME respectively. If not, see + . */ + ++#pragma GCC target ("fpu=none") ++ + #include "unwind.h" + + /* We add a prototype for abort here to avoid creating a dependency on +--- libgcc/config/arm/unwind-arm.c ++++ libgcc/config/arm/unwind-arm.c +@@ -21,6 +21,8 @@ + see the files COPYING3 and COPYING.RUNTIME respectively. If not, see + . */ + ++#pragma GCC target ("fpu=none") ++ + #include "unwind.h" + + /* Misc constants. */ +--- libgcc/unwind-c.c ++++ libgcc/unwind-c.c +@@ -24,6 +24,10 @@ a copy of the GCC Runtime Library Except + see the files COPYING3 and COPYING.RUNTIME respectively. If not, see + . */ + ++#ifdef __arm__ ++#pragma GCC target ("fpu=none") ++#endif ++ + #include "tconfig.h" + #include "tsystem.h" + #include "auto-target.h" +--- libstdc++-v3/libsupc++/eh_personality.cc ++++ libstdc++-v3/libsupc++/eh_personality.cc +@@ -22,6 +22,10 @@ + // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see + // . + ++#ifdef __arm__ ++#pragma GCC target ("fpu=none") ++#endif ++ + #include + #include + #include diff --git a/sources b/sources index 8ebcfa2..5c8e034 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (gcc-9.0.1-20190123.tar.xz) = 640e27164ec6624366af3fdcb9f1bd399c47bd1a8adc57a0f5f0214493354a218d1cdc7c8e60bb9323baf01c3e2ef09233d57896b3e3047149064b1c353b6b8c +SHA512 (gcc-9.0.1-20190129.tar.xz) = 541c90431c4a30df62ceb3552693a450f6a95bc6244f5e1c13ca3f4eb3b5837e19731f9b2cbe83892c6d4ef37192b3309e8d248940931507040350e8450d98e3 SHA512 (nvptx-newlib-aadc8eb0ec43b7cd0dd2dfb484bae63c8b05ef24.tar.xz) = 94f7089365296f7dfa485107b4143bebc850a81586f3460fd896bbbb6ba099a00217d4042133424fd2183b352132f4fd367e6a60599bdae2a26dfd48a77d0e04 SHA512 (nvptx-tools-c28050f60193b3b95a18866a96f03334e874e78f.tar.xz) = a688cb12cf805950a5abbb13b52f45c81dbee98e310b7ed57ae20e76dbfa5964a16270148374a6426d177db71909d28360490f091c86a5d19d4faa5127beeee1 From 7545ecb969b91be2b567f5ed736de757ae3ed44e Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 31 Jan 2019 20:38:49 +0000 Subject: [PATCH 5/7] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- gcc.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc.spec b/gcc.spec index 9720621..cae4de7 100644 --- a/gcc.spec +++ b/gcc.spec @@ -101,7 +101,7 @@ Summary: Various compilers (C, C++, Objective-C, ...) Name: gcc Version: %{gcc_version} -Release: %{gcc_release}%{?dist} +Release: %{gcc_release}%{?dist}.1 # libgcc, libgfortran, libgomp, libstdc++ and crtstuff have # GCC Runtime Exception. License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD @@ -2951,6 +2951,9 @@ end %endif %changelog +* Thu Jan 31 2019 Fedora Release Engineering - 9.0.1-0.2.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Tue Jan 29 2019 Jakub Jelinek 9.0.1-0.2 - update from trunk - PRs c++/66676, c++/88358, c++/88815, c++/88865, c++/88969, c++/88976, From 16bcddd9d4ccdfdd482dc4411b1af0a9adefe9cc Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sun, 3 Feb 2019 11:56:05 +0100 Subject: [PATCH 6/7] 9.0.1-0.3 --- .gitignore | 1 + gcc.spec | 23 ++++++++++++++++++----- sources | 2 +- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 65881c6..84695d8 100644 --- a/.gitignore +++ b/.gitignore @@ -61,3 +61,4 @@ /gcc-9.0.0-20190121.tar.xz /gcc-9.0.1-20190123.tar.xz /gcc-9.0.1-20190129.tar.xz +/gcc-9.0.1-20190203.tar.xz diff --git a/gcc.spec b/gcc.spec index cae4de7..7b2a1ce 100644 --- a/gcc.spec +++ b/gcc.spec @@ -1,10 +1,10 @@ -%global DATE 20190129 +%global DATE 20190203 %global SVNREV 268371 %global gcc_version 9.0.1 %global gcc_major 9 # Note, gcc_release must be integer, if you want to add suffixes to # %%{release}, append them after %%{gcc_release} on Release: line. -%global gcc_release 0.2 +%global gcc_release 0.3 %global nvptx_tools_gitrev c28050f60193b3b95a18866a96f03334e874e78f %global nvptx_newlib_gitrev aadc8eb0ec43b7cd0dd2dfb484bae63c8b05ef24 %global _unpackaged_files_terminate_build 0 @@ -101,7 +101,7 @@ Summary: Various compilers (C, C++, Objective-C, ...) Name: gcc Version: %{gcc_version} -Release: %{gcc_release}%{?dist}.1 +Release: %{gcc_release}%{?dist} # libgcc, libgfortran, libgomp, libstdc++ and crtstuff have # GCC Runtime Exception. License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD @@ -2951,8 +2951,21 @@ end %endif %changelog -* Thu Jan 31 2019 Fedora Release Engineering - 9.0.1-0.2.1 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild +* Sun Jan 3 2019 Jakub Jelinek 9.0.1-0.3 +- update from trunk + - PRs c++/80864, c++/86943, c++/87175, c++/88325, c++/88752, c++/88761, + c++/88983, c++/88988, c++/89083, c++/89105, c++/89119, c/88956, + c/89061, c/89122, fortran/52564, fortran/52884, fortran/57048, + fortran/81344, fortran/83246, fortran/88298, fortran/88393, + fortran/88669, fortran/88685, fortran/88980, fortran/89084, hsa/87863, + libbacktrace/89136, libfortran/78314, libfortran/88678, + libstdc++/88170, libstdc++/89117, middle-end/87887, middle-end/88597, + middle-end/89137, other/89106, rtl-optimization/87246, + rtl-optimization/88593, rtl-optimization/89115, sanitizer/89124, + target/89071, testsuite/87451, testsuite/88920, testsuite/89110, + tree-optimization/85497, tree-optimization/88107, + tree-optimization/88932, tree-optimization/89111, + tree-optimization/89135, tree-optimization/89143 * Tue Jan 29 2019 Jakub Jelinek 9.0.1-0.2 - update from trunk diff --git a/sources b/sources index 5c8e034..c984ae5 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (gcc-9.0.1-20190129.tar.xz) = 541c90431c4a30df62ceb3552693a450f6a95bc6244f5e1c13ca3f4eb3b5837e19731f9b2cbe83892c6d4ef37192b3309e8d248940931507040350e8450d98e3 +SHA512 (gcc-9.0.1-20190203.tar.xz) = e82e8f94fde788c57a688db80b7d763cf636621f588bea3ba807118c6fde0177262f72b150f918dcd892fec614400da5fecb15f432ae67cd0333aaca5d6640c9 SHA512 (nvptx-newlib-aadc8eb0ec43b7cd0dd2dfb484bae63c8b05ef24.tar.xz) = 94f7089365296f7dfa485107b4143bebc850a81586f3460fd896bbbb6ba099a00217d4042133424fd2183b352132f4fd367e6a60599bdae2a26dfd48a77d0e04 SHA512 (nvptx-tools-c28050f60193b3b95a18866a96f03334e874e78f.tar.xz) = a688cb12cf805950a5abbb13b52f45c81dbee98e310b7ed57ae20e76dbfa5964a16270148374a6426d177db71909d28360490f091c86a5d19d4faa5127beeee1 From fe09f8496b3fb8c0c7706c6ee556a03ca6b21d35 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sun, 3 Feb 2019 11:59:20 +0100 Subject: [PATCH 7/7] 9.0.1-0.3 --- gcc.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc.spec b/gcc.spec index 7b2a1ce..99378ca 100644 --- a/gcc.spec +++ b/gcc.spec @@ -2951,7 +2951,7 @@ end %endif %changelog -* Sun Jan 3 2019 Jakub Jelinek 9.0.1-0.3 +* Sun Feb 3 2019 Jakub Jelinek 9.0.1-0.3 - update from trunk - PRs c++/80864, c++/86943, c++/87175, c++/88325, c++/88752, c++/88761, c++/88983, c++/88988, c++/89083, c++/89105, c++/89119, c/88956,