public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/108927] New: error: too few arguments to function 'long unsigned int __riscv_vsetvlmax_e8mf8(void)'
@ 2023-02-24 16:37 malat at debian dot org
  2023-02-24 16:45 ` [Bug target/108927] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: malat at debian dot org @ 2023-02-24 16:37 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108927
           Summary: error: too few arguments to function 'long unsigned
                    int __riscv_vsetvlmax_e8mf8(void)'
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: malat at debian dot org
  Target Milestone: ---

For some reason riscv64 rvv extension is broken. It is supposed to work with
the new naming convention:

* https://www.mail-archive.com/gcc-patches@gcc.gnu.org/msg298381.html

  % head ./gcc/testsuite/gcc.target/riscv/rvv/base/vsetvl-1.c
  /* { dg-do compile } */
  /* { dg-options "-march=rv32gcv -mabi=ilp32d -O3" } */

However consider now

```
% cat t.c
#include <riscv_vector.h>

int main()
{
   size_t vl = __riscv_vsetvlmax_e8mf8();
   return vl;
}
```

gives:

```
g++  -march=rv64gcv1p0   t.c
t.c: In function 'int main()':
t.c:5:39: error: too few arguments to function 'long unsigned int
__riscv_vsetvlmax_e8mf8(void)'
    5 |    size_t vl = __riscv_vsetvlmax_e8mf8();
      |                ~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from t.c:1:
/usr/lib/gcc-snapshot/lib/gcc/riscv64-linux-gnu/13/include/riscv_vector.h:94:25:
note: declared here
   94 | #pragma riscv intrinsic "vector"
      |                         ^~~~~~~~
```

Full log:


 % LIBRARY_PATH=/usr/lib/gcc-snapshot/lib /usr/lib/gcc-snapshot/bin/g++ 
-march=rv64gcv1p0 -v   t.c
Using built-in specs.
COLLECT_GCC=/usr/lib/gcc-snapshot/bin/g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc-snapshot/libexec/gcc/riscv64-linux-gnu/13/lto-wrapper
Target: riscv64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 20230108-1'
--with-bugurl=file:///usr/share/doc/gcc-snapshot/README.Bugs
--enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2,rust
--prefix=/usr/lib/gcc-snapshot --with-gcc-major-version-only --program-prefix=
--enable-shared --enable-linker-build-id --disable-nls --enable-bootstrap
--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
--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=yes --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 13.0.0 20230108 (experimental) [master r13-5059-gd901bf8a44a]
(Debian 20230108-1)
COLLECT_GCC_OPTIONS='-march=rv64gcv1p0' '-v' '-shared-libgcc' '-mabi=lp64d'
'-misa-spec=20191213'
'-march=rv64imafdc_v1p0_zicsr_zifencei_zve32f_zve32x_zve64d_zve64f_zve64x_zvl128b_zvl32b_zvl64b'
'-dumpdir' 'a-'
 /usr/lib/gcc-snapshot/libexec/gcc/riscv64-linux-gnu/13/cc1plus -quiet -v
-imultilib . -imultiarch riscv64-linux-gnu -D_GNU_SOURCE t.c -quiet -dumpdir a-
-dumpbase t.c -dumpbase-ext .c -march=rv64gcv1p0 -mabi=lp64d
-misa-spec=20191213
-march=rv64imafdc_v1p0_zicsr_zifencei_zve32f_zve32x_zve64d_zve64f_zve64x_zvl128b_zvl32b_zvl64b
-version -o /tmp/ccVVv6RI.s
GNU C++17 (Debian 20230108-1) version 13.0.0 20230108 (experimental) [master
r13-5059-gd901bf8a44a] (riscv64-linux-gnu)
        compiled by GNU C version 13.0.0 20230108 (experimental) [master
r13-5059-gd901bf8a44a], GMP version 6.2.1, MPFR version 4.1.1-p1, MPC version
1.3.1, isl version isl-0.25-GMP

warning: MPFR header version 4.1.1-p1 differs from library version 4.2.0.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring nonexistent directory "/usr/local/include/riscv64-linux-gnu"
ignoring nonexistent directory
"/usr/lib/gcc-snapshot/lib/gcc/riscv64-linux-gnu/13/include-fixed/riscv64-linux-gnu"
ignoring nonexistent directory
"/usr/lib/gcc-snapshot/lib/gcc/riscv64-linux-gnu/13/include-fixed"
ignoring nonexistent directory
"/usr/lib/gcc-snapshot/lib/gcc/riscv64-linux-gnu/13/../../../../riscv64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc-snapshot/lib/gcc/riscv64-linux-gnu/13/../../../../include/c++/13

/usr/lib/gcc-snapshot/lib/gcc/riscv64-linux-gnu/13/../../../../include/c++/13/riscv64-linux-gnu/.

/usr/lib/gcc-snapshot/lib/gcc/riscv64-linux-gnu/13/../../../../include/c++/13/backward
 /usr/lib/gcc-snapshot/lib/gcc/riscv64-linux-gnu/13/include
 /usr/local/include
 /usr/lib/gcc-snapshot/include
 /usr/include/riscv64-linux-gnu
 /usr/include
End of search list.
GNU C++17 (Debian 20230108-1) version 13.0.0 20230108 (experimental) [master
r13-5059-gd901bf8a44a] (riscv64-linux-gnu)
        compiled by GNU C version 13.0.0 20230108 (experimental) [master
r13-5059-gd901bf8a44a], GMP version 6.2.1, MPFR version 4.1.1-p1, MPC version
1.3.1, isl version isl-0.25-GMP

warning: MPFR header version 4.1.1-p1 differs from library version 4.2.0.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 8b0a1f9bde5380a9cce8ac18dbcd4399
t.c: In function 'int main()':
t.c:5:39: error: too few arguments to function 'long unsigned int
__riscv_vsetvlmax_e8mf8(void)'
    5 |    size_t vl = __riscv_vsetvlmax_e8mf8();
      |                ~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from t.c:1:
/usr/lib/gcc-snapshot/lib/gcc/riscv64-linux-gnu/13/include/riscv_vector.h:94:25:
note: declared here
   94 | #pragma riscv intrinsic "vector"
      |                         ^~~~~~~~

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/108927] error: too few arguments to function 'long unsigned int __riscv_vsetvlmax_e8mf8(void)'
  2023-02-24 16:37 [Bug c++/108927] New: error: too few arguments to function 'long unsigned int __riscv_vsetvlmax_e8mf8(void)' malat at debian dot org
@ 2023-02-24 16:45 ` pinskia at gcc dot gnu.org
  2023-02-27  8:03 ` juzhe.zhong at rivai dot ai
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-02-24 16:45 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
You are using a month old sources, can you try with a much newer trunk sources?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/108927] error: too few arguments to function 'long unsigned int __riscv_vsetvlmax_e8mf8(void)'
  2023-02-24 16:37 [Bug c++/108927] New: error: too few arguments to function 'long unsigned int __riscv_vsetvlmax_e8mf8(void)' malat at debian dot org
  2023-02-24 16:45 ` [Bug target/108927] " pinskia at gcc dot gnu.org
@ 2023-02-27  8:03 ` juzhe.zhong at rivai dot ai
  2023-03-08 22:27 ` juzhe.zhong at rivai dot ai
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: juzhe.zhong at rivai dot ai @ 2023-02-27  8:03 UTC (permalink / raw)
  To: gcc-bugs

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

JuzheZhong <juzhe.zhong at rivai dot ai> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |juzhe.zhong at rivai dot ai

--- Comment #2 from JuzheZhong <juzhe.zhong at rivai dot ai> ---
Hi, thank you so much for reporting issues of RVV.

I fixed this issue here and it will be merged soon:
https://gcc.gnu.org/pipermail/gcc-patches/2023-February/612858.html

Any issues related to RVV, feel free to assigne me.

Thanks.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/108927] error: too few arguments to function 'long unsigned int __riscv_vsetvlmax_e8mf8(void)'
  2023-02-24 16:37 [Bug c++/108927] New: error: too few arguments to function 'long unsigned int __riscv_vsetvlmax_e8mf8(void)' malat at debian dot org
  2023-02-24 16:45 ` [Bug target/108927] " pinskia at gcc dot gnu.org
  2023-02-27  8:03 ` juzhe.zhong at rivai dot ai
@ 2023-03-08 22:27 ` juzhe.zhong at rivai dot ai
  2023-03-16  8:30 ` malat at debian dot org
  2023-03-23 15:57 ` malat at debian dot org
  4 siblings, 0 replies; 6+ messages in thread
From: juzhe.zhong at rivai dot ai @ 2023-03-08 22:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from JuzheZhong <juzhe.zhong at rivai dot ai> ---
This issue should be fixed since patch is merged.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/108927] error: too few arguments to function 'long unsigned int __riscv_vsetvlmax_e8mf8(void)'
  2023-02-24 16:37 [Bug c++/108927] New: error: too few arguments to function 'long unsigned int __riscv_vsetvlmax_e8mf8(void)' malat at debian dot org
                   ` (2 preceding siblings ...)
  2023-03-08 22:27 ` juzhe.zhong at rivai dot ai
@ 2023-03-16  8:30 ` malat at debian dot org
  2023-03-23 15:57 ` malat at debian dot org
  4 siblings, 0 replies; 6+ messages in thread
From: malat at debian dot org @ 2023-03-16  8:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Mathieu Malaterre <malat at debian dot org> ---
> This issue should be fixed since patch is merged.

Shouldn't you also include a reference / mark the bug as assigned+confirmed ?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/108927] error: too few arguments to function 'long unsigned int __riscv_vsetvlmax_e8mf8(void)'
  2023-02-24 16:37 [Bug c++/108927] New: error: too few arguments to function 'long unsigned int __riscv_vsetvlmax_e8mf8(void)' malat at debian dot org
                   ` (3 preceding siblings ...)
  2023-03-16  8:30 ` malat at debian dot org
@ 2023-03-23 15:57 ` malat at debian dot org
  4 siblings, 0 replies; 6+ messages in thread
From: malat at debian dot org @ 2023-03-23 15:57 UTC (permalink / raw)
  To: gcc-bugs

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

Mathieu Malaterre <malat at debian dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
                 CC|                            |kito at gcc dot gnu.org
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #5 from Mathieu Malaterre <malat at debian dot org> ---
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=f8ba8a45edcff7fe117f88deff7184dffe3af311

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-03-23 15:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-24 16:37 [Bug c++/108927] New: error: too few arguments to function 'long unsigned int __riscv_vsetvlmax_e8mf8(void)' malat at debian dot org
2023-02-24 16:45 ` [Bug target/108927] " pinskia at gcc dot gnu.org
2023-02-27  8:03 ` juzhe.zhong at rivai dot ai
2023-03-08 22:27 ` juzhe.zhong at rivai dot ai
2023-03-16  8:30 ` malat at debian dot org
2023-03-23 15:57 ` malat at debian dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).