On Thu, Jul 09, 2026 at 11:53:51AM +0200, Jakub Jelinek wrote:
> On Thu, Jul 09, 2026 at 05:45:33PM +0800, Zhijin Zeng wrote:
> > Hi Jakub
> > I originally planned to leave out the letter "r". However, following
> > Craig Topper's suggestion, I think it is more suitable to add an "r" to
> > represent the risc-v isa. Otherwise, using only numbers such as 1, 2, 4 and
> > 8 to denote the risc-v isa would lack clarity.
>
> The important thing about mangling is compactness (and of course that
> different functions mangle differently), not clarity.
> A demangler (if it exists for it) can print whatever it wants to make things
> clear.
E.g. the x86 choice of x, y, Y, z, Z, b, c, d, e, while the Intel
xyYzZ letters could be considered at least a little bit descriptive (XMM
(SSE2), YMM1 (AVX1), YMM2 (AVX2), MIC, ZMM (AVX512)), b, c, d, e are
just consecutive letters (for the GNU SSE2, AVX1, AVX2 and AVX512F).
Nobody is using sse2, avx, avx2 etc. there instead.
If some future RISC-V comes with a different incompatible vector extension,
you can always just pick other letters, no need to reuse 1248.
Jakub