https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114226

Bruce Hoult <bruce at hoult dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
                URL|                            |https://godbolt.org/z/7x4rM
                   |                            |hvW1

--- Comment #3 from Bruce Hoult <bruce at hoult dot org> ---
gah! It deleted the description, URL, keywords etc I was in the middle of
writing when I added an attachment of the compiler output! Sorry!

Code:

    void *memset();
    void a(void *b){ memset(b, 0, 1lu); }

Compile command:

    riscv64-unknown-elf-gcc -O -c -march=rv64gc_xtheadvector bug.c

GCC version: 14.0.1 self compiled 306a4c322353 Mar 2 Daily bump.

System type: RISC-V.

Happens on LicheePi 4A, VisionFive 2, QEMU, and cross-compiler on Godbolt.

The original code was the main program for a program that used RVV intrinsics
in other files, but not in this one. For simplicity the same options were
passed for all source files.

Compiler build options (local .. I don't know what Godbolt uses):

/root/riscv-gnu-toolchain/gcc/configure --target=riscv64-unknown-elf
--prefix=/root/_install --disable-shared --disable-threads
--enable-languages=c,c++ --with-pkgversion=g --with-system-zlib --enable-tls
--with-newlib --with-sysroot=/root/_install/riscv64-unknown-elf
--with-native-system-header-dir=/include --disable-libmudflap --disable-libssp
--disable-libquadmath --disable-libgomp --disable-nls
--disable-tm-clone-registry --src=.././gcc --disable-multilib --with-abi=lp64d
--with-arch=rv64imafdc --with-tune=rocket --with-isa-spec=20191213
'CFLAGS_FOR_TARGET=-Os    -mcmodel=medlow' 'CXXFLAGS_FOR_TARGET=-Os   
-mcmodel=medlow'

Reply via email to