public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "gcc-v850-bugs at engineer dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/104324] New: v850-elf-as regression: displacement is too large Date: Tue, 01 Feb 2022 13:56:05 +0000 [thread overview] Message-ID: <bug-104324-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104324 Bug ID: 104324 Summary: v850-elf-as regression: displacement is too large Product: gcc Version: 10.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: gcc-v850-bugs at engineer dot com Target Milestone: --- The following minimum example fails to assemble in "newer" gcc versions. In 4.9.2 (prebuilt and retrieved from here https://llvm-gcc-renesas.com/v850/v850-download-toolchains/) all targets listed below works, but in 10.3 and 11.2 only later targets works, see below. The 10.3 and 11.2 are built from source from a Dockerfile as listed later on. I fail to build older versions of gcc myself due to various compilation issues, didn't investigate those further. Would love to git bisect this issue, but can't since I fail to build old enough gcc's. file.S: _RESET: mov 0x37, r15 st.b r15, 0xfffff06e[zero] -- Works in 4.9.2, fails in (at least) 10.3 and 11.2: -- $ v850-elf-as -mv850 -c file.S -- $ v850-elf-as -mv850e -c file.S -- $ v850-elf-as -mv850e1 -c file.S -- $ v850-elf-as -mv850es -c file.S -- Works in 4.9.2, 10.3, 11.2: -- $ v850-elf-as -mv850e2 -c file.S -- $ v850-elf-as -mv850e2v3 -c file.S -- $ v850-elf-as -mv850e2v4 -c file.S -- $ v850-elf-as -mv850e3v5 -c file.S Dockerfile: ARG TARGET_ARCH="v850-elf" ARG TOOLCHAIN_VERSION="master" ARG TOOLCHAIN_NAME="gcc-${TARGET_ARCH}-${TOOLCHAIN_VERSION}" ARG TOOLCHAIN_PATH="/opt/${TOOLCHAIN_NAME}" FROM debian:10 as build ARG DEBIAN_FRONTEND=noninteractive ARG TARGET_ARCH ARG TOOLCHAIN_VERSION ARG TOOLCHAIN_NAME ARG TOOLCHAIN_PATH ENV PATH="${TOOLCHAIN_PATH}/bin:${PATH}" ENV DEBIAN_FRONTEND=noninteractive RUN apt-get -y update && \ apt-get -y install --no-install-recommends \ build-essential \ texinfo \ wget \ && rm -rf /var/lib/apt/lists/* ENV DOWNLOAD_PATH="/tmp/${TOOLCHAIN_NAME}/download" \ SOURCES_PATH="/tmp/${TOOLCHAIN_NAME}/sources" \ BUILD_PATH="/tmp/${TOOLCHAIN_NAME}/build" ENV BINUTILS_VERSION="2.36.1" \ GCC_VERSION="11.2.0" \ GMP_VERSION="6.2.1" \ MPC_VERSION="1.2.1" \ MPFR_VERSION="4.1.0" \ GDB_VERSION="10.2" \ NEWLIB_VERSION="4.1.0" RUN wget --tries=10 --continue --no-check-certificate --no-verbose \ https://ftp.gnu.org/gnu/binutils/binutils-${BINUTILS_VERSION}.tar.gz \ https://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/gcc-${GCC_VERSION}.tar.gz \ https://ftp.gnu.org/gnu/gmp/gmp-${GMP_VERSION}.tar.bz2 \ https://ftp.gnu.org/gnu/mpc/mpc-${MPC_VERSION}.tar.gz \ https://ftp.gnu.org/gnu/mpfr/mpfr-${MPFR_VERSION}.tar.gz \ https://ftp.gnu.org/gnu/gdb/gdb-${GDB_VERSION}.tar.gz \ ftp://sourceware.org/pub/newlib/newlib-${NEWLIB_VERSION}.tar.gz \ -P ${DOWNLOAD_PATH} RUN mkdir -p ${SOURCES_PATH} && \ for f in ${DOWNLOAD_PATH}/*.tar.gz; \ do \ tar xf "$f" -C ${SOURCES_PATH}; \ done; \ for f in ${DOWNLOAD_PATH}/*.tar.bz2; \ do \ tar xjf "$f" -C ${SOURCES_PATH}; \ done RUN cd ${SOURCES_PATH}/gcc-${GCC_VERSION} && \ ln -s ../gmp-${GMP_VERSION} gmp && \ ln -s ../mpc-${MPC_VERSION} mpc && \ ln -s ../mpfr-${MPFR_VERSION} mpfr # build binutils RUN mkdir -p ${BUILD_PATH}/binutils && \ cd ${BUILD_PATH}/binutils && \ ${SOURCES_PATH}/binutils-${BINUTILS_VERSION}/configure \ --target=${TARGET_ARCH} \ --prefix=${TOOLCHAIN_PATH} \ --disable-nls \ && \ make -j$(nproc) all && \ make install ENV GCC_OPTS=" \ --with-gnu-as \ --with-gnu-ld \ --disable-shared \ --disable-libssp \ --disable-threads \ --disable-nls \ --with-newlib \ " # build gcc - 1st pass RUN mkdir -p ${BUILD_PATH}/gcc && \ cd ${BUILD_PATH}/gcc && \ ${SOURCES_PATH}/gcc-${GCC_VERSION}/configure \ --target=${TARGET_ARCH} \ --prefix=${TOOLCHAIN_PATH} \ --enable-languages=c \ --without-headers \ ${GCC_OPTS} \ && \ make -j$(nproc) all-gcc && \ make install-gcc # build newlib RUN mkdir -p ${BUILD_PATH}/newlib && \ cd ${BUILD_PATH}/newlib && \ export CFLAGS_FOR_TARGET="-Os -fcommon" && \ ${SOURCES_PATH}/newlib-${NEWLIB_VERSION}/configure \ --target=${TARGET_ARCH} \ --prefix=${TOOLCHAIN_PATH} \ --enable-newlib-nano-formatted-io \ --disable-nls \ && \ make -j$(nproc) all && \ make install # build gcc - 2nd pass RUN cd ${BUILD_PATH}/gcc && \ ${SOURCES_PATH}/gcc-${GCC_VERSION}/configure \ --target=${TARGET_ARCH} \ --prefix=${TOOLCHAIN_PATH} \ --enable-languages=c,c++ \ ${GCC_OPTS} \ && \ make -j$(nproc) all && \ make install-strip # build gdb RUN mkdir -p ${BUILD_PATH}/gdb && \ cd ${BUILD_PATH}/gdb &&\ ${SOURCES_PATH}/gdb-${GDB_VERSION}/configure \ --target=${TARGET_ARCH} \ --prefix=${TOOLCHAIN_PATH} \ --disable-nls \ && \ make -j$(nproc) all && \ make install
next reply other threads:[~2022-02-01 13:56 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-02-01 13:56 gcc-v850-bugs at engineer dot com [this message] 2022-02-01 14:11 ` [Bug target/104324] " gcc-v850-bugs at engineer dot com 2022-02-01 19:17 ` pinskia at gcc dot gnu.org 2022-02-02 8:56 ` gcc-v850-bugs at engineer dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-104324-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).