https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116504
Bug ID: 116504 Summary: wrong code with -mcpu=sifive-x280 Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: riscv64-unknown-linux-gnu Created attachment 59014 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59014&action=edit reduced testcase I am using qemu-riscv64 userspace emulation; this might be an issue in the emulator, or in the way how I am using it, and not in the gcc. I am unable to tell where the issue is. I am having problems with -mcpu=sifive-x280 often, so I welcome any feedback on this. $ riscv64-unknown-linux-gnu-gcc -mcpu=sifive-x280 testcase.c -static $ qemu-riscv64 -- ./a.out Aborted $ riscv64-unknown-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-riscv64/bin/riscv64-unknown-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r15-3209-20240827075350-g103127cd939-checking-yes-rtl-df-extra-riscv64/bin/../libexec/gcc/riscv64-unknown-linux-gnu/15.0.0/lto-wrapper Target: riscv64-unknown-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --with-cloog --with-ppl --with-isl --with-isa-spec=2.2 --with-sysroot=/usr/riscv64-unknown-linux-gnu --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=riscv64-unknown-linux-gnu --with-ld=/usr/bin/riscv64-unknown-linux-gnu-ld --with-as=/usr/bin/riscv64-unknown-linux-gnu-as --disable-multilib --enable-libsanitizer --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r15-3209-20240827075350-g103127cd939-checking-yes-rtl-df-extra-riscv64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20240826 (experimental) (GCC)