Zhijin Zeng <[email protected]> 於 2026年7月9日週四 下午3:41寫道: > > From: Zhijin Zeng <[email protected]> > > The RISC-V vector function name mangling specification decorated with OpenMP > has been merged. > > ``` > mangled-vector-name := "_ZGV" <isa> <mask> <len> <parameters> "_" <func-name> > isa := r<lmul> > ``` > > More details in https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/455 > > To support ISA mangles such as `r1`, `r2`, I add a new `extend_isa_mangle` > array. When `vecsize_mangle` is set to `W`, `extend_isa_mangle` is enabled > to support ISA mangles longer than one byte. > > gcc/ChangeLog: > > * cgraph.h (struct cgraph_simd_clone): > * omp-simd-clone.cc (simd_clone_mangle): > --- > gcc/cgraph.h | 5 +++++ > gcc/omp-simd-clone.cc | 5 ++++- > 2 files changed, 9 insertions(+), 1 deletion(-) > > diff --git a/gcc/cgraph.h b/gcc/cgraph.h > index a7e6ab70b6b..7f8403810d1 100644 > --- a/gcc/cgraph.h > +++ b/gcc/cgraph.h > @@ -850,6 +850,11 @@ struct GTY(()) cgraph_simd_clone { > Vector ABI. */ > unsigned char vecsize_mangle; > > + /* When the vecsize_mangle character is 'W', it indicates that > + the ISA mangle will exceed 1 byte, and is thus used to extend > + the ISA mangle. */ > + unsigned char extend_isa_mangle[4]; > +
I incline to just extend `vecsize_mangle` rather than use special char 'W' here, but this involved an interface change here so I can understand why you go this way. Anyway this kinda out of scope of RISC-V, so maybe need OpenMP maintainer (added in cc) to give comment here.
