Blame SPECS/gcc.spec

840d93
%global __python /usr/bin/python3
840d93
%{?scl:%global __strip %%{_scl_root}/usr/bin/strip}
840d93
%{?scl:%global __objdump %%{_scl_root}/usr/bin/objdump}
840d93
%{?scl:%scl_package gcc}
ac4b94
%global DATE 20191120
ac4b94
%global SVNREV 278493
ac4b94
%global gcc_version 9.2.1
840d93
%global gcc_major 9
840d93
# Note, gcc_release must be integer, if you want to add suffixes to
840d93
# %%{release}, append them after %%{gcc_release} on Release: line.
ac4b94
%global gcc_release 2
840d93
%global nvptx_tools_gitrev c28050f60193b3b95a18866a96f03334e874e78f
840d93
%global nvptx_newlib_gitrev aadc8eb0ec43b7cd0dd2dfb484bae63c8b05ef24
840d93
%global mpc_version 0.8.1
840d93
%global isl_version 0.16.1
840d93
%global doxygen_version 1.8.0
840d93
%global _unpackaged_files_terminate_build 0
840d93
%if 0%{?fedora} > 27 || 0%{?rhel} > 7
840d93
%undefine _annotated_build
840d93
%endif
840d93
%global multilib_64_archs sparc64 ppc64 ppc64p7 x86_64
840d93
%if 0%{?rhel} > 7
840d93
%global build_ada 0
840d93
%global build_objc 0
840d93
%global build_go 0
840d93
%global build_d 0
840d93
%else
840d93
%ifarch %{ix86} x86_64 ia64 ppc %{power64} alpha s390x %{arm} aarch64
840d93
%global build_ada 0
840d93
%else
840d93
%global build_ada 0
840d93
%endif
840d93
%global build_objc 0
840d93
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 %{mips}
840d93
%global build_go 0
840d93
%else
840d93
%global build_go 0
840d93
%endif
840d93
%ifarch %{ix86} x86_64 %{arm} %{mips} s390 s390x riscv64
840d93
%global build_d 1
840d93
%else
840d93
%global build_d 0
840d93
%endif
840d93
%endif
840d93
%if 0%{?rhel} >= 7
840d93
%ifarch %{ix86} x86_64 ia64 ppc ppc64 ppc64le
840d93
%global build_libquadmath 1
840d93
%else
840d93
%global build_libquadmath 0
840d93
%endif
840d93
%endif
840d93
%if 0%{?rhel} == 6
840d93
%ifarch %{ix86} x86_64 ia64 ppc64le
840d93
%global build_libquadmath 1
840d93
%else
840d93
%global build_libquadmath 0
840d93
%endif
840d93
%endif
840d93
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64
840d93
%global build_libasan 1
840d93
%else
840d93
%global build_libasan 0
840d93
%endif
840d93
%ifarch x86_64 ppc64 ppc64le aarch64
840d93
%global build_libtsan 1
840d93
%else
840d93
%global build_libtsan 0
840d93
%endif
840d93
%ifarch x86_64 ppc64 ppc64le aarch64
840d93
%global build_liblsan 1
840d93
%else
840d93
%global build_liblsan 0
840d93
%endif
840d93
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64
840d93
%global build_libubsan 1
840d93
%else
840d93
%global build_libubsan 0
840d93
%endif
840d93
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 %{mips}
840d93
%global build_libatomic 1
840d93
%else
840d93
%global build_libatomic 0
840d93
%endif
840d93
%ifarch %{ix86} x86_64 %{arm} alpha ppc ppc64 ppc64le ppc64p7 s390 s390x aarch64
840d93
%global build_libitm 1
840d93
%else
840d93
%global build_libitm 0
840d93
%endif
840d93
%global build_isl 1
840d93
%global build_libstdcxx_docs 1
840d93
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 %{mips}
840d93
%global attr_ifunc 1
840d93
%else
840d93
%global attr_ifunc 0
840d93
%endif
840d93
%ifarch x86_64 ppc64le
ac4b94
%global build_offload_nvptx 1
840d93
%else
840d93
%global build_offload_nvptx 0
840d93
%endif
840d93
%ifarch s390x
840d93
%global multilib_32_arch s390
840d93
%endif
840d93
%ifarch sparc64
840d93
%global multilib_32_arch sparcv9
840d93
%endif
840d93
%ifarch ppc64 ppc64p7
840d93
%global multilib_32_arch ppc
840d93
%endif
840d93
%ifarch x86_64
840d93
%global multilib_32_arch i686
840d93
%endif
840d93
Summary: GCC version 9
840d93
Name: %{?scl_prefix}gcc
840d93
Version: %{gcc_version}
9e23be
Release: %{gcc_release}.3%{?dist}
840d93
# libgcc, libgfortran, libgomp, libstdc++ and crtstuff have
840d93
# GCC Runtime Exception.
840d93
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
840d93
# The source for this package was pulled from upstream's vcs.  Use the
840d93
# following commands to generate the tarball:
840d93
# svn export svn://gcc.gnu.org/svn/gcc/branches/redhat/gcc-9-branch@%%{SVNREV} gcc-%%{version}-%%{DATE}
840d93
# tar cf - gcc-%%{version}-%%{DATE} | xz -9e > gcc-%%{version}-%%{DATE}.tar.xz
840d93
Source0: gcc-%{version}-%{DATE}.tar.xz
840d93
Source1: ftp://gcc.gnu.org/pub/gcc/infrastructure/isl-%{isl_version}.tar.bz2
840d93
Source2: http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
840d93
Source3: ftp://ftp.stack.nl/pub/users/dimitri/doxygen-%{doxygen_version}.src.tar.gz
ac4b94
# The source for nvptx-tools package was pulled from upstream's vcs.  Use the
ac4b94
# following commands to generate the tarball:
ac4b94
# git clone https://github.com/MentorEmbedded/nvptx-tools.git
ac4b94
# cd nvptx-tools
ac4b94
# git archive origin/master --prefix=nvptx-tools-%%{nvptx_tools_gitrev}/ | xz -9e > ../nvptx-tools-%%{nvptx_tools_gitrev}.tar.xz
ac4b94
# cd ..; rm -rf nvptx-tools
ac4b94
Source4: nvptx-tools-%{nvptx_tools_gitrev}.tar.xz
ac4b94
# The source for nvptx-newlib package was pulled from upstream's vcs.  Use the
ac4b94
# following commands to generate the tarball:
ac4b94
# git clone https://github.com/MentorEmbedded/nvptx-newlib.git
ac4b94
# cd nvptx-newlib
ac4b94
# git archive origin/master --prefix=nvptx-newlib-%%{nvptx_newlib_gitrev}/ | xz -9 > ../nvptx-newlib-%%{nvptx_newlib_gitrev}.tar.xz
ac4b94
# cd ..; rm -rf nvptx-newlib
ac4b94
Source5: nvptx-newlib-%{nvptx_newlib_gitrev}.tar.xz
ac4b94
%global isl_version 0.16.1
840d93
URL: http://gcc.gnu.org
840d93
# Need binutils with -pie support >= 2.14.90.0.4-4
840d93
# Need binutils which can omit dot symbols and overlap .opd on ppc64 >= 2.15.91.0.2-4
840d93
# Need binutils which handle -msecure-plt on ppc >= 2.16.91.0.2-2
840d93
# Need binutils which support .weakref >= 2.16.91.0.3-1
840d93
# Need binutils which support --hash-style=gnu >= 2.17.50.0.2-7
840d93
# Need binutils which support mffgpr and mftgpr >= 2.17.50.0.2-8
840d93
# Need binutils which support --build-id >= 2.17.50.0.17-3
840d93
# Need binutils which support %%gnu_unique_object >= 2.19.51.0.14
840d93
# Need binutils which support .cfi_sections >= 2.19.51.0.14-33
ac4b94
# Need binutils which support new PowerPC relocs >= 2.31
840d93
BuildRequires: binutils >= 2.19.51.0.14-33
840d93
# While gcc doesn't include statically linked binaries, during testing
840d93
# -static is used several times.
840d93
BuildRequires: glibc-static
840d93
%if 0%{?scl:1}
ac4b94
BuildRequires: %{?scl_prefix}binutils >= 2.31
840d93
# For testing
ac4b94
%if 0%{?rhel} >= 6
840d93
# FIXME gcc-toolset-9-gdb isn't yet in the buildroot.
ac4b94
BuildRequires: gdb
840d93
%else
840d93
BuildRequires: %{?scl_prefix}gdb >= 7.4.50
840d93
%endif
840d93
%endif
840d93
BuildRequires: zlib-devel, gettext, dejagnu, bison, flex, sharutils
840d93
BuildRequires: texinfo, texinfo-tex, /usr/bin/pod2man
840d93
#BuildRequires: systemtap-sdt-devel >= 1.3
840d93
#BuildRequires: gmp-devel >= 4.1.2-8, mpfr-devel >= 2.2.1, libmpc-devel >= 0.8.1
840d93
#BuildRequires: python2-devel, python3-devel, /usr/bin/python
840d93
BuildRequires: gcc, gcc-c++
840d93
# For VTA guality testing
840d93
BuildRequires: gdb
840d93
# Make sure pthread.h doesn't contain __thread tokens
840d93
# Make sure glibc supports stack protector
840d93
# Make sure glibc supports DT_GNU_HASH
840d93
BuildRequires: glibc-devel >= 2.4.90-13
840d93
BuildRequires: elfutils-devel >= 0.147
840d93
BuildRequires: elfutils-libelf-devel >= 0.147
840d93
%ifarch ppc ppc64 ppc64le ppc64p7 s390 s390x sparc sparcv9 alpha
840d93
# Make sure glibc supports TFmode long double
840d93
BuildRequires: glibc >= 2.3.90-35
840d93
%endif
840d93
%ifarch %{multilib_64_archs} sparcv9 ppc
840d93
# Ensure glibc{,-devel} is installed for both multilib arches
840d93
BuildRequires: /lib/libc.so.6 /usr/lib/libc.so /lib64/libc.so.6 /usr/lib64/libc.so
840d93
%endif
840d93
%ifarch ia64
840d93
BuildRequires: libunwind >= 0.98
840d93
%endif
840d93
# Need .eh_frame ld optimizations
840d93
# Need proper visibility support
840d93
# Need -pie support
840d93
# Need --as-needed/--no-as-needed support
840d93
# On ppc64, need omit dot symbols support and --non-overlapping-opd
840d93
# Need binutils that owns /usr/bin/c++filt
840d93
# Need binutils that support .weakref
840d93
# Need binutils that supports --hash-style=gnu
840d93
# Need binutils that support mffgpr/mftgpr
840d93
# Need binutils that support --build-id
840d93
# Need binutils that support %%gnu_unique_object
840d93
# Need binutils that support .cfi_sections
840d93
%if 0%{?rhel} <= 7
840d93
Requires: %{?scl_prefix}binutils >= 2.22.52.0.1
840d93
%else
840d93
Requires: binutils >= 2.24
840d93
%endif
840d93
# Make sure gdb will understand DW_FORM_strp
840d93
Conflicts: gdb < 5.1-2
840d93
Requires: glibc-devel >= 2.2.90-12
840d93
%ifarch ppc ppc64 ppc64le ppc64p7 s390 s390x sparc sparcv9 alpha
840d93
# Make sure glibc supports TFmode long double
840d93
Requires: glibc >= 2.3.90-35
840d93
%endif
840d93
Requires: libgcc >= 4.1.2-43
840d93
Requires: libgomp >= 4.4.4-13
840d93
BuildRequires: gmp-devel >= 4.1.2-8
840d93
BuildRequires: mpfr-devel >= 2.2.1
840d93
%if 0%{?rhel} >= 7
840d93
BuildRequires: libmpc-devel >= 0.8.1
840d93
%endif
840d93
%if %{build_libstdcxx_docs}
840d93
BuildRequires: libxml2
840d93
BuildRequires: graphviz
840d93
%if 0%{?rhel} < 7
840d93
# doxygen BRs
840d93
BuildRequires: perl
840d93
BuildRequires: texlive-dvips, texlive-utils, texlive-latex
840d93
BuildRequires: ghostscript
840d93
%endif
840d93
%if 0%{?rhel} >= 7
840d93
BuildRequires: doxygen >= 1.7.1
840d93
BuildRequires: dblatex, texlive-collection-latex, docbook5-style-xsl
840d93
%endif
840d93
%endif
840d93
%{?scl:Requires:%scl_runtime}
840d93
AutoReq: true
840d93
AutoProv: false
840d93
%ifarch sparc64 ppc64 ppc64le s390x x86_64 ia64 aarch64
840d93
Provides: liblto_plugin.so.0()(64bit)
840d93
%else
840d93
Provides: liblto_plugin.so.0
840d93
%endif
840d93
%global oformat %{nil}
840d93
%global oformat2 %{nil}
840d93
%ifarch %{ix86}
840d93
%global oformat OUTPUT_FORMAT(elf32-i386)
840d93
%endif
840d93
%ifarch x86_64
840d93
%global oformat OUTPUT_FORMAT(elf64-x86-64)
840d93
%global oformat2 OUTPUT_FORMAT(elf32-i386)
840d93
%endif
840d93
%ifarch ppc
840d93
%global oformat OUTPUT_FORMAT(elf32-powerpc)
840d93
%global oformat2 OUTPUT_FORMAT(elf64-powerpc)
840d93
%endif
840d93
%ifarch ppc64
840d93
%global oformat OUTPUT_FORMAT(elf64-powerpc)
840d93
%global oformat2 OUTPUT_FORMAT(elf32-powerpc)
840d93
%endif
840d93
%ifarch s390
840d93
%global oformat OUTPUT_FORMAT(elf32-s390)
840d93
%endif
840d93
%ifarch s390x
840d93
%global oformat OUTPUT_FORMAT(elf64-s390)
840d93
%global oformat2 OUTPUT_FORMAT(elf32-s390)
840d93
%endif
840d93
%ifarch ia64
840d93
%global oformat OUTPUT_FORMAT(elf64-ia64-little)
840d93
%endif
840d93
%ifarch ppc64le
840d93
%global oformat OUTPUT_FORMAT(elf64-powerpcle)
840d93
%endif
840d93
%ifarch aarch64
840d93
%global oformat OUTPUT_FORMAT(elf64-littleaarch64)
840d93
%endif
840d93
840d93
Patch0: gcc9-hack.patch
840d93
Patch1: gcc9-i386-libgomp.patch
840d93
Patch2: gcc9-sparc-config-detection.patch
840d93
Patch3: gcc9-libgomp-omp_h-multilib.patch
840d93
Patch4: gcc9-libtool-no-rpath.patch
840d93
Patch5: gcc9-isl-dl.patch
840d93
Patch6: gcc9-libstdc++-docs.patch
840d93
Patch7: gcc9-no-add-needed.patch
840d93
Patch8: gcc9-foffload-default.patch
840d93
Patch9: gcc9-Wno-format-security.patch
840d93
Patch10: gcc9-rh1574936.patch
840d93
Patch11: gcc9-d-shared-libphobos.patch
ac4b94
Patch12: gcc9-fixes.patch
ac4b94
Patch13: gcc9-add-sve-tests.patch
840d93
840d93
Patch1000: gcc9-libstdc++-compat.patch
840d93
Patch1001: gcc9-alt-compat-test.patch
840d93
Patch1002: gcc9-isl-dl2.patch
840d93
Patch1003: gcc9-libgfortran-compat.patch
840d93
840d93
Patch2001: doxygen-1.7.1-config.patch
840d93
Patch2002: doxygen-1.7.5-timestamp.patch
840d93
Patch2003: doxygen-1.8.0-rh856725.patch
840d93
ac4b94
Patch3001: 0001-Default-widths-for-i-f-and-g-format-specifiers-in-fo.patch
ac4b94
Patch3002: 0002-Allow-duplicate-declarations.patch
ac4b94
Patch3003: 0003-Convert-LOGICAL-to-INTEGER-for-arithmetic-ops-and-vi.patch
ac4b94
Patch3004: 0004-Allow-CHARACTER-literals-in-assignments-and-data-sta.patch
ac4b94
Patch3005: 0005-dec-comparisons.patch
840d93
Patch3006: 0006-Allow-blank-format-items-in-format-strings.patch
840d93
Patch3007: 0007-Allow-more-than-one-character-as-argument-to-ICHAR.patch
840d93
Patch3008: 0008-Allow-non-integer-substring-indexes.patch
ac4b94
Patch3009: 0009-Allow-old-style-initializers-in-derived-types.patch
ac4b94
Patch3010: 0010-Allow-string-length-and-kind-to-be-specified-on-a-pe.patch
ac4b94
Patch3011: 0011-Allow-non-logical-expressions-in-IF-statements.patch
ac4b94
Patch3012: 0012-Support-type-promotion-in-calls-to-intrinsics.patch
ac4b94
Patch3013: 0013-Add-the-SEQUENCE-attribute-by-default-if-it-s-not-pr.patch
ac4b94
Patch3014: 0014-Fill-in-missing-array-dimensions-using-the-lower-bou.patch
ac4b94
Patch3015: 0015-Allow-automatics-in-equivalence.patch
ac4b94
Patch3016: 0016-Suppress-warning-with-Wno-overwrite-recursive.patch
ac4b94
ac4b94
Patch4000: nvptx-tools-no-ptxas.patch
ac4b94
Patch4001: nvptx-tools-build.patch
ac4b94
Patch4002: nvptx-tools-glibc.patch
840d93
840d93
%if 0%{?rhel} > 7
840d93
%global nonsharedver 80
840d93
%else
840d93
%if 0%{?rhel} == 7
840d93
%global nonsharedver 48
840d93
%else
840d93
%global nonsharedver 44
840d93
%endif
840d93
%endif
840d93
840d93
%if 0%{?scl:1}
840d93
%global _gnu %{nil}
840d93
%else
840d93
%global _gnu 7E
840d93
%endif
840d93
%ifarch sparcv9
840d93
%global gcc_target_platform sparc64-%{_vendor}-%{_target_os}%{?_gnu}
840d93
%endif
840d93
%ifarch ppc ppc64p7
840d93
%global gcc_target_platform ppc64-%{_vendor}-%{_target_os}%{?_gnu}
840d93
%endif
840d93
%ifnarch sparcv9 ppc ppc64p7
840d93
%global gcc_target_platform %{_target_platform}
840d93
%endif
840d93
840d93
%description
840d93
The %{?scl_prefix}gcc%{!?scl:5} package contains the GNU Compiler Collection version 9.
840d93
840d93
%package -n libgcc
840d93
Summary: GCC version 9 shared support library
840d93
Autoreq: false
840d93
840d93
%description -n libgcc
840d93
This package contains GCC shared support library which is needed
840d93
e.g. for exception handling support.
840d93
840d93
%package c++
840d93
Summary: C++ support for GCC  version 9
840d93
Requires: %{?scl_prefix}gcc%{!?scl:5} = %{version}-%{release}
840d93
%if 0%{?rhel} >= 7
840d93
Requires: libstdc++
840d93
%else
840d93
Requires: libstdc++ >= 4.4.4-13
840d93
%endif
840d93
Requires: %{?scl_prefix}libstdc++%{!?scl:5}-devel = %{version}-%{release}
840d93
Autoreq: true
840d93
Autoprov: true
840d93
840d93
%description c++
840d93
This package adds C++ support to the GNU Compiler Collection
840d93
version 9.  It includes support for most of the current C++ specification
840d93
and a lot of support for the upcoming C++ specification.
840d93
840d93
%package -n libstdc++
840d93
Summary: GNU Standard C++ Library
840d93
Autoreq: true
840d93
Requires: glibc >= 2.10.90-7
840d93
840d93
%description -n libstdc++
840d93
The libstdc++ package contains a rewritten standard compliant GCC Standard
840d93
C++ Library.
840d93
840d93
%package -n %{?scl_prefix}libstdc++%{!?scl:5}-devel
840d93
Summary: Header files and libraries for C++ development
840d93
%if 0%{?rhel} >= 7
840d93
Requires: libstdc++
840d93
%else
840d93
Requires: libstdc++ >= 4.4.4-13
840d93
%endif
840d93
Requires: libstdc++%{?_isa}
840d93
Autoreq: true
840d93
Autoprov: true
840d93
840d93
%description -n %{?scl_prefix}libstdc++%{!?scl:5}-devel
840d93
This is the GNU implementation of the standard C++ libraries.  This
840d93
package includes the header files and libraries needed for C++
840d93
development. This includes rewritten implementation of STL.
840d93
840d93
%package -n %{?scl_prefix}libstdc++%{!?scl:5}-docs
840d93
Summary: Documentation for the GNU standard C++ library
840d93
Autoreq: true
840d93
840d93
%description -n %{?scl_prefix}libstdc++%{!?scl:5}-docs
840d93
Manual, doxygen generated API information and Frequently Asked Questions
840d93
for the GNU standard C++ library.
840d93
840d93
%package gfortran
840d93
Summary: Fortran support for GCC 9
840d93
Requires: %{?scl_prefix}gcc%{!?scl:5} = %{version}-%{release}
840d93
%if 0%{?rhel} > 7
840d93
Requires: libgfortran >= 8.1.1
840d93
%else
840d93
Requires: libgfortran5 >= 8.1.1
840d93
%endif
840d93
%if %{build_libquadmath}
840d93
%if 0%{!?scl:1}
840d93
Requires: libquadmath
840d93
%endif
840d93
Requires: %{?scl_prefix}libquadmath-devel = %{version}-%{release}
840d93
%endif
840d93
Autoreq: true
840d93
Autoprov: true
840d93
840d93
%description gfortran
840d93
The %{?scl_prefix}gcc%{!?scl:5}-gfortran package provides support for compiling Fortran
840d93
programs with the GNU Compiler Collection.
840d93
840d93
840d93
%package gdb-plugin
840d93
Summary: GCC 9 plugin for GDB
840d93
Requires: %{?scl_prefix}gcc%{!?scl:5} = %{version}-%{release}
840d93
840d93
%description gdb-plugin
840d93
This package contains GCC 9 plugin for GDB C expression evaluation.
840d93
840d93
%package -n %{?scl_prefix}libgccjit
840d93
Summary: Library for embedding GCC inside programs and libraries
840d93
Requires: %{?scl_prefix}gcc%{!?scl:5} = %{version}-%{release}
840d93
840d93
%description -n %{?scl_prefix}libgccjit
840d93
This package contains shared library with GCC 9 JIT front-end.
840d93
840d93
%package -n %{?scl_prefix}libgccjit-devel
840d93
Summary: Support for embedding GCC inside programs and libraries
840d93
Group: Development/Libraries
840d93
Requires: %{?scl_prefix}libgccjit = %{version}-%{release}
840d93
Requires: %{?scl_prefix}libgccjit-docs = %{version}-%{release}
840d93
840d93
%description -n %{?scl_prefix}libgccjit-devel
840d93
This package contains header files for GCC 8 JIT front end.
840d93
840d93
%package -n %{?scl_prefix}libgccjit-docs
840d93
Summary: Documentation for embedding GCC inside programs and libraries
840d93
Group: Development/Libraries
840d93
%if 0%{?rhel} > 7
840d93
BuildRequires: python3-sphinx
840d93
%else
840d93
BuildRequires: python-sphinx
840d93
%endif
840d93
Requires(post): /sbin/install-info
840d93
Requires(preun): /sbin/install-info
840d93
840d93
%description -n %{?scl_prefix}libgccjit-docs
840d93
This package contains documentation for GCC 9 JIT front-end.
840d93
840d93
%package -n libquadmath
840d93
Summary: GCC 9 __float128 shared support library
840d93
Requires(post): /sbin/install-info
840d93
Requires(preun): /sbin/install-info
840d93
840d93
%description -n libquadmath
840d93
This package contains GCC shared support library which is needed
840d93
for __float128 math support and for Fortran REAL*16 support.
840d93
840d93
%package -n %{?scl_prefix}libquadmath-devel
840d93
Summary: GCC 9 __float128 support
840d93
Group: Development/Libraries
840d93
%if 0%{!?scl:1}
ac4b94
Requires: %{?scl_prefix}libquadmath%{_isa} = %{version}-%{release}
840d93
%else
840d93
%if 0%{?rhel} >= 7
ac4b94
Requires: libquadmath%{_isa}
840d93
%endif
840d93
%endif
840d93
Requires: %{?scl_prefix}gcc%{!?scl:5} = %{version}-%{release}
840d93
840d93
%description -n %{?scl_prefix}libquadmath-devel
840d93
This package contains headers for building Fortran programs using
840d93
REAL*16 and programs using __float128 math.
840d93
840d93
%package -n libitm
840d93
Summary: The GNU Transactional Memory library
840d93
Group: System Environment/Libraries
840d93
Requires(post): /sbin/install-info
840d93
Requires(preun): /sbin/install-info
840d93
840d93
%description -n libitm
840d93
This package contains the GNU Transactional Memory library
840d93
which is a GCC transactional memory support runtime library.
840d93
840d93
%package -n %{?scl_prefix}libitm-devel
840d93
Summary: The GNU Transactional Memory support
ac4b94
Requires: libitm%{_isa} >= 4.7.0-1
840d93
Requires: %{?scl_prefix}gcc%{!?scl:5} = %{version}-%{release}
840d93
840d93
%description -n %{?scl_prefix}libitm-devel
840d93
This package contains headers and support files for the
840d93
GNU Transactional Memory library.
840d93
840d93
%package plugin-devel
840d93
Summary: Support for compiling GCC plugins
840d93
Requires: %{?scl_prefix}gcc%{!?scl:5} = %{version}-%{release}
840d93
Requires: gmp-devel >= 4.1.2-8
840d93
Requires: mpfr-devel >= 2.2.1
840d93
%if 0%{?rhel} >= 7
840d93
Requires: libmpc-devel >= 0.8.1
840d93
%endif
840d93
840d93
%description plugin-devel
840d93
This package contains header files and other support files
840d93
for compiling GCC 8 plugins.  The GCC plugin ABI is currently
840d93
not stable, so plugins must be rebuilt any time GCC is updated.
840d93
840d93
%package -n libatomic
840d93
Summary: The GNU Atomic library
840d93
Group: System Environment/Libraries
840d93
Requires(post): /sbin/install-info
840d93
Requires(preun): /sbin/install-info
840d93
840d93
%description -n libatomic
840d93
This package contains the GNU Atomic library
840d93
which is a GCC support runtime library for atomic operations not supported
840d93
by hardware.
840d93
840d93
%package -n %{?scl_prefix}libatomic-devel
840d93
Summary: The GNU Atomic static library
ac4b94
Requires: libatomic%{_isa} >= 4.8.0
840d93
840d93
%description -n %{?scl_prefix}libatomic-devel
840d93
This package contains GNU Atomic static libraries.
840d93
840d93
%package -n libasan5
840d93
Summary: The Address Sanitizer runtime library from GCC 9
840d93
Group: System Environment/Libraries
840d93
Requires(post): /sbin/install-info
840d93
Requires(preun): /sbin/install-info
840d93
840d93
%description -n libasan5
840d93
This package contains the Address Sanitizer library from GCC 9
840d93
which is used for -fsanitize=address instrumented programs.
840d93
840d93
%package -n %{?scl_prefix}libasan-devel
840d93
Summary: The Address Sanitizer static library
ac4b94
%if 0%{?rhel} > 7
ac4b94
Requires: libasan%{_isa} >= 8.3.1
ac4b94
Obsoletes: libasan5
840d93
%else
ac4b94
Requires: libasan5%{_isa} >= 8.3.1
840d93
%endif
840d93
840d93
%description -n %{?scl_prefix}libasan-devel
840d93
This package contains Address Sanitizer static runtime library.
840d93
840d93
%package -n libtsan
840d93
Summary: The Thread Sanitizer runtime library
840d93
Requires(post): /sbin/install-info
840d93
Requires(preun): /sbin/install-info
840d93
840d93
%description -n libtsan
840d93
This package contains the Thread Sanitizer library
840d93
which is used for -fsanitize=thread instrumented programs.
840d93
840d93
%package -n %{?scl_prefix}libtsan-devel
840d93
Summary: The Thread Sanitizer static library
ac4b94
Requires: libtsan%{_isa} >= 5.1.1
840d93
840d93
%description -n %{?scl_prefix}libtsan-devel
840d93
This package contains Thread Sanitizer static runtime library.
840d93
840d93
%package -n libubsan1
840d93
Summary: The Undefined Behavior Sanitizer runtime library
840d93
Requires(post): /sbin/install-info
840d93
Requires(preun): /sbin/install-info
840d93
840d93
%description -n libubsan1
840d93
This package contains the Undefined Behavior Sanitizer library
840d93
which is used for -fsanitize=undefined instrumented programs.
840d93
840d93
%package -n %{?scl_prefix}libubsan-devel
840d93
Summary: The Undefined Behavior Sanitizer static library
ac4b94
%if 0%{?rhel} > 7
ac4b94
Requires: libubsan%{_isa} >= 8.3.1
ac4b94
Obsoletes: libubsan1
840d93
%else
ac4b94
Requires: libubsan1%{_isa} >= 8.3.1
840d93
%endif
840d93
840d93
%description -n %{?scl_prefix}libubsan-devel
840d93
This package contains Undefined Behavior Sanitizer static runtime library.
840d93
840d93
%package -n liblsan
840d93
Summary: The Leak Sanitizer runtime library
840d93
Requires(post): /sbin/install-info
840d93
Requires(preun): /sbin/install-info
840d93
840d93
%description -n liblsan
840d93
This package contains the Leak Sanitizer library
840d93
which is used for -fsanitize=leak instrumented programs.
840d93
840d93
%package -n %{?scl_prefix}liblsan-devel
840d93
Summary: The Leak Sanitizer static library
ac4b94
Requires: liblsan%{_isa} >= 5.1.1
840d93
840d93
%description -n %{?scl_prefix}liblsan-devel
840d93
This package contains Leak Sanitizer static runtime library.
840d93
ac4b94
%package -n %{?scl_prefix}offload-nvptx
ac4b94
Summary: Offloading compiler to NVPTX
ac4b94
Requires: gcc >= 8.3.1
ac4b94
Requires: libgomp-offload-nvptx >= 8.3.1
ac4b94
ac4b94
%description -n %{?scl_prefix}offload-nvptx
ac4b94
The gcc-offload-nvptx package provides offloading support for
ac4b94
NVidia PTX.  OpenMP and OpenACC programs linked with -fopenmp will
ac4b94
by default add PTX code into the binaries, which can be offloaded
ac4b94
to NVidia PTX capable devices if available.
840d93
840d93
%prep
840d93
%if 0%{?rhel} >= 7
ac4b94
%setup -q -n gcc-%{version}-%{DATE} -a 1 -a 4 -a 5
840d93
%else
ac4b94
%setup -q -n gcc-%{version}-%{DATE} -a 1 -a 2 -a 3 -a 4 -a 5
840d93
%endif
840d93
%patch0 -p0 -b .hack~
840d93
%patch1 -p0 -b .i386-libgomp~
840d93
%patch2 -p0 -b .sparc-config-detection~
840d93
%patch3 -p0 -b .libgomp-omp_h-multilib~
840d93
%patch4 -p0 -b .libtool-no-rpath~
840d93
%if %{build_isl}
840d93
%patch5 -p0 -b .isl-dl~
840d93
%endif
840d93
%if %{build_libstdcxx_docs}
840d93
%patch6 -p0 -b .libstdc++-docs~
840d93
%endif
840d93
%patch7 -p0 -b .no-add-needed~
840d93
%patch8 -p0 -b .foffload-default~
840d93
%patch9 -p0 -b .Wno-format-security~
840d93
%if 0%{?fedora} >= 29 || 0%{?rhel} > 7
840d93
%patch10 -p0 -b .rh1574936~
840d93
%endif
840d93
%patch11 -p0 -b .d-shared-libphobos~
ac4b94
%patch12 -p0 -b .fixes~
ac4b94
%patch13 -p0 -b .add-sve-tests~
840d93
840d93
%patch1000 -p0 -b .libstdc++-compat~
840d93
%ifarch %{ix86} x86_64
840d93
%if 0%{?rhel} < 7
840d93
# On i?86/x86_64 there are some incompatibilities in _Decimal* as well as
840d93
# aggregates containing larger vector passing.
840d93
%patch1001 -p0 -b .alt-compat-test~
840d93
%endif
840d93
%endif
840d93
%if %{build_isl}
840d93
%patch1002 -p0 -b .isl-dl2~
840d93
%endif
840d93
%patch1003 -p0 -b .libgfortran-compat~
840d93
840d93
%if %{build_libstdcxx_docs}
840d93
%if 0%{?rhel} < 7
840d93
cd doxygen-%{doxygen_version}
840d93
%patch2001 -p1 -b .config~
840d93
%patch2002 -p1 -b .timestamp~
840d93
%patch2003 -p1 -b .rh856725~
840d93
cd ..
840d93
%endif
840d93
%endif
840d93
840d93
%patch3001 -p1 -b .fortran01~
840d93
%patch3002 -p1 -b .fortran02~
ac4b94
%patch3003 -p1 -b .fortran03~
840d93
%patch3004 -p1 -b .fortran04~
840d93
%patch3005 -p1 -b .fortran05~
840d93
%patch3006 -p1 -b .fortran06~
840d93
%patch3007 -p1 -b .fortran07~
840d93
%patch3008 -p1 -b .fortran08~
840d93
%patch3009 -p1 -b .fortran09~
840d93
%patch3010 -p1 -b .fortran10~
840d93
%patch3011 -p1 -b .fortran11~
840d93
%patch3012 -p1 -b .fortran12~
840d93
%patch3013 -p1 -b .fortran13~
840d93
%patch3014 -p1 -b .fortran14~
ac4b94
%patch3015 -p1 -b .fortran15~
840d93
%patch3016 -p1 -b .fortran16~
ac4b94
ac4b94
cd nvptx-tools-%{nvptx_tools_gitrev}
ac4b94
%patch4000 -p1 -b .nvptx-tools-no-ptxas~
ac4b94
%patch4001 -p1 -b .nvptx-tools-build~
ac4b94
%patch4002 -p1 -b .nvptx-tools-glibc~
ac4b94
cd ..
840d93
840d93
echo 'Red Hat %{version}-%{gcc_release}' > gcc/DEV-PHASE
840d93
840d93
%if 0%{?rhel} == 6
840d93
# Default to -gdwarf-3 rather than -gdwarf-4
840d93
sed -i '/UInteger Var(dwarf_version)/s/Init(4)/Init(3)/' gcc/common.opt
840d93
sed -i 's/\(may be either 2, 3 or 4; the default version is \)4\./\13./' gcc/doc/invoke.texi
840d93
%endif
840d93
840d93
cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
840d93
cp -a libstdc++-v3/config/cpu/i{4,3}86/opt
840d93
echo 'TM_H += $(srcdir)/config/rs6000/rs6000-modes.h' >> gcc/config/rs6000/t-rs6000
840d93
840d93
./contrib/gcc_update --touch
840d93
840d93
LC_ALL=C sed -i -e 's/\xa0/ /' gcc/doc/options.texi
840d93
840d93
sed -i -e 's/Common Driver Var(flag_report_bug)/& Init(1)/' gcc/common.opt
840d93
840d93
%ifarch ppc
840d93
if [ -d libstdc++-v3/config/abi/post/powerpc64-linux-gnu ]; then
840d93
  mkdir -p libstdc++-v3/config/abi/post/powerpc64-linux-gnu/64
840d93
  mv libstdc++-v3/config/abi/post/powerpc64-linux-gnu/{,64/}baseline_symbols.txt
840d93
  mv libstdc++-v3/config/abi/post/powerpc64-linux-gnu/{32/,}baseline_symbols.txt
840d93
  rm -rf libstdc++-v3/config/abi/post/powerpc64-linux-gnu/32
840d93
fi
840d93
%endif
840d93
%ifarch sparc
840d93
if [ -d libstdc++-v3/config/abi/post/sparc64-linux-gnu ]; then
840d93
  mkdir -p libstdc++-v3/config/abi/post/sparc64-linux-gnu/64
840d93
  mv libstdc++-v3/config/abi/post/sparc64-linux-gnu/{,64/}baseline_symbols.txt
840d93
  mv libstdc++-v3/config/abi/post/sparc64-linux-gnu/{32/,}baseline_symbols.txt
840d93
  rm -rf libstdc++-v3/config/abi/post/sparc64-linux-gnu/32
840d93
fi
840d93
%endif
840d93
840d93
# This test causes fork failures, because it spawns way too many threads
840d93
rm -f gcc/testsuite/go.test/test/chan/goroutines.go
840d93
840d93
%build
840d93
840d93
# Undo the broken autoconf change in recent Fedora versions
840d93
export CONFIG_SITE=NONE
840d93
ac4b94
%if %{build_offload_nvptx}
ac4b94
mkdir obji
ac4b94
IROOT=`pwd`/obji
ac4b94
cd nvptx-tools-%{nvptx_tools_gitrev}
ac4b94
rm -rf obj-%{gcc_target_platform}
ac4b94
mkdir obj-%{gcc_target_platform}
ac4b94
cd obj-%{gcc_target_platform}
ac4b94
CC="$CC" CXX="$CXX" CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" \
ac4b94
../configure --prefix=%{_prefix}
ac4b94
make %{?_smp_mflags}
ac4b94
make install prefix=${IROOT}%{_prefix}
ac4b94
cd ../..
ac4b94
ac4b94
ln -sf nvptx-newlib-%{nvptx_newlib_gitrev}/newlib newlib
ac4b94
rm -rf obj-offload-nvptx-none
ac4b94
mkdir obj-offload-nvptx-none
ac4b94
ac4b94
cd obj-offload-nvptx-none
ac4b94
CC="$CC" CXX="$CXX" CFLAGS="$OPT_FLAGS" \
ac4b94
	CXXFLAGS="`echo " $OPT_FLAGS " | sed 's/ -Wall / /g;s/ -fexceptions / /g' \
ac4b94
		  | sed 's/ -Wformat-security / -Wformat -Wformat-security /'`" \
ac4b94
	XCFLAGS="$OPT_FLAGS" TCFLAGS="$OPT_FLAGS" \
ac4b94
	../configure --disable-bootstrap --disable-sjlj-exceptions \
ac4b94
	--enable-newlib-io-long-long --with-build-time-tools=${IROOT}%{_prefix}/nvptx-none/bin \
ac4b94
	--target nvptx-none --enable-as-accelerator-for=%{gcc_target_platform} \
ac4b94
	--enable-languages=c,c++,fortran,lto \
ac4b94
	--prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
ac4b94
	--with-bugurl=http://bugzilla.redhat.com/bugzilla \
ac4b94
	--enable-checking=release --with-system-zlib \
ac4b94
	--with-gcc-major-version-only --without-isl
ac4b94
make %{?_smp_mflags}
ac4b94
cd ..
ac4b94
rm -f newlib
ac4b94
%endif
ac4b94
840d93
rm -fr obj-%{gcc_target_platform}
840d93
mkdir obj-%{gcc_target_platform}
840d93
cd obj-%{gcc_target_platform}
840d93
840d93
%if %{build_libstdcxx_docs}
840d93
840d93
%if 0%{?rhel} < 7
840d93
mkdir doxygen-install
840d93
pushd ../doxygen-%{doxygen_version}
840d93
./configure --prefix `cd ..; pwd`/obj-%{gcc_target_platform}/doxygen-install \
840d93
  --shared --release --english-only
840d93
840d93
make %{?_smp_mflags} all
840d93
make install
840d93
popd
840d93
export PATH=`pwd`/doxygen-install/bin/${PATH:+:${PATH}}
840d93
%endif
840d93
%endif
840d93
840d93
%if 0%{?rhel} < 7
840d93
mkdir mpc mpc-install
840d93
cd mpc
840d93
../../mpc-%{mpc_version}/configure --disable-shared \
840d93
  CFLAGS="${CFLAGS:-%optflags} -fPIC" CXXFLAGS="${CXXFLAGS:-%optflags} -fPIC" \
840d93
  --prefix=`cd ..; pwd`/mpc-install
840d93
make %{?_smp_mflags}
840d93
make install
840d93
cd ..
840d93
%endif
840d93
840d93
%if %{build_isl}
840d93
mkdir isl-build isl-install
840d93
%ifarch s390 s390x
840d93
ISL_FLAG_PIC=-fPIC
840d93
%else
840d93
ISL_FLAG_PIC=-fpic
840d93
%endif
840d93
cd isl-build
840d93
sed -i 's|libisl|libgcc7privateisl|g' \
840d93
  ../../isl-%{isl_version}/Makefile.{am,in}
840d93
../../isl-%{isl_version}/configure \
840d93
  CC=/usr/bin/gcc CXX=/usr/bin/g++ \
840d93
  CFLAGS="${CFLAGS:-%optflags} $ISL_FLAG_PIC" --prefix=`cd ..; pwd`/isl-install
840d93
make %{?_smp_mflags}
840d93
make install
840d93
cd ../isl-install/lib
840d93
rm libgcc7privateisl.so{,.15}
840d93
mv libgcc7privateisl.so.15.1.1 libisl.so.15
840d93
ln -sf libisl.so.15 libisl.so
840d93
cd ../..
840d93
%endif
840d93
840d93
%{?scl:PATH=%{_bindir}${PATH:+:${PATH}}}
840d93
840d93
CC=gcc
840d93
CXX=g++
840d93
OPT_FLAGS=`echo %{optflags}|sed -e 's/\(-Wp,\)\?-D_FORTIFY_SOURCE=[12]//g'`
840d93
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-m64//g;s/-m32//g;s/-m31//g'`
840d93
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mfpmath=sse/-mfpmath=sse -msse2/g'`
840d93
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/ -pipe / /g'`
840d93
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-Werror=format-security/-Wformat-security/g'`
840d93
%ifarch sparc
840d93
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mcpu=ultrasparc/-mtune=ultrasparc/g;s/-mcpu=v[78]//g'`
840d93
%endif
840d93
%ifarch %{ix86}
840d93
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-march=i.86//g'`
840d93
%endif
840d93
OPT_FLAGS=`echo "$OPT_FLAGS" | sed -e 's/[[:blank:]]\+/ /g'`
840d93
case "$OPT_FLAGS" in
840d93
  *-fasynchronous-unwind-tables*)
840d93
    sed -i -e 's/-fno-exceptions /-fno-exceptions -fno-asynchronous-unwind-tables /' \
840d93
      ../libgcc/Makefile.in
840d93
    ;;
840d93
esac
840d93
CONFIGURE_OPTS="\
840d93
	--prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
840d93
	--with-bugurl=http://bugzilla.redhat.com/bugzilla \
840d93
	--enable-shared --enable-threads=posix --enable-checking=release \
840d93
%ifarch ppc64le
840d93
	--enable-targets=powerpcle-linux \
840d93
%endif
840d93
%ifarch ppc64le %{mips} riscv64 s390x
840d93
	--disable-multilib \
840d93
%else
840d93
	--enable-multilib \
840d93
%endif
840d93
	--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions \
840d93
	--enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only \
840d93
%ifnarch %{mips}
840d93
	--with-linker-hash-style=gnu \
840d93
%endif
840d93
%if 0%{?rhel} <= 7
840d93
	--with-default-libstdcxx-abi=gcc4-compatible \
840d93
%endif
840d93
	--enable-plugin --enable-initfini-array \
840d93
%if %{build_isl}
840d93
	--with-isl=`pwd`/isl-install \
840d93
%else
840d93
	--without-isl \
ac4b94
%if %{build_offload_nvptx}
ac4b94
	--enable-offload-targets=nvptx-none \
ac4b94
	--without-cuda-driver \
ac4b94
%endif
840d93
%endif
840d93
	--disable-libmpx \
840d93
%if 0%{?rhel} < 7
840d93
	--with-mpc=`pwd`/mpc-install \
840d93
%endif
840d93
%if 0%{?fedora} >= 21 || 0%{?rhel} >= 7
840d93
%if %{attr_ifunc}
840d93
	--enable-gnu-indirect-function \
840d93
%endif
840d93
%endif
840d93
%ifarch %{arm}
840d93
	--disable-sjlj-exceptions \
840d93
%endif
840d93
%ifarch ppc ppc64 ppc64le ppc64p7
840d93
	--enable-secureplt \
840d93
%endif
840d93
%ifarch sparc sparcv9 sparc64 ppc ppc64 ppc64le ppc64p7 s390 s390x alpha
840d93
	--with-long-double-128 \
840d93
%endif
840d93
%ifarch sparc
840d93
	--disable-linux-futex \
840d93
%endif
840d93
%ifarch sparc64
840d93
	--with-cpu=ultrasparc \
840d93
%endif
840d93
%ifarch sparc sparcv9
840d93
	--host=%{gcc_target_platform} --build=%{gcc_target_platform} --target=%{gcc_target_platform} --with-cpu=v7
840d93
%endif
840d93
%ifarch ppc ppc64 ppc64p7
840d93
%if 0%{?rhel} >= 7
840d93
	--with-cpu-32=power7 --with-tune-32=power7 --with-cpu-64=power7 --with-tune-64=power7 \
840d93
%endif
840d93
%if 0%{?rhel} == 6
840d93
	--with-cpu-32=power4 --with-tune-32=power6 --with-cpu-64=power4 --with-tune-64=power6 \
840d93
%endif
840d93
%endif
840d93
%ifarch ppc64le
840d93
	--with-cpu-32=power8 --with-tune-32=power8 --with-cpu-64=power8 --with-tune-64=power8 \
840d93
%endif
840d93
%ifarch ppc
840d93
	--build=%{gcc_target_platform} --target=%{gcc_target_platform} --with-cpu=default32
840d93
%endif
840d93
%ifarch %{ix86} x86_64
840d93
	--with-tune=generic \
840d93
%endif
840d93
%if 0%{?rhel} >= 7
840d93
%ifarch %{ix86}
840d93
	--with-arch=x86-64 \
840d93
%endif
840d93
%ifarch x86_64
840d93
	--with-arch_32=x86-64 \
840d93
%endif
840d93
%else
840d93
%ifarch %{ix86}
840d93
	--with-arch=i686 \
840d93
%endif
840d93
%ifarch x86_64
840d93
	--with-arch_32=i686 \
840d93
%endif
840d93
%endif
840d93
%ifarch s390 s390x
840d93
%if 0%{?rhel} >= 7
840d93
%if 0%{?rhel} > 7
840d93
	--with-arch=z13 --with-tune=z14 \
840d93
%else
840d93
	--with-arch=z196 --with-tune=zEC12 \
840d93
%endif
840d93
%else
840d93
%if 0%{?fedora} >= 26
840d93
	--with-arch=zEC12 --with-tune=z13 \
840d93
%else
840d93
	--with-arch=z9-109 --with-tune=z10 \
840d93
%endif
840d93
%endif
840d93
	--enable-decimal-float \
840d93
%endif
840d93
%ifarch armv7hl
840d93
	--with-tune=generic-armv7-a --with-arch=armv7-a \
840d93
	--with-float=hard --with-fpu=vfpv3-d16 --with-abi=aapcs-linux \
840d93
%endif
840d93
%ifarch mips mipsel
840d93
	--with-arch=mips32r2 --with-fp-32=xx \
840d93
%endif
840d93
%ifarch mips64 mips64el
840d93
	--with-arch=mips64r2 --with-abi=64 \
840d93
%endif
840d93
%ifnarch sparc sparcv9 ppc
840d93
	--build=%{gcc_target_platform} \
840d93
%endif
840d93
	"
840d93
840d93
CC="$CC" CXX="$CXX" CFLAGS="$OPT_FLAGS" \
840d93
	CXXFLAGS="`echo " $OPT_FLAGS " | sed 's/ -Wall / /g;s/ -fexceptions / /g' \
840d93
		  | sed 's/ -Wformat-security / -Wformat -Wformat-security /'`" \
840d93
	XCFLAGS="$OPT_FLAGS" TCFLAGS="$OPT_FLAGS" \
840d93
	../configure --enable-bootstrap \
840d93
	--enable-languages=c,c++,fortran,lto \
840d93
	$CONFIGURE_OPTS
840d93
840d93
%ifarch sparc sparcv9 sparc64
840d93
make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" bootstrap
840d93
%else
840d93
make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" profiledbootstrap
840d93
%endif
840d93
840d93
%if 0%{?rhel} <= 8
840d93
echo '/* GNU ld script
840d93
   Use the shared library, but some functions are only in
840d93
   the static library, so try that secondarily.  */
840d93
%{oformat}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libstdc++.so.6 -lstdc++_nonshared%{nonsharedver} )' \
840d93
  > %{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++_system.so
840d93
840d93
# Relink libcc1 against -lstdc++_nonshared:
840d93
sed -i -e '/^postdeps/s/-lstdc++/-lstdc++_system/' libcc1/libtool
840d93
rm -f libcc1/libcc1.la
840d93
make -C libcc1 libcc1.la
840d93
%endif
840d93
840d93
CC="`%{gcc_target_platform}/libstdc++-v3/scripts/testsuite_flags --build-cc`"
840d93
CXX="`%{gcc_target_platform}/libstdc++-v3/scripts/testsuite_flags --build-cxx` `%{gcc_target_platform}/libstdc++-v3/scripts/testsuite_flags --build-includes`"
840d93
840d93
# Build libgccjit separately, so that normal compiler binaries aren't -fpic
840d93
# unnecessarily.
840d93
mkdir objlibgccjit
840d93
cd objlibgccjit
840d93
CC="$CC" CXX="$CXX" CFLAGS="$OPT_FLAGS" \
840d93
	CXXFLAGS="`echo " $OPT_FLAGS " | sed 's/ -Wall / /g;s/ -fexceptions / /g' \
840d93
		  | sed 's/ -Wformat-security / -Wformat -Wformat-security /'`" \
840d93
	XCFLAGS="$OPT_FLAGS" TCFLAGS="$OPT_FLAGS" \
840d93
	../../configure --disable-bootstrap --enable-host-shared \
840d93
	--enable-languages=jit $CONFIGURE_OPTS
840d93
make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" all-gcc
840d93
cp -a gcc/libgccjit.so* ../gcc/
840d93
cd ../gcc/
840d93
ln -sf xgcc %{gcc_target_platform}-gcc-%{gcc_major}
840d93
cp -a Makefile{,.orig}
840d93
sed -i -e '/^CHECK_TARGETS/s/$/ check-jit/' Makefile
840d93
touch -r Makefile.orig Makefile
840d93
rm Makefile.orig
840d93
make jit.sphinx.html
840d93
make jit.sphinx.install-html jit_htmldir=`pwd`/../../rpm.doc/libgccjit-devel/html
840d93
cd ..
840d93
840d93
%if %{build_isl}
840d93
cp -a isl-install/lib/libisl.so.15 gcc/
840d93
%endif
840d93
840d93
# Make generated man pages even if Pod::Man is not new enough
840d93
perl -pi -e 's/head3/head2/' ../contrib/texi2pod.pl
840d93
for i in ../gcc/doc/*.texi; do
840d93
  cp -a $i $i.orig; sed 's/ftable/table/' $i.orig > $i
840d93
done
840d93
make -C gcc generated-manpages
840d93
for i in ../gcc/doc/*.texi; do mv -f $i.orig $i; done
840d93
840d93
# Make generated doxygen pages.
840d93
%if %{build_libstdcxx_docs}
840d93
cd %{gcc_target_platform}/libstdc++-v3
840d93
make doc-html-doxygen
840d93
make doc-man-doxygen
840d93
cd ../..
840d93
%endif
840d93
840d93
# Copy various doc files here and there
840d93
cd ..
840d93
mkdir -p rpm.doc/gfortran rpm.doc/libquadmath rpm.doc/libitm
840d93
mkdir -p rpm.doc/changelogs/{gcc/cp,gcc/jit,libstdc++-v3,libgomp,libcc1,libatomic,libsanitizer}
840d93
840d93
for i in {gcc,gcc/cp,gcc/jit,libstdc++-v3,libgomp,libcc1,libatomic,libsanitizer}/ChangeLog*; do
840d93
	cp -p $i rpm.doc/changelogs/$i
840d93
done
840d93
840d93
(cd gcc/fortran; for i in ChangeLog*; do
840d93
	cp -p $i ../../rpm.doc/gfortran/$i
840d93
done)
840d93
(cd libgfortran; for i in ChangeLog*; do
840d93
	cp -p $i ../rpm.doc/gfortran/$i.libgfortran
840d93
done)
840d93
%if %{build_libquadmath}
840d93
(cd libquadmath; for i in ChangeLog* COPYING.LIB; do
840d93
	cp -p $i ../rpm.doc/libquadmath/$i.libquadmath
840d93
done)
840d93
%endif
840d93
%if %{build_libitm}
840d93
(cd libitm; for i in ChangeLog*; do
840d93
	cp -p $i ../rpm.doc/libitm/$i.libitm
840d93
done)
840d93
%endif
840d93
840d93
rm -f rpm.doc/changelogs/gcc/ChangeLog.[1-9]
840d93
find rpm.doc -name \*ChangeLog\* | xargs bzip2 -9
840d93
840d93
# Test the nonshared bits.
840d93
mkdir libstdc++_compat_test
840d93
cd libstdc++_compat_test
840d93
readelf -Ws %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libstdc++.so.6 | sed -n '/\.symtab/,$d;/ UND /d;/@GLIBC_PRIVATE/d;/\(GLOBAL\|WEAK\|UNIQUE\)/p' | awk '{ if ($4 == "OBJECT") { printf "%s %s %s %s %s\n", $8, $4, $5, $6, $3 } else { printf "%s %s %s %s\n", $8, $4, $5, $6 }}' | sed 's/ UNIQUE / GLOBAL /;s/ WEAK / GLOBAL /;s/@@GLIBCXX_[0-9.]*//;s/@@CXXABI_TM_[0-9.]*//;s/@@CXXABI_FLOAT128//;s/@@CXXABI_[0-9.]*//' | LC_ALL=C sort -u > system.abilist
840d93
readelf -Ws ../obj-%{gcc_target_platform}/%{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++.so.6 | sed -n '/\.symtab/,$d;/ UND /d;/@GLIBC_PRIVATE/d;/\(GLOBAL\|WEAK\|UNIQUE\)/p' | awk '{ if ($4 == "OBJECT") { printf "%s %s %s %s %s\n", $8, $4, $5, $6, $3 } else { printf "%s %s %s %s\n", $8, $4, $5, $6 }}' | sed 's/ UNIQUE / GLOBAL /;s/ WEAK / GLOBAL /;s/@@GLIBCXX_[0-9.]*//;s/@@CXXABI_TM_[0-9.]*//;s/@@CXXABI_FLOAT128//;s/@@CXXABI_[0-9.]*//' | LC_ALL=C sort -u > vanilla.abilist
840d93
diff -up system.abilist vanilla.abilist | awk '/^\+\+\+/{next}/^\+/{print gensub(/^+(.*)$/,"\\1","1",$0)}' > system2vanilla.abilist.diff
840d93
../obj-%{gcc_target_platform}/gcc/xgcc -B ../obj-%{gcc_target_platform}/gcc/ -shared -o libstdc++_nonshared.so -Wl,--whole-archive ../obj-%{gcc_target_platform}/%{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++_nonshared%{nonsharedver}.a -Wl,--no-whole-archive %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libstdc++.so.6
840d93
readelf -Ws libstdc++_nonshared.so | sed -n '/\.symtab/,$d;/ UND /d;/@GLIBC_PRIVATE/d;/\(GLOBAL\|WEAK\|UNIQUE\)/p' | awk '{ if ($4 == "OBJECT") { printf "%s %s %s %s %s\n", $8, $4, $5, $6, $3 } else { printf "%s %s %s %s\n", $8, $4, $5, $6 }}' | sed 's/ UNIQUE / GLOBAL /;s/ WEAK / GLOBAL /;s/@@GLIBCXX_[0-9.]*//;s/@@CXXABI_TM_[0-9.]*//;s/@@CXXABI_FLOAT128//;s/@@CXXABI_[0-9.]*//' | LC_ALL=C sort -u > nonshared.abilist
840d93
echo ====================NONSHARED=========================
840d93
ldd -d -r ./libstdc++_nonshared.so || :
840d93
ldd -u ./libstdc++_nonshared.so || :
840d93
diff -up system2vanilla.abilist.diff nonshared.abilist || :
840d93
readelf -Ws ../obj-%{gcc_target_platform}/%{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++_nonshared%{nonsharedver}.a | grep HIDDEN.*UND | grep -v __dso_handle || :
840d93
echo ====================NONSHARED END=====================
840d93
rm -f libstdc++_nonshared.so
840d93
cd ..
840d93
840d93
%install
840d93
rm -rf %{buildroot}
840d93
ac4b94
%if %{build_offload_nvptx}
ac4b94
cd nvptx-tools-%{nvptx_tools_gitrev}
ac4b94
cd obj-%{gcc_target_platform}
ac4b94
make install prefix=%{buildroot}%{_prefix}
ac4b94
cd ../..
ac4b94
ac4b94
ln -sf nvptx-newlib-%{nvptx_newlib_gitrev}/newlib newlib
ac4b94
cd obj-offload-nvptx-none
ac4b94
make prefix=%{buildroot}%{_prefix} mandir=%{buildroot}%{_mandir} \
ac4b94
  infodir=%{buildroot}%{_infodir} install
ac4b94
rm -rf %{buildroot}%{_prefix}/libexec/gcc/nvptx-none/%{gcc_major}/install-tools
ac4b94
rm -rf %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/accel/nvptx-none/{install-tools,plugin,cc1,cc1plus,f951}
ac4b94
rm -rf %{buildroot}%{_infodir} %{buildroot}%{_mandir}/man7 %{buildroot}%{_prefix}/share/locale
ac4b94
rm -rf %{buildroot}%{_prefix}/lib/gcc/nvptx-none/%{gcc_major}/{install-tools,plugin}
ac4b94
rm -rf %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel/nvptx-none/{install-tools,plugin,include-fixed}
ac4b94
rm -rf %{buildroot}%{_prefix}/%{_lib}/libc[cp]1*
ac4b94
mv -f %{buildroot}%{_prefix}/nvptx-none/lib/*.{a,spec} %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel/nvptx-none/
ac4b94
mv -f %{buildroot}%{_prefix}/nvptx-none/lib/mgomp/*.{a,spec} %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel/nvptx-none/mgomp/
ac4b94
mv -f %{buildroot}%{_prefix}/lib/gcc/nvptx-none/%{gcc_major}/*.a %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel/nvptx-none/
ac4b94
mv -f %{buildroot}%{_prefix}/lib/gcc/nvptx-none/%{gcc_major}/mgomp/*.a %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel/nvptx-none/mgomp/
ac4b94
find %{buildroot}%{_prefix}/lib/gcc/nvptx-none %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel/nvptx-none \
ac4b94
     %{buildroot}%{_prefix}/nvptx-none/lib -name \*.la | xargs rm
ac4b94
cd ..
ac4b94
rm -f newlib
ac4b94
%endif
ac4b94
840d93
%if %{build_libstdcxx_docs}
840d93
%if 0%{?rhel} < 7
840d93
export PATH=`pwd`/obj-%{gcc_target_platform}/doxygen-install/bin/${PATH:+:${PATH}}
840d93
%endif
840d93
%endif
840d93
840d93
%{?scl:PATH=%{_bindir}${PATH:+:${PATH}}}
840d93
# Also set LD_LIBRARY_PATH so that DTS eu-strip (called from find-debuginfo.sh)
840d93
# can find the libraries it needs.
840d93
%{?scl:export LD_LIBRARY_PATH=%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}}
840d93
840d93
perl -pi -e \
840d93
  's~href="l(ibstdc|atest)~href="http://gcc.gnu.org/onlinedocs/libstdc++/l\1~' \
840d93
  libstdc++-v3/doc/html/api.html
840d93
840d93
cd obj-%{gcc_target_platform}
840d93
840d93
TARGET_PLATFORM=%{gcc_target_platform}
840d93
840d93
# There are some MP bugs in libstdc++ Makefiles
840d93
make -C %{gcc_target_platform}/libstdc++-v3
840d93
840d93
%if 0%{?scl:1}
840d93
rm -f gcc/libgcc_s.so
840d93
echo '/* GNU ld script
840d93
   Use the shared library, but some functions are only in
840d93
   the static library, so try that secondarily.  */
840d93
%{oformat}
840d93
GROUP ( /%{_lib}/libgcc_s.so.1 libgcc.a )' > gcc/libgcc_s.so
840d93
%endif
840d93
840d93
make prefix=%{buildroot}%{_prefix} mandir=%{buildroot}%{_mandir} \
840d93
  infodir=%{buildroot}%{_infodir} install
840d93
840d93
%if 0%{?scl:1}
840d93
rm -f gcc/libgcc_s.so
840d93
ln -sf libgcc_s.so.1 gcc/libgcc_s.so
840d93
%endif
840d93
840d93
FULLPATH=%{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
840d93
FULLEPATH=%{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
840d93
840d93
%if 0%{?scl:1}
840d93
ln -sf ../../../../bin/ar $FULLEPATH/ar
840d93
ln -sf ../../../../bin/as $FULLEPATH/as
840d93
ln -sf ../../../../bin/ld $FULLEPATH/ld
840d93
ln -sf ../../../../bin/ld.bfd $FULLEPATH/ld.bfd
840d93
ln -sf ../../../../bin/ld.gold $FULLEPATH/ld.gold
840d93
ln -sf ../../../../bin/nm $FULLEPATH/nm
840d93
ln -sf ../../../../bin/objcopy $FULLEPATH/objcopy
840d93
ln -sf ../../../../bin/ranlib $FULLEPATH/ranlib
840d93
ln -sf ../../../../bin/strip $FULLEPATH/strip
840d93
%endif
840d93
840d93
%if %{build_isl}
840d93
cp -a isl-install/lib/libisl.so.15 $FULLPATH/
840d93
%endif
840d93
840d93
# fix some things
840d93
ln -sf gcc %{buildroot}%{_prefix}/bin/cc
840d93
mkdir -p %{buildroot}/lib
840d93
ln -sf ..%{_prefix}/bin/cpp %{buildroot}/lib/cpp
840d93
ln -sf gfortran %{buildroot}%{_prefix}/bin/f95
840d93
rm -f %{buildroot}%{_infodir}/dir
840d93
gzip -9 %{buildroot}%{_infodir}/*.info*
840d93
ln -sf gcc %{buildroot}%{_prefix}/bin/gnatgcc
840d93
840d93
cxxconfig="`find %{gcc_target_platform}/libstdc++-v3/include -name c++config.h`"
840d93
for i in `find %{gcc_target_platform}/[36]*/libstdc++-v3/include -name c++config.h 2>/dev/null`; do
840d93
  if ! diff -up $cxxconfig $i; then
840d93
    cat > %{buildroot}%{_prefix}/include/c++/%{gcc_major}/%{gcc_target_platform}/bits/c++config.h <
840d93
#ifndef _CPP_CPPCONFIG_WRAPPER
840d93
#define _CPP_CPPCONFIG_WRAPPER 1
840d93
#include <bits/wordsize.h>
840d93
#if __WORDSIZE == 32
840d93
%ifarch %{multilib_64_archs}
840d93
`cat $(find %{gcc_target_platform}/32/libstdc++-v3/include -name c++config.h)`
840d93
%else
840d93
`cat $(find %{gcc_target_platform}/libstdc++-v3/include -name c++config.h)`
840d93
%endif
840d93
#else
840d93
%ifarch %{multilib_64_archs}
840d93
`cat $(find %{gcc_target_platform}/libstdc++-v3/include -name c++config.h)`
840d93
%else
840d93
`cat $(find %{gcc_target_platform}/64/libstdc++-v3/include -name c++config.h)`
840d93
%endif
840d93
#endif
840d93
#endif
840d93
EOF
840d93
    break
840d93
  fi
840d93
done
840d93
840d93
for f in `find %{buildroot}%{_prefix}/include/c++/%{gcc_major}/%{gcc_target_platform}/ -name c++config.h`; do
840d93
  for i in 1 2 4 8; do
840d93
    sed -i -e 's/#define _GLIBCXX_ATOMIC_BUILTINS_'$i' 1/#ifdef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_'$i'\
840d93
&\
840d93
#endif/' $f
840d93
  done
840d93
%if 0%{?rhel} <= 7
840d93
  # Force the old ABI unconditionally, the new one does not work in the
840d93
  # libstdc++_nonshared.a model against RHEL 6/7 libstdc++.so.6.
840d93
  sed -i -e 's/\(define[[:blank:]]*_GLIBCXX_USE_DUAL_ABI[[:blank:]]*\)1/\10/' $f
840d93
%endif
840d93
done
840d93
840d93
# Nuke bits/*.h.gch dirs
840d93
# 1) there is no bits/*.h header installed, so when gch file can't be
840d93
#    used, compilation fails
840d93
# 2) sometimes it is hard to match the exact options used for building
840d93
#    libstdc++-v3 or they aren't desirable
840d93
# 3) there are multilib issues, conflicts etc. with this
840d93
# 4) it is huge
840d93
# People can always precompile on their own whatever they want, but
840d93
# shipping this for everybody is unnecessary.
840d93
rm -rf %{buildroot}%{_prefix}/include/c++/%{gcc_major}/%{gcc_target_platform}/bits/*.h.gch
840d93
840d93
%if %{build_libstdcxx_docs}
840d93
libstdcxx_doc_builddir=%{gcc_target_platform}/libstdc++-v3/doc/doxygen
840d93
mkdir -p ../rpm.doc/libstdc++-v3
840d93
cp -r -p ../libstdc++-v3/doc/html ../rpm.doc/libstdc++-v3/html
840d93
cp -r -p $libstdcxx_doc_builddir/html ../rpm.doc/libstdc++-v3/html/api
840d93
mkdir -p %{buildroot}%{_mandir}/man3
840d93
cp -r -p $libstdcxx_doc_builddir/man/man3/* %{buildroot}%{_mandir}/man3/
840d93
find ../rpm.doc/libstdc++-v3 -name \*~ | xargs rm
840d93
%endif
840d93
840d93
%ifarch sparcv9 sparc64
840d93
ln -f %{buildroot}%{_prefix}/bin/%{gcc_target_platform}-gcc \
840d93
  %{buildroot}%{_prefix}/bin/sparc-%{_vendor}-%{_target_os}%{?_gnu}-gcc
840d93
%endif
840d93
%ifarch ppc ppc64 ppc64p7
840d93
ln -f %{buildroot}%{_prefix}/bin/%{gcc_target_platform}-gcc \
840d93
  %{buildroot}%{_prefix}/bin/ppc-%{_vendor}-%{_target_os}%{?_gnu}-gcc
840d93
%endif
840d93
840d93
%ifarch sparcv9 ppc
840d93
FULLLPATH=$FULLPATH/lib32
840d93
%endif
840d93
%ifarch sparc64 ppc64 ppc64p7
840d93
FULLLPATH=$FULLPATH/lib64
840d93
%endif
840d93
if [ -n "$FULLLPATH" ]; then
840d93
  mkdir -p $FULLLPATH
840d93
else
840d93
  FULLLPATH=$FULLPATH
840d93
fi
840d93
840d93
find %{buildroot} -name \*.la | xargs rm -f
840d93
840d93
mv -f %{buildroot}%{_prefix}/%{_lib}/libgfortran.spec $FULLPATH/libgfortran.spec
840d93
%if %{build_libitm}
840d93
mv %{buildroot}%{_prefix}/%{_lib}/libitm.spec $FULLPATH/
840d93
%endif
840d93
%if %{build_libasan}
840d93
mv %{buildroot}%{_prefix}/%{_lib}/libsanitizer.spec $FULLPATH/
840d93
%endif
840d93
840d93
mkdir -p %{buildroot}/%{_lib}
840d93
mv -f %{buildroot}%{_prefix}/%{_lib}/libgcc_s.so.1 %{buildroot}/%{_lib}/libgcc_s-%{gcc_major}-%{DATE}.so.1
840d93
chmod 755 %{buildroot}/%{_lib}/libgcc_s-%{gcc_major}-%{DATE}.so.1
840d93
ln -sf libgcc_s-%{gcc_major}-%{DATE}.so.1 %{buildroot}/%{_lib}/libgcc_s.so.1
840d93
ln -sf /%{_lib}/libgcc_s.so.1 $FULLPATH/libgcc_s.so
840d93
%ifarch sparcv9 ppc
840d93
ln -sf /lib64/libgcc_s.so.1 $FULLPATH/64/libgcc_s.so
840d93
%endif
840d93
%ifarch %{multilib_64_archs}
840d93
ln -sf /lib/libgcc_s.so.1 $FULLPATH/32/libgcc_s.so
840d93
%endif
840d93
840d93
rm -f $FULLPATH/libgcc_s.so
840d93
echo '/* GNU ld script
840d93
   Use the shared library, but some functions are only in
840d93
   the static library, so try that secondarily.  */
840d93
%{oformat}
840d93
GROUP ( /%{_lib}/libgcc_s.so.1 libgcc.a )' > $FULLPATH/libgcc_s.so
840d93
%ifarch sparcv9 ppc
840d93
rm -f $FULLPATH/64/libgcc_s.so
840d93
echo '/* GNU ld script
840d93
   Use the shared library, but some functions are only in
840d93
   the static library, so try that secondarily.  */
840d93
%{oformat2}
840d93
GROUP ( /lib64/libgcc_s.so.1 libgcc.a )' > $FULLPATH/64/libgcc_s.so
840d93
%endif
840d93
%ifarch %{multilib_64_archs}
840d93
rm -f $FULLPATH/32/libgcc_s.so
840d93
echo '/* GNU ld script
840d93
   Use the shared library, but some functions are only in
840d93
   the static library, so try that secondarily.  */
840d93
%{oformat2}
840d93
GROUP ( /lib/libgcc_s.so.1 libgcc.a )' > $FULLPATH/32/libgcc_s.so
840d93
%endif
840d93
840d93
mv -f %{buildroot}%{_prefix}/%{_lib}/libgomp.spec $FULLPATH/
840d93
cp -a %{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++_nonshared%{nonsharedver}.a \
840d93
  $FULLLPATH/libstdc++_nonshared.a
840d93
840d93
rm -f $FULLEPATH/libgccjit.so
840d93
mkdir -p %{buildroot}%{_prefix}/%{_lib}/
840d93
cp -a objlibgccjit/gcc/libgccjit.so.* %{buildroot}%{_prefix}/%{_lib}/
840d93
rm -f $FULLPATH/libgccjit.so
840d93
echo '/* GNU ld script */
840d93
%{oformat}
840d93
INPUT ( %{_prefix}/%{_lib}/libgccjit.so.0 )' > $FULLPATH/libgccjit.so
840d93
cp -a ../gcc/jit/libgccjit*.h $FULLPATH/include/
840d93
/usr/bin/install -c -m 644 objlibgccjit/gcc/doc/libgccjit.info %{buildroot}/%{_infodir}/
840d93
gzip -9 %{buildroot}/%{_infodir}/libgccjit.info
840d93
840d93
840d93
pushd $FULLPATH
840d93
echo '/* GNU ld script */
840d93
%{oformat}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libgomp.so.1 )' > libgomp.so
840d93
%if 0%{?rhel} <= 8
840d93
echo '/* GNU ld script
840d93
   Use the shared library, but some functions are only in
840d93
   the static library, so try that secondarily.  */
840d93
%{oformat}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libstdc++.so.6 -lstdc++_nonshared )' > libstdc++.so
840d93
%else
840d93
echo '%{oformat}
840d93
INPUT ( %{_root_prefix}/%{_lib}/libstdc++.so.6 )' > libstdc++.so
840d93
%endif
840d93
rm -f libgfortran.so
840d93
echo '/* GNU ld script
840d93
   Use the shared library, but some functions are only in
840d93
   the static library, so try that secondarily.  */
840d93
%{oformat}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libgfortran.so.5 )' > libgfortran.so
840d93
%if %{build_libquadmath}
840d93
rm -f libquadmath.so
840d93
echo '/* GNU ld script */
840d93
%{oformat}
840d93
%if 0%{!?scl:1}
840d93
INPUT ( %{_prefix}/%{_lib}/libquadmath.so.0 )' > libquadmath.so
840d93
%else
840d93
%if 0%{?rhel} >= 7
840d93
INPUT ( %{_root_prefix}/%{_lib}/libquadmath.so.0 )' > libquadmath.so
840d93
%else
840d93
INPUT ( libquadmath.a )' > libquadmath.so
840d93
%endif
840d93
%endif
840d93
%endif
840d93
%if %{build_libitm}
840d93
rm -f libitm.so
840d93
echo '/* GNU ld script */
840d93
%{oformat}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libitm.so.1 )' > libitm.so
840d93
%endif
840d93
%if %{build_libatomic}
840d93
rm -f libatomic.so
840d93
echo '/* GNU ld script */
840d93
%{oformat}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libatomic.so.1 )' > libatomic.so
840d93
%endif
840d93
%if %{build_libasan}
840d93
rm -f libasan.so
840d93
echo '/* GNU ld script */
840d93
%{oformat}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libasan.so.5 )' > libasan.so
840d93
%endif
840d93
%if %{build_libtsan}
840d93
rm -f libtsan.so
840d93
echo '/* GNU ld script */
840d93
%{oformat}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libtsan.so.0 )' > libtsan.so
840d93
%endif
840d93
%if %{build_libubsan}
840d93
rm -f libubsan.so
840d93
echo '/* GNU ld script */
840d93
%{oformat}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libubsan.so.1 )' > libubsan.so
840d93
%endif
840d93
%if %{build_liblsan}
840d93
rm -f liblsan.so
840d93
echo '/* GNU ld script */
840d93
%{oformat}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/liblsan.so.0 )' > liblsan.so
840d93
%endif
840d93
mv -f %{buildroot}%{_prefix}/%{_lib}/libstdc++.*a $FULLLPATH/
840d93
mv -f %{buildroot}%{_prefix}/%{_lib}/libstdc++fs.*a $FULLLPATH/
840d93
mv -f %{buildroot}%{_prefix}/%{_lib}/libsupc++.*a .
840d93
mv -f %{buildroot}%{_prefix}/%{_lib}/libgfortran.*a .
840d93
mv -f %{buildroot}%{_prefix}/%{_lib}/libgomp.*a .
840d93
%if %{build_libquadmath}
840d93
mv -f %{buildroot}%{_prefix}/%{_lib}/libquadmath.*a $FULLLPATH/
840d93
%endif
840d93
%if %{build_libitm}
840d93
mv -f %{buildroot}%{_prefix}/%{_lib}/libitm.*a $FULLLPATH/
840d93
%endif
840d93
%if %{build_libatomic}
840d93
mv -f %{buildroot}%{_prefix}/%{_lib}/libatomic.*a $FULLLPATH/
840d93
%endif
840d93
%if %{build_libasan}
840d93
mv -f %{buildroot}%{_prefix}/%{_lib}/libasan.*a $FULLLPATH/
840d93
mv -f %{buildroot}%{_prefix}/%{_lib}/libasan_preinit.o $FULLLPATH/
840d93
%endif
840d93
%if %{build_libtsan}
840d93
mv -f %{buildroot}%{_prefix}/%{_lib}/libtsan.*a $FULLPATH/
840d93
mv -f %{buildroot}%{_prefix}/%{_lib}/libtsan_preinit.o $FULLPATH/
840d93
%endif
840d93
%if %{build_libubsan}
840d93
mv -f %{buildroot}%{_prefix}/%{_lib}/libubsan.*a $FULLLPATH/
840d93
%endif
840d93
%if %{build_liblsan}
840d93
mv -f %{buildroot}%{_prefix}/%{_lib}/liblsan.*a $FULLPATH/
840d93
mv -f %{buildroot}%{_prefix}/%{_lib}/liblsan_preinit.o $FULLPATH/
840d93
%endif
840d93
840d93
%ifarch sparcv9 ppc
840d93
%if 0%{?rhel} <= 8
840d93
echo '/* GNU ld script
840d93
   Use the shared library, but some functions are only in
840d93
   the static library, so try that secondarily.  */
840d93
%{oformat2}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib64/libstdc++.so.6 -lstdc++_nonshared )' > 64/libstdc++.so
840d93
%else
840d93
echo '/* GNU ld script
840d93
   Use the shared library, but some functions are only in
840d93
   the static library, so try that secondarily.  */
840d93
%{oformat2}
840d93
INPUT ( %{_root_prefix}/lib64/libstdc++.so.6 )' > 64/libstdc++.so
840d93
%endif
840d93
rm -f 64/libgfortran.so
840d93
echo '/* GNU ld script
840d93
   Use the shared library, but some functions are only in
840d93
   the static library, so try that secondarily.  */
840d93
%{oformat2}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib64/libgfortran.so.5 )' > 64/libgfortran.so
840d93
echo '/* GNU ld script */
840d93
%{oformat2}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib64/libgomp.so.1 )' > 64/libgomp.so
840d93
echo '/* GNU ld script */
840d93
%{oformat2}
840d93
INPUT ( %{_prefix}/lib64/libgccjit.so.0 )' > 64/libgccjit.so
840d93
%if %{build_libquadmath}
840d93
rm -f 64/libquadmath.so
840d93
echo '/* GNU ld script */
840d93
%{oformat2}
840d93
%if 0%{!?scl:1}
840d93
INPUT ( %{_prefix}/lib64/libquadmath.so.0 )' > 64/libquadmath.so
840d93
%else
840d93
%if 0%{?rhel} >= 7
840d93
INPUT ( %{_root_prefix}/lib64/libquadmath.so.0 )' > 64/libquadmath.so
840d93
%else
840d93
INPUT ( libquadmath.a )' > 64/libquadmath.so
840d93
%endif
840d93
%endif
840d93
%endif
840d93
%if %{build_libitm}
840d93
rm -f 64/libitm.so
840d93
echo '/* GNU ld script */
840d93
%{oformat2}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib64/libitm.so.1 )' > 64/libitm.so
840d93
%endif
840d93
%if %{build_libatomic}
840d93
rm -f 64/libatomic.so
840d93
echo '/* GNU ld script */
840d93
%{oformat2}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib64/libatomic.so.1 )' > 64/libatomic.so
840d93
%endif
840d93
%if %{build_libasan}
840d93
rm -f 64/libasan.so
840d93
echo '/* GNU ld script */
840d93
%{oformat2}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib64/libasan.so.5 )' > 64/libasan.so
840d93
%endif
840d93
%if %{build_libubsan}
840d93
rm -f 64/libubsan.so
840d93
echo '/* GNU ld script */
840d93
%{oformat2}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib64/libubsan.so.1 )' > 64/libubsan.so
840d93
%endif
840d93
mv -f %{buildroot}%{_prefix}/lib64/libsupc++.*a 64/
840d93
mv -f %{buildroot}%{_prefix}/lib64/libgfortran.*a 64/
840d93
mv -f %{buildroot}%{_prefix}/lib64/libgomp.*a 64/
840d93
%if %{build_libquadmath}
840d93
mv -f %{buildroot}%{_prefix}/lib64/libquadmath.*a 64/
840d93
%endif
840d93
ln -sf lib32/libstdc++.a libstdc++.a
840d93
ln -sf ../lib64/libstdc++.a 64/libstdc++.a
840d93
ln -sf lib32/libstdc++fs.a libstdc++fs.a
840d93
ln -sf ../lib64/libstdc++fs.a 64/libstdc++fs.a
840d93
ln -sf lib32/libstdc++_nonshared.a libstdc++_nonshared.a
840d93
ln -sf ../lib64/libstdc++_nonshared.a 64/libstdc++_nonshared.a
840d93
%if %{build_libquadmath}
840d93
ln -sf lib32/libquadmath.a libquadmath.a
840d93
ln -sf ../lib64/libquadmath.a 64/libquadmath.a
840d93
%endif
840d93
%if %{build_libitm}
840d93
ln -sf lib32/libitm.a libitm.a
840d93
ln -sf ../lib64/libitm.a 64/libitm.a
840d93
%endif
840d93
%if %{build_libatomic}
840d93
ln -sf lib32/libatomic.a libatomic.a
840d93
ln -sf ../lib64/libatomic.a 64/libatomic.a
840d93
%endif
840d93
%if %{build_libasan}
840d93
ln -sf lib32/libasan.a libasan.a
840d93
ln -sf ../lib64/libasan.a 64/libasan.a
840d93
ln -sf lib32/libasan_preinit.o libasan_preinit.o
840d93
ln -sf ../lib64/libasan_preinit.o 64/libasan_preinit.o
840d93
%endif
840d93
%if %{build_libubsan}
840d93
ln -sf lib32/libubsan.a libubsan.a
840d93
ln -sf ../lib64/libubsan.a 64/libubsan.a
840d93
%endif
840d93
%endif
840d93
%ifarch %{multilib_64_archs}
840d93
mkdir -p 32
840d93
%if 0%{?rhel} <= 8
840d93
echo '/* GNU ld script
840d93
   Use the shared library, but some functions are only in
840d93
   the static library, so try that secondarily.  */
840d93
%{oformat2}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib/libstdc++.so.6 -lstdc++_nonshared )' > 32/libstdc++.so
840d93
%else
840d93
echo '/* GNU ld script
840d93
   Use the shared library, but some functions are only in
840d93
   the static library, so try that secondarily.  */
840d93
%{oformat2}
840d93
INPUT ( %{_root_prefix}/lib/libstdc++.so.6 )' > 32/libstdc++.so
840d93
%endif
840d93
rm -f 32/libgfortran.so
840d93
echo '/* GNU ld script
840d93
   Use the shared library, but some functions are only in
840d93
   the static library, so try that secondarily.  */
840d93
%{oformat2}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib/libgfortran.so.5 )' > 32/libgfortran.so
840d93
echo '/* GNU ld script */
840d93
%{oformat2}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib/libgomp.so.1 )' > 32/libgomp.so
840d93
echo '/* GNU ld script */
840d93
%{oformat2}
840d93
INPUT ( %{_prefix}/lib/libgccjit.so.0 )' > 32/libgccjit.so
840d93
%if %{build_libquadmath}
840d93
rm -f 32/libquadmath.so
840d93
echo '/* GNU ld script */
840d93
%{oformat2}
840d93
%if 0%{!?scl:1}
840d93
INPUT ( %{_prefix}/lib/libquadmath.so.0 )' > 32/libquadmath.so
840d93
%else
840d93
%if 0%{?rhel} >= 7
840d93
INPUT ( %{_root_prefix}/lib/libquadmath.so.0 )' > 32/libquadmath.so
840d93
%else
840d93
INPUT ( libquadmath.a )' > 32/libquadmath.so
840d93
%endif
840d93
%endif
840d93
%endif
840d93
%if %{build_libitm}
840d93
rm -f 32/libitm.so
840d93
echo '/* GNU ld script */
840d93
%{oformat2}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib/libitm.so.1 )' > 32/libitm.so
840d93
%endif
840d93
%if %{build_libatomic}
840d93
rm -f 32/libatomic.so
840d93
echo '/* GNU ld script */
840d93
%{oformat2}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib/libatomic.so.1 )' > 32/libatomic.so
840d93
%endif
840d93
%if %{build_libasan}
840d93
rm -f 32/libasan.so
840d93
echo '/* GNU ld script */
840d93
%{oformat2}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib/libasan.so.5 )' > 32/libasan.so
840d93
%endif
840d93
%if %{build_libubsan}
840d93
rm -f 32/libubsan.so
840d93
echo '/* GNU ld script */
840d93
%{oformat2}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib/libubsan.so.1 )' > 32/libubsan.so
840d93
%endif
840d93
mv -f %{buildroot}%{_prefix}/lib/libsupc++.*a 32/
840d93
mv -f %{buildroot}%{_prefix}/lib/libgfortran.*a 32/
840d93
mv -f %{buildroot}%{_prefix}/lib/libgomp.*a 32/
840d93
%if %{build_libquadmath}
840d93
mv -f %{buildroot}%{_prefix}/lib/libquadmath.*a 32/
840d93
%endif
840d93
%endif
840d93
%ifarch sparc64 ppc64
840d93
ln -sf ../lib32/libstdc++.a 32/libstdc++.a
840d93
ln -sf lib64/libstdc++.a libstdc++.a
840d93
ln -sf ../lib32/libstdc++fs.a 32/libstdc++fs.a
840d93
ln -sf lib64/libstdc++fs.a libstdc++fs.a
840d93
%if 0%{?rhel} <= 8
840d93
ln -sf ../lib32/libstdc++_nonshared.a 32/libstdc++_nonshared.a
840d93
ln -sf lib64/libstdc++_nonshared.a libstdc++_nonshared.a
840d93
%endif
840d93
%if %{build_libquadmath}
840d93
ln -sf ../lib32/libquadmath.a 32/libquadmath.a
840d93
ln -sf lib64/libquadmath.a libquadmath.a
840d93
%endif
840d93
%if %{build_libitm}
840d93
ln -sf ../lib32/libitm.a 32/libitm.a
840d93
ln -sf lib64/libitm.a libitm.a
840d93
%endif
840d93
%if %{build_libatomic}
840d93
ln -sf ../lib32/libatomic.a 32/libatomic.a
840d93
ln -sf lib64/libatomic.a libatomic.a
840d93
%endif
840d93
%if %{build_libasan}
840d93
ln -sf ../lib32/libasan.a 32/libasan.a
840d93
ln -sf lib64/libasan.a libasan.a
840d93
ln -sf ../lib32/libasan_preinit.o 32/libasan_preinit.o
840d93
ln -sf lib64/libasan_preinit.o libasan_preinit.o
840d93
%endif
840d93
%if %{build_libubsan}
840d93
ln -sf ../lib32/libubsan.a 32/libubsan.a
840d93
ln -sf lib64/libubsan.a libubsan.a
840d93
%endif
840d93
%else
840d93
%ifarch %{multilib_64_archs}
840d93
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}/%{gcc_major}/libstdc++.a 32/libstdc++.a
840d93
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}/%{gcc_major}/libstdc++fs.a 32/libstdc++fs.a
840d93
%if 0%{?rhel} <= 8
840d93
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}/%{gcc_major}/libstdc++_nonshared.a 32/libstdc++_nonshared.a
840d93
%endif
840d93
%if %{build_libquadmath}
840d93
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}/%{gcc_major}/libquadmath.a 32/libquadmath.a
840d93
%endif
840d93
%if %{build_libitm}
840d93
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}/%{gcc_major}/libitm.a 32/libitm.a
840d93
%endif
840d93
%if %{build_libatomic}
840d93
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}/%{gcc_major}/libatomic.a 32/libatomic.a
840d93
%endif
840d93
%if %{build_libasan}
840d93
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}/%{gcc_major}/libasan.a 32/libasan.a
840d93
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}/%{gcc_major}/libasan_preinit.o 32/libasan_preinit.o
840d93
%endif
840d93
%if %{build_libubsan}
840d93
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}/%{gcc_major}/libubsan.a 32/libubsan.a
840d93
%endif
840d93
%endif
840d93
%endif
840d93
840d93
# If we are building a debug package then copy all of the static archives
840d93
# into the debug directory to keep them as unstripped copies.
840d93
%if 0%{?_enable_debug_packages}
840d93
mkdir -p $RPM_BUILD_ROOT%{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib/debug%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
840d93
adirs="$FULLPATH"
840d93
if [ $FULLLPATH -ne $FULLPATH ]; then
840d93
  adirs="$adirs $FULLLPATH"
840d93
fi
840d93
for f in `find $adirs -maxdepth 1 -a \
840d93
		 \( -name libgfortran.a -o -name libgomp.a \
840d93
		    -o -name libgcc.a -o -name libgcc_eh.a -o -name libgcov.a \
840d93
		    -o -name libquadmath.a -o -name libitm.a \
840d93
		    -o -name libatomic.a -o -name libasan.a \
840d93
		    -o -name libtsan.a -o -name libubsan.a \
840d93
		    -o -name liblsan.a \
840d93
		    -o -name libcc1.a \
840d93
		    -o -name libstdc++_nonshared.a \
840d93
		    -o -name libsupc++.a \
840d93
		    -o -name libstdc++.a -o -name libcaf_single.a \
840d93
		    -o -name libstdc++fs.a \) -a -type f`; do
840d93
  cp -a $f $RPM_BUILD_ROOT%{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib/debug%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/
840d93
done
840d93
%endif
840d93
840d93
# Strip debug info from Fortran/ObjC/Java static libraries
840d93
strip -g `find . \( -name libgfortran.a  -o -name libgomp.a \
840d93
		    -o -name libgcc.a -o -name libgcov.a \
840d93
		    -o -name libquadmath.a -o -name libitm.a \
840d93
		    -o -name libatomic.a -o -name libasan.a \
840d93
		    -o -name libtsan.a -o -name libubsan.a \
840d93
		    -o -name liblsan.a \
840d93
		    -o -name libcc1.a \) -a -type f`
840d93
popd
840d93
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgfortran.so.5.*
840d93
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgomp.so.1.*
840d93
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libcc1.so.0.*
840d93
%if %{build_libquadmath}
840d93
%if 0%{!?scl:1}
840d93
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libquadmath.so.0.*
840d93
%endif
840d93
%endif
840d93
%if %{build_libitm}
840d93
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libitm.so.1.*
840d93
%if 0%{?scl:1}
840d93
mkdir -p %{buildroot}%{_root_prefix}/%{_lib}/
840d93
mv %{buildroot}%{_prefix}/%{_lib}/libitm.so.1* %{buildroot}%{_root_prefix}/%{_lib}/
840d93
mkdir -p %{buildroot}%{_root_infodir}
840d93
%if 0%{?rhel} <= 7
840d93
mv %{buildroot}%{_infodir}/libitm.info* %{buildroot}%{_root_infodir}/
840d93
%endif
840d93
%endif
840d93
%endif
840d93
%if %{build_libatomic}
840d93
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libatomic.so.1.*
840d93
%if 0%{?scl:1}
840d93
mkdir -p %{buildroot}%{_root_prefix}/%{_lib}/
840d93
mv %{buildroot}%{_prefix}/%{_lib}/libatomic.so.1* %{buildroot}%{_root_prefix}/%{_lib}/
840d93
mkdir -p %{buildroot}%{_root_infodir}
840d93
%endif
840d93
%endif
840d93
%if %{build_libasan}
840d93
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libasan.so.5.*
840d93
%if 0%{?scl:1}
840d93
mkdir -p %{buildroot}%{_root_prefix}/%{_lib}/
840d93
mv %{buildroot}%{_prefix}/%{_lib}/libasan.so.5* %{buildroot}%{_root_prefix}/%{_lib}/
840d93
mkdir -p %{buildroot}%{_root_infodir}
840d93
%endif
840d93
%endif
840d93
%if %{build_libtsan}
840d93
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libtsan.so.0.*
840d93
%if 0%{?scl:1}
840d93
mkdir -p %{buildroot}%{_root_prefix}/%{_lib}/
840d93
mv %{buildroot}%{_prefix}/%{_lib}/libtsan.so.0* %{buildroot}%{_root_prefix}/%{_lib}/
840d93
mkdir -p %{buildroot}%{_root_infodir}
840d93
%endif
840d93
%endif
840d93
%if %{build_libubsan}
840d93
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libubsan.so.1.*
840d93
%if 0%{?scl:1}
840d93
mkdir -p %{buildroot}%{_root_prefix}/%{_lib}/
840d93
mv %{buildroot}%{_prefix}/%{_lib}/libubsan.so.1* %{buildroot}%{_root_prefix}/%{_lib}/
840d93
mkdir -p %{buildroot}%{_root_infodir}
840d93
%endif
840d93
%endif
840d93
%if %{build_liblsan}
840d93
chmod 755 %{buildroot}%{_prefix}/%{_lib}/liblsan.so.0.*
840d93
%if 0%{?scl:1}
840d93
mkdir -p %{buildroot}%{_root_prefix}/%{_lib}/
840d93
mv %{buildroot}%{_prefix}/%{_lib}/liblsan.so.0* %{buildroot}%{_root_prefix}/%{_lib}/
840d93
mkdir -p %{buildroot}%{_root_infodir}
840d93
%endif
840d93
%endif
840d93
840d93
mv $FULLPATH/include-fixed/syslimits.h $FULLPATH/include/syslimits.h
840d93
mv $FULLPATH/include-fixed/limits.h $FULLPATH/include/limits.h
840d93
for h in `find $FULLPATH/include -name \*.h`; do
840d93
  if grep -q 'It has been auto-edited by fixincludes from' $h; then
840d93
    rh=`grep -A2 'It has been auto-edited by fixincludes from' $h | tail -1 | sed 's|^.*"\(.*\)".*$|\1|'`
840d93
    diff -up $rh $h || :
840d93
    rm -f $h
840d93
  fi
840d93
done
840d93
840d93
840d93
cd ..
840d93
840d93
%if 0%{!?scl:1}
840d93
for i in %{buildroot}%{_prefix}/bin/{*gcc,*++,gcov,gfortran,gcc-ar,gcc-nm,gcc-ranlib}; do
840d93
  mv -f $i ${i}5
840d93
done
840d93
%endif
840d93
840d93
# Remove binaries we will not be including, so that they don't end up in
840d93
# gcc-debuginfo
840d93
rm -f %{buildroot}%{_prefix}/%{_lib}/{libffi*,libiberty.a,libmudflap*,libstdc++*,libgfortran*}
840d93
%if 0%{?scl:1}
840d93
rm -f %{buildroot}%{_prefix}/%{_lib}/{libquadmath*,libitm*,libatomic*,libasan*,libtsan*,libubsan*,liblsan*}
840d93
%else
840d93
%if 0%{?rhel} >= 7
840d93
rm -f %{buildroot}%{_prefix}/%{_lib}/{libitm*,libatomic*}
840d93
%endif
840d93
%endif
840d93
rm -f %{buildroot}%{_prefix}/%{_lib}/libgomp*
840d93
rm -f %{buildroot}/%{_lib}/libgcc_s*
840d93
rm -f $FULLEPATH/install-tools/{mkheaders,fixincl}
840d93
rm -f %{buildroot}%{_prefix}/lib/{32,64}/libiberty.a
840d93
rm -f %{buildroot}%{_prefix}/%{_lib}/libssp*
840d93
rm -f %{buildroot}%{_prefix}/%{_lib}/libvtv* || :
840d93
rm -f %{buildroot}/lib/cpp
840d93
rm -f %{buildroot}/%{_lib}/libgcc_s*
840d93
rm -f %{buildroot}%{_prefix}/bin/{f95,gccbug,gnatgcc*}
840d93
rm -f %{buildroot}%{_prefix}/bin/%{gcc_target_platform}-gfortran
840d93
%if 0%{!?scl:1}
840d93
rm -f %{buildroot}%{_prefix}/bin/{*c++*,cc,cpp}
840d93
%endif
840d93
rm -f %{buildroot}%{_prefix}/bin/%{_target_platform}-gfortran || :
840d93
840d93
%ifarch %{multilib_64_archs}
840d93
# Remove libraries for the other arch on multilib arches
840d93
rm -f %{buildroot}%{_prefix}/lib/lib*.so*
840d93
rm -f %{buildroot}%{_prefix}/lib/lib*.a
840d93
rm -f %{buildroot}/lib/libgcc_s*.so*
840d93
%else
840d93
%ifarch sparcv9 ppc
840d93
rm -f %{buildroot}%{_prefix}/lib64/lib*.so*
840d93
rm -f %{buildroot}%{_prefix}/lib64/lib*.a
840d93
rm -f %{buildroot}/lib64/libgcc_s*.so*
840d93
%endif
840d93
%endif
840d93
840d93
%ifnarch sparc64 ppc64
840d93
%ifarch %{multilib_64_archs}
840d93
cat <<\EOF > %{buildroot}%{_prefix}/bin/%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}-gcc-%{gcc_major}
840d93
#!/bin/sh
840d93
%ifarch s390x
840d93
exec %{gcc_target_platform}-gcc-%{gcc_major} -m31 "$@"
840d93
%else
840d93
exec %{gcc_target_platform}-gcc-%{gcc_major} -m32 "$@"
840d93
%endif
840d93
EOF
840d93
chmod 755 %{buildroot}%{_prefix}/bin/%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}-gcc-%{gcc_major}
840d93
%endif
840d93
%endif
840d93
840d93
# Help plugins find out nvra.
840d93
echo gcc-%{version}-%{release}.%{arch} > $FULLPATH/rpmver
840d93
840d93
%check
840d93
cd obj-%{gcc_target_platform}
840d93
840d93
%{?scl:PATH=%{_bindir}${PATH:+:${PATH}}}
840d93
%if 0%{?rhel} <= 8
840d93
# Test against the system libstdc++.so.6 + libstdc++_nonshared.a combo
840d93
mv %{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++.so.6{,.not_here}
840d93
mv %{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++.so{,.not_here}
840d93
ln -sf %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libstdc++.so.6 \
840d93
  %{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++.so.6
840d93
echo '/* GNU ld script
840d93
   Use the shared library, but some functions are only in
840d93
   the static library, so try that secondarily.  */
840d93
%{oformat}
840d93
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libstdc++.so.6 -lstdc++_nonshared )' \
840d93
  > %{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++.so
840d93
cp -a %{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++_nonshared%{nonsharedver}.a \
840d93
  %{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++_nonshared.a
840d93
%endif
840d93
840d93
# run the tests.
840d93
make %{?_smp_mflags} -k check RUNTESTFLAGS="--target_board=unix/'{,-fstack-protector}'" || :
840d93
( LC_ALL=C ../contrib/test_summary -t || : ) 2>&1 | sed -n '/^cat.*EOF/,/^EOF/{/^cat.*EOF/d;/^EOF/d;/^LAST_UPDATED:/d;p;}' > testresults
840d93
rm -rf gcc/testsuite.prev
840d93
mv gcc/testsuite{,.prev}
840d93
rm -f gcc/site.exp
840d93
make %{?_smp_mflags} -C gcc -k check-gcc check-g++ ALT_CC_UNDER_TEST=gcc ALT_CXX_UNDER_TEST=g++ RUNTESTFLAGS="--target_board=unix/'{,-fstack-protector}' compat.exp struct-layout-1.exp" || :
840d93
mv gcc/testsuite/gcc/gcc.sum{,.sent}
840d93
mv gcc/testsuite/g++/g++.sum{,.sent}
840d93
( LC_ALL=C ../contrib/test_summary -o -t || : ) 2>&1 | sed -n '/^cat.*EOF/,/^EOF/{/^cat.*EOF/d;/^EOF/d;/^LAST_UPDATED:/d;p;}' > testresults2
840d93
rm -rf gcc/testsuite.compat
840d93
mv gcc/testsuite{,.compat}
840d93
mv gcc/testsuite{.prev,}
840d93
echo ====================TESTING=========================
840d93
cat testresults
840d93
echo ===`gcc --version | head -1` compatibility tests====
840d93
cat testresults2
840d93
echo ====================TESTING END=====================
840d93
mkdir testlogs-%{_target_platform}-%{version}-%{release}
840d93
for i in `find . -name \*.log | grep -F testsuite/ | grep -v 'config.log\|acats.*/tests/'`; do
840d93
  ln $i testlogs-%{_target_platform}-%{version}-%{release}/ || :
840d93
done
840d93
for i in `find gcc/testsuite.compat -name \*.log | grep -v 'config.log\|acats.*/tests/'`; do
840d93
  ln $i testlogs-%{_target_platform}-%{version}-%{release}/`basename $i`.compat || :
840d93
done
840d93
tar cf - testlogs-%{_target_platform}-%{version}-%{release} | bzip2 -9c \
840d93
  | uuencode testlogs-%{_target_platform}.tar.bz2 || :
840d93
rm -rf testlogs-%{_target_platform}-%{version}-%{release}
840d93
840d93
840d93
%if 0%{?scl:1}
840d93
%post gfortran
840d93
if [ -f %{_infodir}/gfortran.info.gz ]; then
840d93
  /sbin/install-info \
840d93
    --info-dir=%{_infodir} %{_infodir}/gfortran.info.gz || :
840d93
fi
840d93
840d93
%preun gfortran
840d93
if [ $1 = 0 -a -f %{_infodir}/gfortran.info.gz ]; then
840d93
  /sbin/install-info --delete \
840d93
    --info-dir=%{_infodir} %{_infodir}/gfortran.info.gz || :
840d93
fi
840d93
%endif
840d93
840d93
%post gdb-plugin -p /sbin/ldconfig
840d93
840d93
%postun gdb-plugin -p /sbin/ldconfig
840d93
840d93
%post -n %{?scl_prefix}libgccjit -p /sbin/ldconfig
840d93
840d93
%postun -n %{?scl_prefix}libgccjit -p /sbin/ldconfig
840d93
840d93
%post -n %{?scl_prefix}libgccjit-docs
840d93
if [ -f %{_infodir}/libgccjit.info.gz ]; then
840d93
  /sbin/install-info \
840d93
    --info-dir=%{_infodir} %{_infodir}/libgccjit.info.gz || :
840d93
fi
840d93
840d93
%preun -n %{?scl_prefix}libgccjit-docs
840d93
if [ $1 = 0 -a -f %{_infodir}/libgccjit.info.gz ]; then
840d93
  /sbin/install-info --delete \
840d93
    --info-dir=%{_infodir} %{_infodir}/libgccjit.info.gz || :
840d93
fi
840d93
840d93
%post -n libquadmath
840d93
/sbin/ldconfig
840d93
if [ -f %{_infodir}/libquadmath.info.gz ]; then
840d93
  /sbin/install-info \
840d93
    --info-dir=%{_infodir} %{_infodir}/libquadmath.info.gz || :
840d93
fi
840d93
840d93
%preun -n libquadmath
840d93
if [ $1 = 0 -a -f %{_infodir}/libquadmath.info.gz ]; then
840d93
  /sbin/install-info --delete \
840d93
    --info-dir=%{_infodir} %{_infodir}/libquadmath.info.gz || :
840d93
fi
840d93
840d93
%postun -n libquadmath -p /sbin/ldconfig
840d93
840d93
%post -n libitm
840d93
/sbin/ldconfig
840d93
if [ -f %{_infodir}/libitm.info.gz ]; then
840d93
  /sbin/install-info \
840d93
    --info-dir=%{_infodir} %{_infodir}/libitm.info.gz || :
840d93
fi
840d93
840d93
%preun -n libitm
840d93
if [ $1 = 0 -a -f %{_infodir}/libitm.info.gz ]; then
840d93
  /sbin/install-info --delete \
840d93
    --info-dir=%{_infodir} %{_infodir}/libitm.info.gz || :
840d93
fi
840d93
840d93
%postun -n libitm -p /sbin/ldconfig
840d93
840d93
%post -n libatomic -p /sbin/ldconfig
840d93
840d93
%postun -n libatomic -p /sbin/ldconfig
840d93
840d93
%post -n libasan5 -p /sbin/ldconfig
840d93
840d93
%postun -n libasan5 -p /sbin/ldconfig
840d93
840d93
%post -n libtsan -p /sbin/ldconfig
840d93
840d93
%postun -n libtsan -p /sbin/ldconfig
840d93
840d93
%post -n libubsan1 -p /sbin/ldconfig
840d93
840d93
%postun -n libubsan1 -p /sbin/ldconfig
840d93
840d93
%post -n liblsan -p /sbin/ldconfig
840d93
840d93
%postun -n liblsan -p /sbin/ldconfig
840d93
840d93
%files
840d93
%{_prefix}/bin/gcc%{!?scl:5}
840d93
%{_prefix}/bin/gcov%{!?scl:5}
840d93
%{_prefix}/bin/gcov-tool%{!?scl:5}
840d93
%{_prefix}/bin/gcov-dump%{!?scl:5}
840d93
%{_prefix}/bin/gcc-ar%{!?scl:5}
840d93
%{_prefix}/bin/gcc-nm%{!?scl:5}
840d93
%{_prefix}/bin/gcc-ranlib%{!?scl:5}
840d93
%ifarch ppc
840d93
%{_prefix}/bin/%{_target_platform}-gcc%{!?scl:5}
840d93
%endif
840d93
%ifarch sparc64 sparcv9
840d93
%{_prefix}/bin/sparc-%{_vendor}-%{_target_os}%{?_gnu}-gcc%{!?scl:5}
840d93
%endif
840d93
%ifarch ppc64 ppc64p7
840d93
%{_prefix}/bin/ppc-%{_vendor}-%{_target_os}%{?_gnu}-gcc%{!?scl:5}
840d93
%endif
840d93
%{_prefix}/bin/%{gcc_target_platform}-gcc%{!?scl:5}
840d93
%{_prefix}/bin/%{gcc_target_platform}-gcc-%{gcc_major}
840d93
%ifnarch sparc64 ppc64
840d93
%ifarch %{multilib_64_archs}
840d93
%{_prefix}/bin/%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}-gcc-%{gcc_major}
840d93
%endif
840d93
%endif
840d93
%if 0%{?scl:1}
840d93
%{_prefix}/bin/cc
840d93
%{_prefix}/bin/cpp
840d93
%{_mandir}/man1/gcc.1*
840d93
%{_mandir}/man1/cpp.1*
840d93
%{_mandir}/man1/gcov.1*
840d93
%{_mandir}/man1/gcov-tool.1*
840d93
%{_mandir}/man1/gcov-dump.1*
840d93
%{_infodir}/gcc*
840d93
%{_infodir}/cpp*
840d93
%endif
840d93
%dir %{_prefix}/lib/gcc
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
840d93
%dir %{_prefix}/libexec/gcc
840d93
%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}
840d93
%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include
840d93
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/lto1
840d93
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/lto-wrapper
840d93
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/liblto_plugin.so*
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/rpmver
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stddef.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdarg.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdfix.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/varargs.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/float.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/limits.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdbool.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/iso646.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/syslimits.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/unwind.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/omp.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/openacc.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdint.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdint-gcc.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdalign.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdnoreturn.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdatomic.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/gcov.h
840d93
%ifarch %{ix86} x86_64
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mmintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xmmintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/emmintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/pmmintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/tmmintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/ammintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/smmintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/nmmintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/bmmintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/wmmintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/immintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avxintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/x86intrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/fma4intrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xopintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/lwpintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/popcntintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/bmiintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/tbmintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/ia32intrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx2intrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/bmi2intrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/f16cintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/fmaintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/lzcntintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/rtmintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xtestintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/adxintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/prfchwintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/rdseedintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/fxsrintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xsaveintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xsaveoptintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512cdintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512erintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512fintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512pfintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/shaintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mm_malloc.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mm3dnow.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/cpuid.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/cross-stdarg.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512bwintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512dqintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512ifmaintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512ifmavlintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vbmiintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vbmivlintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vlbwintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vldqintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vlintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/clflushoptintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/clwbintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mwaitxintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xsavecintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xsavesintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/clzerointrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/pkuintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx5124fmapsintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx5124vnniwintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vpopcntdqintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/sgxintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/gfniintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/cetintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/cet.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vbmi2intrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vbmi2vlintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vnniintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vnnivlintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/vaesintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/vpclmulqdqintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vpopcntdqvlintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512bitalgintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/pconfigintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/wbnoinvdintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/movdirintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/waitpkgintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/cldemoteintrin.h
840d93
%endif
840d93
%ifarch ia64
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/ia64intrin.h
840d93
%endif
840d93
%ifarch ppc ppc64 ppc64le ppc64p7
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/ppc-asm.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/altivec.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/ppu_intrinsics.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/si2vmx.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/spu2vmx.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/vec_types.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/htmintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/htmxlintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/bmi2intrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/bmiintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xmmintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mm_malloc.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/emmintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mmintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/x86intrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/pmmintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/tmmintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/smmintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amo.h
840d93
%endif
840d93
%ifarch %{arm}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/unwind-arm-common.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mmintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_neon.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_acle.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_cmse.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_fp16.h
840d93
%endif
840d93
%ifarch aarch64
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_neon.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_acle.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_fp16.h
840d93
%endif
840d93
%ifarch sparc sparcv9 sparc64
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/visintrin.h
840d93
%endif
840d93
%ifarch s390 s390x
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/s390intrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/htmintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/htmxlintrin.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/vecintrin.h
840d93
%endif
840d93
%if %{build_libasan}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/sanitizer
840d93
%endif
840d93
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/cc1
840d93
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/collect2
840d93
%if 0%{?scl:1}
840d93
%if 0%{?rhel} <= 7
840d93
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/ar
840d93
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/as
840d93
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/ld
840d93
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/ld.bfd
840d93
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/ld.gold
840d93
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/nm
840d93
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/objcopy
840d93
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/ranlib
840d93
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/strip
840d93
%endif
840d93
%endif
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/crt*.o
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgcc.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgcov.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgcc_eh.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgcc_s.so
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgomp.spec
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgomp.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgomp.so
840d93
%if %{build_libitm}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libitm.spec
840d93
%endif
840d93
%if %{build_libasan}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libsanitizer.spec
840d93
%endif
840d93
%ifarch sparcv9 sparc64 ppc ppc64
840d93
%if %{build_libquadmath}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libquadmath.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libquadmath.so
840d93
%endif
840d93
%endif
840d93
%if %{build_isl}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libisl.so.*
840d93
%endif
840d93
%ifarch sparcv9 ppc
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/crt*.o
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgcc.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgcov.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgcc_eh.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgcc_s.so
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgomp.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgomp.so
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgccjit.so
840d93
%if %{build_libquadmath}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libquadmath.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libquadmath.so
840d93
%endif
840d93
%if %{build_libitm}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libitm.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libitm.so
840d93
%endif
840d93
%if %{build_libatomic}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libatomic.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libatomic.so
840d93
%endif
840d93
%if %{build_libasan}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libasan.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libasan.so
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libasan_preinit.o
840d93
%endif
840d93
%if %{build_libubsan}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libubsan.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libubsan.so
840d93
%endif
840d93
%endif
840d93
%ifarch %{multilib_64_archs}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/crt*.o
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgcc.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgcov.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgcc_eh.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgcc_s.so
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgomp.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgomp.so
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgccjit.so
840d93
%if %{build_libquadmath}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libquadmath.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libquadmath.so
840d93
%endif
840d93
%if %{build_libitm}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libitm.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libitm.so
840d93
%endif
840d93
%if %{build_libatomic}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libatomic.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libatomic.so
840d93
%endif
840d93
%if %{build_libasan}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libasan.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libasan.so
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libasan_preinit.o
840d93
%endif
840d93
%if %{build_libubsan}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libubsan.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libubsan.so
840d93
%endif
840d93
%endif
840d93
%ifarch sparcv9 sparc64 ppc ppc64 ppc64p7
840d93
%if %{build_libquadmath}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libquadmath.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libquadmath.so
840d93
%endif
840d93
%if %{build_libitm}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libitm.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libitm.so
840d93
%endif
840d93
%if %{build_libatomic}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic.so
840d93
%endif
840d93
%if %{build_libasan}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libasan.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libasan.so
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libasan_preinit.o
840d93
%endif
840d93
%if %{build_libubsan}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libubsan.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libubsan.so
840d93
%endif
840d93
%if %{build_libtsan}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libtsan.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libtsan.so
840d93
%endif
840d93
%if %{build_liblsan}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/liblsan.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/liblsan.so
840d93
%endif
840d93
%endif
840d93
%doc gcc/README* rpm.doc/changelogs/gcc/ChangeLog* gcc/COPYING* COPYING.RUNTIME
840d93
840d93
%files c++
840d93
%{_prefix}/bin/%{gcc_target_platform}-g++%{!?scl:5}
840d93
%{_prefix}/bin/g++%{!?scl:5}
840d93
%if 0%{?scl:1}
840d93
%{_prefix}/bin/%{gcc_target_platform}-c++
840d93
%{_prefix}/bin/c++
840d93
%{_mandir}/man1/g++.1*
840d93
%endif
840d93
%dir %{_prefix}/lib/gcc
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
840d93
%dir %{_prefix}/libexec/gcc
840d93
%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}
840d93
%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
840d93
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/cc1plus
840d93
%ifarch sparcv9 ppc
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libstdc++.so
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libstdc++.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libstdc++fs.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libstdc++_nonshared.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libsupc++.a
840d93
%endif
840d93
%ifarch %{multilib_64_archs}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libstdc++.so
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libstdc++.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libstdc++fs.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libstdc++_nonshared.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libsupc++.a
840d93
%endif
840d93
%ifarch sparcv9 ppc %{multilib_64_archs}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++.so
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libsupc++.a
840d93
%endif
840d93
%ifarch sparcv9 sparc64 ppc ppc64
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++fs.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++_nonshared.a
840d93
%endif
840d93
%doc rpm.doc/changelogs/gcc/cp/ChangeLog*
840d93
840d93
%files -n %{?scl_prefix}libstdc++%{!?scl:5}-devel
840d93
%defattr(-,root,root,-)
840d93
%dir %{_prefix}/include/c++
840d93
%{_prefix}/include/c++/%{gcc_major}
840d93
%dir %{_prefix}/lib/gcc
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
840d93
%ifarch sparcv9 ppc
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libstdc++.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libstdc++fs.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libstdc++_nonshared.a
840d93
%endif
840d93
%ifarch sparc64 ppc64
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libstdc++.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libstdc++fs.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libstdc++_nonshared.a
840d93
%endif
840d93
%ifnarch sparcv9 sparc64 ppc ppc64
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++fs.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++_nonshared.a
840d93
%endif
840d93
%ifnarch sparcv9 ppc %{multilib_64_archs}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++.so
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libsupc++.a
840d93
%endif
840d93
%doc rpm.doc/changelogs/libstdc++-v3/ChangeLog* libstdc++-v3/README*
840d93
840d93
840d93
%if %{build_libstdcxx_docs}
840d93
%files -n %{?scl_prefix}libstdc++%{!?scl:5}-docs
840d93
%{_mandir}/man3/*
840d93
%doc rpm.doc/libstdc++-v3/html
840d93
%endif
840d93
840d93
%files gfortran
840d93
%{_prefix}/bin/gfortran%{!?scl:5}
840d93
%if 0%{?scl:1}
840d93
%{_mandir}/man1/gfortran.1*
840d93
%{_infodir}/gfortran*
840d93
%endif
840d93
%dir %{_prefix}/lib/gcc
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
840d93
%dir %{_prefix}/libexec/gcc
840d93
%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}
840d93
%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude/omp_lib.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude/omp_lib.f90
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude/omp_lib.mod
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude/omp_lib_kinds.mod
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude/openacc.f90
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude/openacc.mod
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude/openacc_kinds.mod
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude/openacc_lib.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude/ieee_arithmetic.mod
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude/ieee_exceptions.mod
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude/ieee_features.mod
840d93
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/f951
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgfortran.spec
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libcaf_single.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgfortran.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgfortran.so
840d93
%ifarch sparcv9 ppc
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libcaf_single.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgfortran.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgfortran.so
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/finclude
840d93
%endif
840d93
%ifarch %{multilib_64_archs}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libcaf_single.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgfortran.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgfortran.so
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/finclude
840d93
%endif
840d93
%doc rpm.doc/gfortran/*
840d93
840d93
%if %{build_libquadmath}
840d93
%files -n %{?scl_prefix}libquadmath-devel
840d93
%dir %{_prefix}/lib/gcc
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/quadmath.h
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/quadmath_weak.h
840d93
%ifarch sparcv9 ppc
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libquadmath.a
840d93
%endif
840d93
%ifarch sparc64 ppc64 ppc64p7
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libquadmath.a
840d93
%endif
840d93
%ifnarch sparcv9 sparc64 ppc ppc64 ppc64p7
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libquadmath.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libquadmath.so
840d93
%endif
840d93
%doc rpm.doc/libquadmath/ChangeLog*
840d93
%endif
840d93
840d93
%if %{build_libitm}
840d93
%files -n %{?scl_prefix}libitm-devel
840d93
%dir %{_prefix}/lib/gcc
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
840d93
%ifarch sparcv9 ppc
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libitm.a
840d93
%endif
840d93
%ifarch sparc64 ppc64 ppc64p7
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libitm.a
840d93
%endif
840d93
%ifnarch sparcv9 sparc64 ppc ppc64 ppc64p7
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libitm.so
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libitm.a
840d93
%endif
840d93
%doc rpm.doc/libitm/ChangeLog*
840d93
%endif
840d93
840d93
%if %{build_libatomic}
840d93
%files -n %{?scl_prefix}libatomic-devel
840d93
%dir %{_prefix}/lib/gcc
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
840d93
%ifarch sparcv9 ppc
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libatomic.a
840d93
%endif
840d93
%ifarch sparc64 ppc64 ppc64p7
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libatomic.a
840d93
%endif
840d93
%ifnarch sparcv9 sparc64 ppc ppc64 ppc64p7
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic.so
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic.a
840d93
%endif
840d93
%doc rpm.doc/changelogs/libatomic/ChangeLog*
840d93
%endif
840d93
840d93
%if %{build_libasan}
ac4b94
# GTS 9 libasan5 would clash with the system RHEL 8 libasan.
ac4b94
%if 0%{?rhel} < 8
840d93
%files -n libasan5
840d93
%{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libasan.so.5*
ac4b94
%endif
840d93
840d93
%files -n %{?scl_prefix}libasan-devel
840d93
%dir %{_prefix}/lib/gcc
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
840d93
%ifarch sparcv9 ppc
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libasan.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libasan_preinit.o
840d93
%endif
840d93
%ifarch sparc64 ppc64 ppc64p7
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libasan.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libasan_preinit.o
840d93
%endif
840d93
%ifnarch sparcv9 sparc64 ppc ppc64 ppc64p7
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libasan.so
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libasan.a
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libasan_preinit.o
840d93
%endif
840d93
%doc rpm.doc/changelogs/libsanitizer/ChangeLog* libsanitizer/LICENSE.TXT
840d93
%endif
840d93
840d93
%if %{build_libtsan}
ac4b94
# Use the system libtsan.
ac4b94
%if 0%{?rhel} < 8
840d93
%files -n libtsan
840d93
%{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libtsan.so.0*
ac4b94
%endif
840d93
840d93
%files -n %{?scl_prefix}libtsan-devel
840d93
%dir %{_prefix}/lib/gcc
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libtsan.so
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libtsan_preinit.o
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libtsan.a
840d93
%doc rpm.doc/changelogs/libsanitizer/ChangeLog* libsanitizer/LICENSE.TXT
840d93
%endif
840d93
840d93
%if %{build_libubsan}
ac4b94
# GTS 9 libubsan1 would clash with the system RHEL 8 libubsan.
ac4b94
%if 0%{?rhel} < 8
840d93
%files -n libubsan1
840d93
%{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libubsan.so.1*
ac4b94
%endif
840d93
840d93
%files -n %{?scl_prefix}libubsan-devel
840d93
%dir %{_prefix}/lib/gcc
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libubsan.so
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libubsan.a
840d93
%doc rpm.doc/changelogs/libsanitizer/ChangeLog* libsanitizer/LICENSE.TXT
840d93
%endif
840d93
840d93
%if %{build_liblsan}
ac4b94
# Use the system liblsan.
ac4b94
%if 0%{?rhel} < 8
840d93
%files -n liblsan
840d93
%{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/liblsan.so.0*
ac4b94
%endif
840d93
840d93
%files -n %{?scl_prefix}liblsan-devel
840d93
%dir %{_prefix}/lib/gcc
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/liblsan.so
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/liblsan_preinit.o
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/liblsan.a
840d93
%doc rpm.doc/changelogs/libsanitizer/ChangeLog* libsanitizer/LICENSE.TXT
840d93
%endif
840d93
840d93
%files -n %{?scl_prefix}libgccjit
840d93
%{_prefix}/%{_lib}/libgccjit.so*
840d93
%doc rpm.doc/changelogs/gcc/jit/ChangeLog*
840d93
840d93
%files -n %{?scl_prefix}libgccjit-devel
840d93
%dir %{_prefix}/lib/gcc
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgccjit.so
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/libgccjit*.h
840d93
840d93
%files -n %{?scl_prefix}libgccjit-docs
840d93
%{_infodir}/libgccjit.info*
840d93
%doc rpm.doc/libgccjit-devel/*
840d93
%doc gcc/jit/docs/examples
840d93
840d93
%files plugin-devel
840d93
%dir %{_prefix}/lib/gcc
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin/gtype.state
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin/include
840d93
%dir %{_prefix}/libexec/gcc
840d93
%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}
840d93
%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
840d93
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/plugin
840d93
840d93
%files gdb-plugin
840d93
%{_prefix}/%{_lib}/libcc1.so*
840d93
%dir %{_prefix}/lib/gcc
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
840d93
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin/libcc1plugin.so*
840d93
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin/libcp1plugin.so*
840d93
%doc rpm.doc/changelogs/libcc1/ChangeLog*
840d93
ac4b94
%if %{build_offload_nvptx}
ac4b94
%files -n %{?scl_prefix}offload-nvptx
ac4b94
%{_prefix}/bin/nvptx-none-*
ac4b94
%{_prefix}/bin/%{gcc_target_platform}-accel-nvptx-none-gcc
ac4b94
%dir %{_prefix}/lib/gcc
ac4b94
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
ac4b94
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
ac4b94
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel
ac4b94
%dir %{_prefix}/libexec/gcc
ac4b94
%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}
ac4b94
%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
ac4b94
%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/accel
ac4b94
%{_prefix}/lib/gcc/nvptx-none
ac4b94
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel/nvptx-none
ac4b94
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/accel/nvptx-none
ac4b94
%dir %{_prefix}/nvptx-none
ac4b94
%{_prefix}/nvptx-none/bin
ac4b94
%{_prefix}/nvptx-none/include
ac4b94
 %endif
ac4b94
840d93
%changelog
9e23be
* Tue Jul 14 2020 Marek Polacek <polacek@redhat.com> 9.2.1-2.3
9e23be
- remove a few *codecvt_utf8* symbols from gcc9-libstdc++-compat
9e23be
ac4b94
* Wed Nov 27 2019 Marek Polacek <polacek@redhat.com> 9.2.1-2.2
ac4b94
- fix offload-nvptx requires
ac4b94
ac4b94
* Mon Nov 25 2019 Marek Polacek <polacek@redhat.com> 9.2.1-2.1
ac4b94
- add offload-nvptx (#1698607)
ac4b94
ac4b94
* Thu Nov 21 2019 Marek Polacek <polacek@redhat.com> 9.2.1-2
ac4b94
- update from Fedora gcc-9.2.1-2 (#1747158)
ac4b94
- fix ABI change in deque iterators (PR libstdc++/92267)
ac4b94
- fix up sink select_best_block (PR tree-optimization/91355)
ac4b94
- revert PR tree-optimization/91790 fix
ac4b94
- allow MODE_PARTIAL_INT modes for integer constant input operands
ac4b94
  (PR other/92090)
ac4b94
- fix adjust_unroll_factor (PR middle-end/90796)
ac4b94
- fixes for SVE Vector PCS on AArch64: emit .variant_pcs for
ac4b94
  aarch64_vector_pcs symbol references (#1726641)
ac4b94
ac4b94
* Tue Sep 24 2019 Marek Polacek <polacek@redhat.com> 9.1.1-2.4
ac4b94
- drop libtsan and liblsan (#1729402)
ac4b94
ac4b94
* Tue Aug 27 2019 Marek Polacek <polacek@redhat.com> 9.1.1-2.3
ac4b94
- require binutils >= 2.31 so that gcc supports -mpltseq (#1744988)
ac4b94
ac4b94
* Mon Jul 22 2019 Marek Polacek <polacek@redhat.com> 9.1.1-2.2
ac4b94
- small fixes for the Fortran patches (#1722881)
ac4b94
ac4b94
* Sun Jul 21 2019 Marek Polacek <polacek@redhat.com> 9.1.1-2.1
ac4b94
- add Obsoletes for libasan5 and libubsan1 on RHEL 8 (#1722892)
ac4b94
ac4b94
* Fri Jul 19 2019 Marek Polacek <polacek@redhat.com> 9.1.1-2
ac4b94
- update from Fedora 9.1.1-2 (#1728745)
ac4b94
- apply Fortran patches (#1722881)
ac4b94
- do not include libasan5 and libubsan1 on RHEL 8 and use the system
ac4b94
  version (#1722892)
ac4b94
840d93
* Tue Jun  4 2019 Marek Polacek <polacek@redhat.com> 9.1.1-1
840d93
- new package