From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0D22A3858CDA; Mon, 17 Jun 2024 08:05:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0D22A3858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1718611506; bh=WukTfaQJsXwr0wFhmIeUH1K/1vLO38Q5k1dsk8xnYD4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=aISLf76TVNMI9/ND/yK+HIPDhG7ZI3aXwu1EDpGkmgptSrK+clr1v+bcK1+F6ODju CanVBPKmVpSzyYhYQ9uG994jPexBKqGFeIDyeFJBWpC3mgQut33TcNw6ERP92LGt3u hFeYWThyv1IpMBq8clXnmM7aEurNbWKAspA8Akjw= From: "clyon at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/115493] [15 regression] gcc.c-torture/execute/pr94734.c fails on MVE after r15-1054-g202a9c8fe7d Date: Mon, 17 Jun 2024 08:05:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 15.0 X-Bugzilla-Keywords: testsuite-fail, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: clyon at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115493 --- Comment #5 from Christophe Lyon --- That's because such a configuration builds libs for A-profile (cortex-A*), which are incompatible with M-profile (cortex-M*). (In addition I think you have to use gnueabihf instead of gnueabi, IIRC --with-float=3Dhard is not sufficient). You can't build an arm-linux-* toolchain for cortex-M. So I suggest you build your toolchain with the flags I suggested in the description: with GCC configured with: --disable-multilib --with-mode=3Dthumb --with-arch=3Darmv8.1-m.main+mve.fp+= fp.dp --with-float=3Dhard --target=3Darm-eabi It shouldn't be very long since multilibs are disabled. Alternatively, you can try to use our ABE build script: git clone https://git.linaro.org/toolchain/abe.git cd abe ./configure ./abe.sh --build all --target arm-eabi --extraconfigdir config/master --dis= able make_docs --set languages=3Dc,c++,lto --set gcc_override_configure=3D--disable-multilib --set gcc_override_configure=3D--with-mode=3Dthumb --set gcc_override_configure=3D--with-arch=3Darmv8.1-m.main+mve.fp+fp.dp --set gcc_override_configure=3D--with-float=3Dhard --check gcc --set 'target_board_options=3D{-mthumb/-march=3Darmv8.1-m.main+mve.fp+fp.dp/-mtun= e=3Dcortex-m55/-mfloat-abi=3Dhard/-mfpu=3Dauto}' --qemu-cpu cortex-m55 --set runtestflags=3Dexecute.exp=3Dpr94734.c That will clone all repos (binutils-gdb, gcc, newlib, qemu), build the full toolchain from scratch, and run the test.=