Skip to content

Commit

Permalink
Update to V2.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Cooper-Qu committed Dec 19, 2023
1 parent 2477a73 commit 33682f2
Show file tree
Hide file tree
Showing 10 changed files with 160 additions and 27 deletions.
118 changes: 110 additions & 8 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ endif
GLIBC_MULTILIB_NAMES := @glibc_multilib_names@
MUSL32_MULTILIB_NAMES := @musl32_multilib_names@
MUSL64_MULTILIB_NAMES := @musl64_multilib_names@
THEAD32_MULTILIB_NAMES := @thead32_multilib_names@
THEAD64_MULTILIB_NAMES := @thead64_multilib_names@
GCC_CHECKING_FLAGS := @gcc_checking@

XLEN := $(shell echo $(WITH_ARCH) | tr A-Z a-z | sed 's/.*rv\([0-9]*\).*/\1/')
Expand Down Expand Up @@ -339,7 +341,7 @@ stamps/build-glibc-linux-headers: $(GLIBC_SRCDIR) $(GLIBC_SRC_GIT) stamps/build-
$(MAKE) -C $(notdir $@) install-headers
mkdir -p $(dir $@) && touch $@

stamps/build-glibc-linux-%: $(GLIBC_SRCDIR) $(GLIBC_SRC_GIT) stamps/build-gcc-linux-stage1
stamps/build-glibcthead-linux-%: $(GLIBC_SRCDIR) $(GLIBC_SRC_GIT) stamps/build-gcc-linux-stage1
ifeq ($(MULTILIB_FLAGS),--enable-multilib)
$(eval $@_ARCH := $(word 4,$(subst -, ,$@)))
$(eval $@_ABI := $(word 5,$(subst -, ,$@)))
Expand All @@ -350,7 +352,44 @@ endif
$(eval $@_LIBDIRSUFFIX := $(if $($@_ABI), $(shell if [ `echo $($@_ARCH) | grep "v0p7_zfh_xtheadc" ` ] ;then echo $($@_ARCH) | sed 's/.*rv\([0-9]*\).*/\1v0p7_xthead/'; elif [ `echo $($@_ARCH) | grep "v_zfh_xtheadc" ` ] ;then echo $($@_ARCH) | sed 's/.*rv\([0-9]*\).*/\1v_xthead/'; elif [ `echo $($@_ARCH) | grep "xtheadc" ` ] ;then echo $($@_ARCH) | sed 's/.*rv\([0-9]*\).*/\1xthead/'; else echo $($@_ARCH) | sed 's/.*rv\([0-9]*\).*/\1/';fi )/$($@_ABI),))
$(eval $@_XLEN := $(if $($@_ABI),$(shell echo $($@_ARCH) | sed 's/.*rv\([0-9]*\).*/\1/'),$(XLEN)))
$(eval $@_CFLAGS := $(if $($@_ABI),-march=$($@_ARCH) -mabi=$($@_ABI),))
$(eval $@_LIBDIROPTS := --libdir=/usr/lib$($@_LIBDIRSUFFIX) libc_cv_slibdir=/lib$($@_LIBDIRSUFFIX) libc_cv_rtlddir=/$(shell if [ `echo $($@_ARCH) | grep "thead" ` ] ;then echo x; fi)lib)
$(eval $@_LIBDIROPTS := $(if $@_LIBDIRSUFFIX,--libdir=/usr/lib$($@_LIBDIRSUFFIX) libc_cv_slibdir=/lib$($@_LIBDIRSUFFIX) libc_cv_rtlddir=/lib,))
rm -rf $@ $(notdir $@)
mkdir $(notdir $@)
cd $(notdir $@) && \
CC="$(GLIBC_CC_FOR_TARGET) $($@_CFLAGS)" \
CXX="$(GLIBC_CXX_FOR_TARGET) $($@_CFLAGS)" \
CFLAGS="$(CFLAGS_FOR_TARGET) -g -O2 $($@_CFLAGS)" \
CXXFLAGS="$(CXXFLAGS_FOR_TARGET) -g -O2 $($@_CFLAGS)" \
ASFLAGS="$(ASFLAGS_FOR_TARGET) $($@_CFLAGS)" \
$</configure \
--host=$(call make_tuple,$($@_XLEN),linux-gnu) \
--prefix=/usr \
--disable-werror \
--enable-shared \
--enable-obsolete-rpc \
--with-headers=$(LINUX_HEADERS_SRCDIR) \
$(MULTILIB_FLAGS) \
--enable-kernel=3.0.0 \
$(GLIBC_TARGET_FLAGS) \
$($@_LIBDIROPTS)
$(MAKE) -C $(notdir $@)
+flock $(SYSROOT)/.lock $(MAKE) -C $(notdir $@) install install_root=$(SYSROOT)
mkdir -p $(dir $@) && touch $@

stamps/build-glibc-linux-%: $(GLIBC_SRCDIR) $(GLIBC_SRC_GIT) stamps/build-gcc-linux-stage1 \
$(addprefix stamps/build-glibcthead-linux-,$(THEAD32_MULTILIB_NAMES)) \
$(addprefix stamps/build-glibcthead-linux-,$(THEAD64_MULTILIB_NAMES))
ifeq ($(MULTILIB_FLAGS),--enable-multilib)
$(eval $@_ARCH := $(word 4,$(subst -, ,$@)))
$(eval $@_ABI := $(word 5,$(subst -, ,$@)))
else
$(eval $@_ARCH := )
$(eval $@_ABI := )
endif
$(eval $@_LIBDIRSUFFIX := $(if $($@_ABI), $(shell if [ `echo $($@_ARCH) | grep "v0p7_zfh_xtheadc" ` ] ;then echo $($@_ARCH) | sed 's/.*rv\([0-9]*\).*/\1v0p7_xthead/'; elif [ `echo $($@_ARCH) | grep "v_zfh_xtheadc" ` ] ;then echo $($@_ARCH) | sed 's/.*rv\([0-9]*\).*/\1v_xthead/'; elif [ `echo $($@_ARCH) | grep "xtheadc" ` ] ;then echo $($@_ARCH) | sed 's/.*rv\([0-9]*\).*/\1xthead/'; else echo $($@_ARCH) | sed 's/.*rv\([0-9]*\).*/\1/';fi )/$($@_ABI),))
$(eval $@_XLEN := $(if $($@_ABI),$(shell echo $($@_ARCH) | sed 's/.*rv\([0-9]*\).*/\1/'),$(XLEN)))
$(eval $@_CFLAGS := $(if $($@_ABI),-march=$($@_ARCH) -mabi=$($@_ABI),))
$(eval $@_LIBDIROPTS := $(if $@_LIBDIRSUFFIX,--libdir=/usr/lib$($@_LIBDIRSUFFIX) libc_cv_slibdir=/lib$($@_LIBDIRSUFFIX) libc_cv_rtlddir=/lib,))
rm -rf $@ $(notdir $@)
mkdir $(notdir $@)
cd $(notdir $@) && \
Expand All @@ -372,7 +411,6 @@ endif
$($@_LIBDIROPTS)
$(MAKE) -C $(notdir $@)
+flock $(SYSROOT)/.lock $(MAKE) -C $(notdir $@) install install_root=$(SYSROOT)
rm -rf $(SYSROOT)/xlib
mkdir -p $(dir $@) && touch $@

stamps/build-gcc-linux-stage1: $(GCC_SRCDIR) $(GCC_SRC_GIT) stamps/build-binutils-linux \
Expand Down Expand Up @@ -414,7 +452,15 @@ stamps/build-gcc-linux-stage1: $(GCC_SRCDIR) $(GCC_SRC_GIT) stamps/build-binutil
$(MAKE) -C $(notdir $@) inhibit-libc=true install-target-libgcc
mkdir -p $(dir $@) && touch $@

stamps/build-gcc-linux-stage2: $(GCC_SRCDIR) $(GCC_SRC_GIT) $(addprefix stamps/build-glibc-linux-,$(GLIBC_MULTILIB_NAMES)) \
stamps/build-glibc-linux-rv64imafdc-lp64d-final: $(addprefix stamps/build-glibc-linux-,$(GLIBC_MULTILIB_NAMES))

ifeq ($(MULTILIB_FLAGS),--enable-multilib)
GLIBC_GCC_STAGE2_DEPS := stamps/build-glibc-linux-rv64imafdc-lp64d-final
else
GLIBC_GCC_STAGE2_DEPS := $(addprefix stamps/build-glibc-linux-,$(GLIBC_MULTILIB_NAMES))
endif

stamps/build-gcc-linux-stage2: $(GCC_SRCDIR) $(GCC_SRC_GIT) $(GLIBC_GCC_STAGE2_DEPS) \
stamps/build-glibc-linux-headers
rm -rf $@ $(notdir $@)
mkdir $(notdir $@)
Expand Down Expand Up @@ -446,6 +492,25 @@ stamps/build-gcc-linux-stage2: $(GCC_SRCDIR) $(GCC_SRC_GIT) $(addprefix stamps/b
CXXFLAGS_FOR_TARGET="-O2 $(CXXFLAGS_FOR_TARGET)"
$(MAKE) -C $(notdir $@)
$(MAKE) -C $(notdir $@) $(INSTALL)
# When build muiltilib toolchain, riscv64 and riscv32 has different omp.h
# 37,38c37,38
# < unsigned char _x[32]
# < __attribute__((__aligned__(8)));
# ---
# > unsigned char _x[16]
# > __attribute__((__aligned__(4)));
# 43,44c43,44
# < unsigned char _x[48]
# < __attribute__((__aligned__(8)));
# ---
# > unsigned char _x[24]
# > __attribute__((__aligned__(4)));
# So, reinstall riscv64 omp.h here to use larger spaces and alignment.
# However, having different spacing poses some risks for RISC-V32,
# although none have been discovered so far.
if [ -d $(notdir $@)/riscv64-unknown-linux-gnu/libgomp/ ]; then \
$(MAKE) -C $(notdir $@)/riscv64-unknown-linux-gnu/libgomp/ install-data-am; \
fi
cp -a $(INSTALL_DIR)/$(LINUX_TUPLE)/lib* $(SYSROOT)
mkdir -p $(dir $@) && touch $@

Expand All @@ -465,6 +530,8 @@ stamps/build-binutils-linux-native: $(BINUTILS_SRCDIR) $(BINUTILS_SRC_GIT) stamp
--disable-gdb \
--disable-sim \
--disable-libdecnumber \
--disable-libctf \
--disable-install-libbfd \
--disable-readline
$(MAKE) -C $(notdir $@)
$(MAKE) -C $(notdir $@) $(INSTALL)
Expand All @@ -478,7 +545,6 @@ stamps/build-gcc-linux-native: $(GCC_SRCDIR) $(GCC_SRC_GIT) stamps/build-gcc-lin
--host=$(LINUX_TUPLE) \
--target=$(LINUX_TUPLE) \
$(CONFIGURE_HOST) \
$(CONFIGURE_GCC_DEP_LIBS) \
$(CONFIGURE_PKGVERSION) \
CXXFLAGS=$(GCC_CXXFLAGS) \
--prefix=$(INSTALL_DIR)/native \
Expand All @@ -491,15 +557,15 @@ stamps/build-gcc-linux-native: $(GCC_SRCDIR) $(GCC_SRC_GIT) stamps/build-gcc-lin
--disable-libquadmath \
--disable-nls \
--disable-bootstrap \
--with-native-system-header-dir=$(INSTALL_DIR)/native/include \
--with-build-sysroot=$(SYSROOT) \
$(GCC_CHECKING_FLAGS) \
$(MULTILIB_FLAGS) \
$(WITH_ABI) \
$(WITH_ARCH) \
$(WITH_TUNE)
$(MAKE) -C $(notdir $@)
$(MAKE) -C $(notdir $@) $(INSTALL)
cp -a $(INSTALL_DIR)/$(LINUX_TUPLE)/lib* $(SYSROOT)
cp -a $(INSTALL_DIR)/$(LINUX_TUPLE)/lib* $(INSTALL_DIR)/native/$(LINUX_TUPLE)/
mkdir -p $(dir $@) && touch $@

#
Expand Down Expand Up @@ -594,6 +660,8 @@ stamps/build-newlib: $(NEWLIB_SRCDIR) $(NEWLIB_SRC_GIT) stamps/build-gcc-newlib-
--enable-newlib-io-c99-formats \
--enable-newlib-register-fini \
--enable-newlib-retargetable-locking \
--enable-newlib-iconv \
--enable-newlib-iconv-encodings=big5,cp775,cp850,cp852,cp855,cp866,euc_jp,euc_kr,euc_tw,iso_8859_1,iso_8859_10,iso_8859_11,iso_8859_13,iso_8859_14,iso_8859_15,iso_8859_2,iso_8859_3,iso_8859_4,iso_8859_5,iso_8859_6,iso_8859_7,iso_8859_8,iso_8859_9,iso_ir_111,koi8_r,koi8_ru,koi8_u,koi8_uni,ucs_2,ucs_2_internal,ucs_2be,ucs_2le,ucs_4,ucs_4_internal,ucs_4be,ucs_4le,us_ascii,utf_16,utf_16be,utf_16le,utf_8,win_1250,win_1251,win_1252,win_1253,win_1254,win_1255,win_1256,win_1257,win_1258 \
CFLAGS_FOR_TARGET="-O2 -D_POSIX_MODE $(CFLAGS_FOR_TARGET)" \
CXXFLAGS_FOR_TARGET="-O2 -D_POSIX_MODE $(CXXFLAGS_FOR_TARGET)"
$(MAKE) -C $(notdir $@)
Expand Down Expand Up @@ -788,7 +856,41 @@ stamps/build-musl-linux-headers: $(MUSL_SRCDIR) stamps/build-gcc-musl-stage1
$(MAKE) -C $(notdir $@) install-headers
mkdir -p $(dir $@) && touch $@

stamps/build-musl-linux-%: $(MUSL_SRCDIR) $(MUSL_SRC_GIT) stamps/build-gcc-musl-stage1
stamps/build-muslthead-linux-%: $(MUSL_SRCDIR) $(MUSL_SRC_GIT) stamps/build-gcc-musl-stage1
ifeq ($(MULTILIB_FLAGS),--enable-multilib)
$(eval $@_ARCH := $(word 4,$(subst -, ,$@)))
$(eval $@_ABI := $(word 5,$(subst -, ,$@)))
else
$(eval $@_ARCH := )
$(eval $@_ABI := )
endif
$(eval $@_LIBDIRSUFFIX := $(if $($@_ABI), $(shell if [ `echo $($@_ARCH) | grep "v0p7_zfh_xtheadc" ` ] ;then echo $($@_ARCH) | sed 's/.*rv\([0-9]*\).*/\1v0p7_xthead/'; elif [ `echo $($@_ARCH) | grep "v_zfh_xtheadc" ` ] ;then echo $($@_ARCH) | sed 's/.*rv\([0-9]*\).*/\1v_xthead/'; elif [ `echo $($@_ARCH) | grep "xtheadc" ` ] ;then echo $($@_ARCH) | sed 's/.*rv\([0-9]*\).*/\1xthead/'; else echo $($@_ARCH) | sed 's/.*rv\([0-9]*\).*/\1/';fi )/$($@_ABI),))
$(eval $@_XLEN := $(if $($@_ABI),$(shell echo $($@_ARCH) | sed 's/.*rv\([0-9]*\).*/\1/'),$(XLEN)))
$(eval $@_CFLAGS := $(if $($@_ABI),-march=$($@_ARCH) -mabi=$($@_ABI),))
$(eval $@_LIBDIROPTS := $(if $@_LIBDIRSUFFIX,--libdir=/usr/lib$($@_LIBDIRSUFFIX) --syslibdir=/lib,))
rm -rf $@ $(notdir $@)
mkdir $(notdir $@)
cd $(notdir $@) && \
CC="$(MUSL_CC_FOR_TARGET) $($@_CFLAGS)" \
CXX="$(MUSL_CXX_FOR_TARGET) $($@_CFLAGS)" \
CFLAGS="$(CFLAGS_FOR_TARGET) -g -O2 $($@_CFLAGS)" \
CXXFLAGS="$(CXXFLAGS_FOR_TARGET) -g -O2 $($@_CFLAGS)" \
ASFLAGS="$(ASFLAGS_FOR_TARGET) $($@_CFLAGS)" \
CROSS_COMPILE="$(MUSL_TUPLE)-" \
$</configure \
--host=$(call make_tuple,$($@_XLEN),linux-musl) \
--prefix=/usr \
--ldsoreldir=../ \
--disable-werror \
--enable-shared \
$(MUSL_TARGET_FLAGS) \
$($@_LIBDIROPTS)
$(MAKE) -C $(notdir $@)
+flock $(SYSROOT)/.lock $(MAKE) -C $(notdir $@) install DESTDIR=$(SYSROOT)
mkdir -p $(dir $@) && touch $@

stamps/build-musl-linux-%: $(MUSL_SRCDIR) $(MUSL_SRC_GIT) stamps/build-gcc-musl-stage1 \
$(addprefix stamps/build-muslthead-linux-,$(THEAD$(XLEN)_MULTILIB_NAMES))
ifeq ($(MULTILIB_FLAGS),--enable-multilib)
$(eval $@_ARCH := $(word 4,$(subst -, ,$@)))
$(eval $@_ABI := $(word 5,$(subst -, ,$@)))
Expand Down
30 changes: 23 additions & 7 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,8 @@ target_cxxflags
target_cflags
cmodel
gcc_checking
thead32_multilib_names
thead64_multilib_names
newlib_multilib_names
musl32_multilib_names
musl64_multilib_names
Expand Down Expand Up @@ -1333,7 +1335,7 @@ Optional Features:
--enable-gcc-checking Enable gcc internal checking, it will make gcc very
slow, only enable it when developing gcc
[--disable-gcc-checking]
--disable-install-strip Don't strip the executable file
--disable-install-strip Don't strip the executable file
--disable-gdb Don't build GDB, as it's not upstream
--enable-libsanitizer Build libsanitizer, which only supports rv64
Expand Down Expand Up @@ -3385,25 +3387,23 @@ else
fi
if test "x$enable_multilib" != xno; then :
glibc_multilib_names="rv64imac-lp64 rv64imac_xtheadc-lp64 rv64imafdc-lp64d rv64imafdc_zfh_xtheadc-lp64d rv64imafdcv_zfh_xtheadc-lp64d \
rv64imafdc_v0p7_zfh_xtheadc-lp64d rv32imafdc-ilp32d rv32imafdc_zfh_xtheadc-ilp32d rv32imafdcv_zfh_xtheadc-ilp32d"
glibc_multilib_names="rv64imac-lp64 rv64imafdc-lp64d rv32imafdc-ilp32d rv32imac-ilp32"
else
glibc_multilib_names="$with_arch-$with_abi"
fi
if test "x$enable_multilib" != xno; then :
musl64_multilib_names="rv64imac-lp64 rv64imac_xtheadc-lp64 rv64imafdc-lp64d rv64imafdc_zfh_xtheadc-lp64d rv64imafdcv_zfh_xtheadc-lp64d \
rv64imafdc_v0p7_zfh_xtheadc-lp64d"
musl64_multilib_names="rv64imac-lp64 rv64imafdc-lp64d"
else
musl64_multilib_names="$with_arch-$with_abi"
fi
if test "x$enable_multilib" != xno; then :
musl32_multilib_names="rv32imafdc-ilp32d rv32imafdc_zfh_xtheadc-ilp32d rv32imafdcv_zfh_xtheadc-ilp32d"
musl32_multilib_names="rv32imafdc-ilp32d rv32imac-ilp32"
else
musl32_multilib_names="$with_arch-$with_abi"
Expand All @@ -3421,6 +3421,22 @@ else
fi
if test "x$enable_multilib" != xno; then :
thead64_multilib_names="rv64imac_xtheadc-lp64 rv64imafdc_zfh_xtheadc-lp64d rv64imafdcv_zfh_xtheadc-lp64d rv64imafdc_v0p7_zfh_xtheadc-lp64d"
else
thead64_multilib_names="$with_arch-$with_abi"
fi
if test "x$enable_multilib" != xno; then :
thead32_multilib_names="rv32imac_xtheadc-ilp32 rv32imafdc_zfh_xtheadc-ilp32d rv32imafdcv_zfh_xtheadc-ilp32d"
else
thead32_multilib_names="$with_arch-$with_abi"
fi
# Check whether --enable-gcc-checking was given.
if test "${enable_gcc_checking+set}" = set; then :
enableval=$enable_gcc_checking;
Expand Down Expand Up @@ -3503,7 +3519,7 @@ fi
if test "x$with_gcc_dep_libs" != xdefault; then :
NEED_GCC_EXTERNAL_LIBRARIES=false
configure_gcc_dep_libs=--with-gmp=$with_gcc_dep_libs\ --with-mpfr=$with_gcc_dep_libs\ --with-mpc=$with_gcc_dep_libs\ --with-libexpat-prefix=$with_gcc_dep_libs
configure_gcc_dep_libs=--with-gmp=$with_gcc_dep_libs\ --with-mpfr=$with_gcc_dep_libs\ --with-mpc=$with_gcc_dep_libs\ --with-libexpat-prefix=$with_gcc_dep_libs\ --with-libmpfr-prefix=$with_gcc_dep_libs
else
configure_gcc_dep_libs=""
Expand Down
18 changes: 12 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,15 @@ AS_IF([test "x$enable_multilib" != xno || test "x$with_multilib_generator" != xn
[AC_SUBST(multilib_flags,--disable-multilib)])

AS_IF([test "x$enable_multilib" != xno],
[AC_SUBST(glibc_multilib_names,"rv64imac-lp64 rv64imac_xtheadc-lp64 rv64imafdc-lp64d rv64imafdc_zfh_xtheadc-lp64d rv64imafdcv_zfh_xtheadc-lp64d \
rv64imafdc_v0p7_zfh_xtheadc-lp64d rv32imafdc-ilp32d rv32imafdc_zfh_xtheadc-ilp32d rv32imafdcv_zfh_xtheadc-ilp32d")],
[AC_SUBST(glibc_multilib_names,"rv64imac-lp64 rv64imafdc-lp64d rv32imafdc-ilp32d rv32imac-ilp32")],
[AC_SUBST(glibc_multilib_names,"$with_arch-$with_abi")])

AS_IF([test "x$enable_multilib" != xno],
[AC_SUBST(musl64_multilib_names,"rv64imac-lp64 rv64imac_xtheadc-lp64 rv64imafdc-lp64d rv64imafdc_zfh_xtheadc-lp64d rv64imafdcv_zfh_xtheadc-lp64d \
rv64imafdc_v0p7_zfh_xtheadc-lp64d")],
[AC_SUBST(musl64_multilib_names,"rv64imac-lp64 rv64imafdc-lp64d")],
[AC_SUBST(musl64_multilib_names,"$with_arch-$with_abi")])

AS_IF([test "x$enable_multilib" != xno],
[AC_SUBST(musl32_multilib_names,"rv32imafdc-ilp32d rv32imafdc_zfh_xtheadc-ilp32d rv32imafdcv_zfh_xtheadc-ilp32d")],
[AC_SUBST(musl32_multilib_names,"rv32imafdc-ilp32d rv32imac-ilp32")],
[AC_SUBST(musl32_multilib_names,"$with_arch-$with_abi")])

AS_IF([test "x$enable_multilib" != xno],
Expand All @@ -134,6 +132,14 @@ AS_IF([test "x$enable_multilib" != xno],
rv64imafdcv_zfh_xtheadc-lp64d rv64imafdc_v0p7_zfh_xtheadc-lp64d")],
[AC_SUBST(newlib_multilib_names,"$with_arch-$with_abi")])

AS_IF([test "x$enable_multilib" != xno],
[AC_SUBST(thead64_multilib_names,"rv64imac_xtheadc-lp64 rv64imafdc_zfh_xtheadc-lp64d rv64imafdcv_zfh_xtheadc-lp64d rv64imafdc_v0p7_zfh_xtheadc-lp64d")],
[AC_SUBST(thead64_multilib_names,"$with_arch-$with_abi")])

AS_IF([test "x$enable_multilib" != xno],
[AC_SUBST(thead32_multilib_names,"rv32imac_xtheadc-ilp32 rv32imafdc_zfh_xtheadc-ilp32d rv32imafdcv_zfh_xtheadc-ilp32d")],
[AC_SUBST(thead32_multilib_names,"$with_arch-$with_abi")])

AC_ARG_ENABLE(gcc-checking,
[AS_HELP_STRING([--enable-gcc-checking],
[Enable gcc internal checking, it will make gcc very slow, only enable it when developing gcc @<:@--disable-gcc-checking@:>@])],
Expand Down Expand Up @@ -193,7 +199,7 @@ AC_ARG_WITH(gcc-dep-libs,

AS_IF([test "x$with_gcc_dep_libs" != xdefault],
[AC_SUBST(NEED_GCC_EXTERNAL_LIBRARIES,false)]
[AC_SUBST(configure_gcc_dep_libs,--with-gmp=$with_gcc_dep_libs\ --with-mpfr=$with_gcc_dep_libs\ --with-mpc=$with_gcc_dep_libs\ --with-libexpat-prefix=$with_gcc_dep_libs)],
[AC_SUBST(configure_gcc_dep_libs,--with-gmp=$with_gcc_dep_libs\ --with-mpfr=$with_gcc_dep_libs\ --with-mpc=$with_gcc_dep_libs\ --with-libexpat-prefix=$with_gcc_dep_libs\ --with-libmpfr-prefix=$with_gcc_dep_libs)],
[AC_SUBST(configure_gcc_dep_libs,"")])

AC_ARG_ENABLE(install_strip,
Expand Down
2 changes: 1 addition & 1 deletion riscv-binutils
Submodule riscv-binutils updated 101 files
2 changes: 1 addition & 1 deletion riscv-gcc
Submodule riscv-gcc updated 2241 files
2 changes: 1 addition & 1 deletion riscv-gdb
Submodule riscv-gdb updated 122 files
6 changes: 5 additions & 1 deletion test/allowlist/gcc/common.log
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ FAIL: gfortran.dg/pr45636.f90
#
# T-HEAD: Need review
#
FAIL: gcc.dg/analyzer/dot-output.c
FAIL: gcc.dg/analyzer/dot-output.c
#
# Added by gcc-10.4, also failed in x86_64
#
FAIL: gcc.dg/debug/dwarf2/pr97060.c scan-assembler-times DW_AT_declaration 2
3 changes: 2 additions & 1 deletion test/allowlist/gcc/glibc.rv64.log
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,5 @@ FAIL: gcc.dg/asan/use-after-scope-switch-2.c
FAIL: gcc.dg/asan/use-after-scope-switch-3.c
FAIL: gcc.dg/asan/use-after-scope-switch-4.c
FAIL: gcc.dg/ubsan/float-cast-overflow-bf.c
FAIL: gcc.dg/ubsan/object-size-9.c
FAIL: gcc.dg/ubsan/object-size-9.c
FAIL: gcc.dg/asan/pr105396.c -O0 output pattern test
4 changes: 4 additions & 0 deletions test/allowlist/gcc/rv32.log
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
# XXX: Do not support '.POPCOUNT' in -fdump-tree-optimized
#
FAIL: gcc.dg/tree-ssa/popcount4ll.c
#
# Analysis is required, but does not affect the correctness of the program
#
FAIL: c-c++-common/goacc/firstprivate-mappings-1.c

0 comments on commit 33682f2

Please sign in to comment.