diff --git a/gcc-14.spec b/gcc-14.spec index 80f4070a3d9f9b198d6161747f0a41154e04bbd8..45978a170274c8358b722298c3983d95bdb8901f 100644 --- a/gcc-14.spec +++ b/gcc-14.spec @@ -90,7 +90,7 @@ Summary: Various compilers (C, C++, Objective-C, ...) Name: %{?_scl_prefix}gcc%{gcc_ver} Version: 14.3.1 -Release: 6 +Release: 7 # libgcc, libgfortran, libgomp, libstdc++ and crtstuff have # GCC Runtime Exception. License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD @@ -100,7 +100,16 @@ URL: http://gcc.gnu.org BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +# for supporting riscv64 RVA23 profile +%ifarch riscv64 +%if 0%{?scl:1} +BuildRequires: gcc-toolset-14-binutils +%else +BuildRequires: binutils >= 2.31 +%endif +%else BuildRequires: binutils >= 2.31 +%endif BuildRequires: glibc-headers BuildRequires: libtool, zlib-devel, texinfo, gettext, flex, bison, sharutils BuildRequires: gmp-devel >= 4.1.2, mpfr-devel >= 3.1.0, libmpc-devel >= 0.8.1, isl-devel >= 0.15.0 @@ -634,6 +643,9 @@ CC="$CC" CXX="$CXX" \ --enable-languages=c,c++,fortran${enablelobjc}${enablelada}${enablelgo}${enableld},lto \ $CONFIGURE_OPTS +%{?scl:export PATH=%{_bindir}${PATH:+:${PATH}}} +%{?scl:export LD_LIBRARY_PATH=%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}} + %ifarch sparc sparcv9 sparc64 make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" LDFLAGS_FOR_TARGET=-Wl,-z,relro,-z,now %else @@ -2244,6 +2256,9 @@ end %doc rpm.doc/changelogs/libcc1/ChangeLog* %changelog +* Wed Sep 10 2025 jchzhou - 14.3.1-7 +- build with gcc-toolset-14-binutils on RISC-V for supporting RVA23 profile + * Wed Aug 27 2025 Hu, Lin - 14.3.1-6 - [Sync] Sync patches from gcc.gnu.org's releases/gcc-14