[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gcc -menable-experimental-extensions ?



Hi,
On Wed, Jul 06, 2022 at 12:11:08PM +0200, Mathieu Malaterre wrote:
Hi !

Technically to take full advantage of one library on riscv-64, I would
need support for -march=rv64gcv1p0 -menable-experimental-extensions in
clang...which as far I can see is not the case yet
(Debian/sid/riscv64).

Understood. It seem that the library is compiled by
`-menable-experimental-extensions` options with clang firstly.
But I am not sure clang will support the options in Debian now.

The clang on riscv64 Debian is:

Debian clang version 13.0.1-6


Is the above correct ? Maybe this is just a minor issue with clang,
but I was not sure what was the riscv64 baseline definition on Debian:


This is from my real riscv64 hardware(Unmatched board) running on Debian sid:

```
Target: riscv64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 11.3.0-4' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=riscv64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --disable-multilib --with-arch=rv64gc --with-abi=lp64d --enable-checking=release --build=riscv64-linux-gnu --host=riscv64-linux-gnu --target=riscv64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.3.0 (Debian 11.3.0-4)
COLLECT_GCC_OPTIONS='-v' '--help' '-march=rv64imafdc' '-mabi=lp64d' '-misa-spec=2.2' '-march=rv64imafdc' '-dumpdir' 'a-'
```
Not sure this will help you or not.

BTW, Please let me know if you need my assistant to do test on riscv64 hardware :)

Bo
https://wiki.debian.org/ArchitectureSpecificsMemo#riscv64

ref:
* https://github.com/google/highway/issues/822

--
Best Regards,

Attachment: signature.asc
Description: PGP signature


Reply to: