From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9C71E3858C20; Tue, 7 Mar 2023 17:40:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9C71E3858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678210828; bh=K8J5bZ6ygcKHWTuLByNdLtWkllNFpFXy5fyFJQB/wOA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=n2bcK+dVHoJ4hr/rZ0MFkvNWjHwZK2X+Xmw/liPkzWSGEbzVtv3HsfL4cyl13G5UE aYJ8uPMqo/3jFWCNmZLX4Lres7s+MzhyMpWN76HaRfpkf5KIBJ3zdPw3Eg8bQm5Qip hlkLcI2DnaPgK1nlC1vglP0PvMiCsggZEjE+HUdc= From: "cjmh.gt at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109055] Code generation error when function decorated for execution in SRAM Date: Tue, 07 Mar 2023 17:40:28 +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: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cjmh.gt at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned 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=3D109055 --- Comment #1 from Chris Hodges --- I listed the compiler for the native GCC instead of arm-none-eabi-gcc -v The RPI400 compiiler for the Cortex M0 is 8.3.1 RPI400: arm-none-eabi-gcc -v Using built-in specs. COLLECT_GCC=3Darm-none-eabi-gcc COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/arm-none-eabi/8.3.1/lto-wrapper Target: arm-none-eabi Configured with: ../configure --build=3Darm-linux-gnueabihf --prefix=3D/usr --includedir=3D'/usr/lib/include' --mandir=3D'/usr/lib/share/man' --infodir=3D'/usr/lib/share/info' --sysconfdir=3D/etc --localstatedir=3D/var --disable-option-checking --disable-silent-rules --libdir=3D'/usr/lib/lib/arm-linux-gnueabihf' --libexecdir=3D'/usr/lib/lib/arm-linux-gnueabihf' --disable-maintainer-mode --disable-dependency-tracking --mandir=3D/usr/share/man --enable-languages=3Dc,c++,lto --enable-multilib --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadma= th --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --enable-tls --build=3Darm-linux-gnueabihf --target=3Darm-none-eabi --with-system-zlib --with-gnu-as --with-gnu-ld --with-pkgversion=3D15:8-2019-q3-1+b1 --without-included-gettext --prefix=3D/usr/lib --infodir=3D/usr/share/doc/gcc-arm-none-eabi/info --htmldir=3D/usr/share/doc/gcc-arm-none-eabi/html --pdfdir=3D/usr/share/doc/gcc-arm-none-eabi/pdf --bindir=3D/usr/bin --libexecdir=3D/usr/lib --libdir=3D/usr/lib --disable-libstdc++-v3 --host=3Darm-linux-gnueabihf --with-headers=3Dno --without-newlib --with-multilib-list=3Drmprofile CFLAGS=3D'-g -O2 -fdebug-prefix-map=3D/build/gcc-arm-none-eabi-3BFy9A/gcc-arm-none-eabi-8-20= 19-q3=3D. -fstack-protector-strong' CPPFLAGS=3D'-Wdate-time -D_FORTIFY_SOURCE=3D2' CXXFLAGS=3D'-g -O2 -fdebug-prefix-map=3D/build/gcc-arm-none-eabi-3BFy9A/gcc-arm-none-eabi-8-20= 19-q3=3D. -fstack-protector-strong' FCFLAGS=3D'-g -O2 -fdebug-prefix-map=3D/build/gcc-arm-none-eabi-3BFy9A/gcc-arm-none-eabi-8-20= 19-q3=3D. -fstack-protector-strong' FFLAGS=3D'-g -O2 -fdebug-prefix-map=3D/build/gcc-arm-none-eabi-3BFy9A/gcc-arm-none-eabi-8-20= 19-q3=3D. -fstack-protector-strong' GCJFLAGS=3D'-g -O2 -fdebug-prefix-map=3D/build/gcc-arm-none-eabi-3BFy9A/gcc-arm-none-eabi-8-20= 19-q3=3D. -fstack-protector-strong' LDFLAGS=3D-Wl,-z,relro OBJCFLAGS=3D'-g -O2 -fdebug-prefix-map=3D/build/gcc-arm-none-eabi-3BFy9A/gcc-arm-none-eabi-8-20= 19-q3=3D. -fstack-protector-strong' OBJCXXFLAGS=3D'-g -O2 -fdebug-prefix-map=3D/build/gcc-arm-none-eabi-3BFy9A/gcc-arm-none-eabi-8-20= 19-q3=3D. -fstack-protector-strong' INHIBIT_LIBC_CFLAGS=3D-DUSE_TM_CLONE_REGISTRY=3D0 AR_FOR_TARGET=3Darm-none-eabi-ar AS_FOR_TARGET=3Darm-none-eabi-as LD_FOR_TARGET=3Darm-none-eabi-ld NM_FOR_TARGET=3Darm-none-eabi-nm OBJDUMP_FOR_TARGET=3Darm-none-eabi-objdump RANLIB_FOR_TARGET=3Darm-none-eab= i-ranlib READELF_FOR_TARGET=3Darm-none-eabi-readelf STRIP_FOR_TARGET=3Darm-none-eabi= -strip Thread model: single gcc version 8.3.1 20190703 (release) [gcc-8-branch revision 273027] (15:8-2019-q3-1+b1)=20 Windows10: arm-none-eabi-gcc.exe -v Using built-in specs. COLLECT_GCC=3DC:\msys64\mingw64\bin\arm-none-eabi-gcc.exe COLLECT_LTO_WRAPPER=3Dc:/msys64/mingw64/bin/../lib/gcc/arm-none-eabi/12.2.0= /lto-wrapper.exe Target: arm-none-eabi Configured with: ../configure --build=3Dx86_64-w64-mingw32 --host=3Dx86_64-w64-mingw32 --prefix=3D/mingw64 --target=3Darm-none-eabi --with-native-system-header-dir=3D/mingw64/include --libexecdir=3D/mingw64/lib - -enable-languages=3Dc,c++ --enable-plugins --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls -- disable-shared --disable-threads --disable-tls --disable-libada --with-gnu-= as --with-gnu-ld --with-s ystem-zlib --with-newlib --with-headers=3D/mingw64/arm-none-eabi/include --with-python-dir=3Dshare/gcc-a rm-none-eabi --with-gmp --with-mpfr --with-mpc --with-isl --with-libelf --enable-gnu-indirect_functi on --with-multilib-list=3Drmprofile --with-host-libstdcxx=3D'-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdyna mic -lm' --enable-linker-plugin-flags=3D'LDFLAGS=3D-static-libstdc++\ -static-libgcc\ -pipe\ -Wl,--stack ,12582912' LDFLAGS=3D'-pipe -Wl,--disable-dynamicbase' Thread model: single Supported LTO compression algorithms: zlib zstd gcc version 12.2.0 (GCC)=