Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <65f31ff1-e386-ad20-5260-d07bdd2a4c20@ispras.ru>
Date: Sun, 4 Oct 2026 10:14:21 +0300 (MSK)
From: Alexander Monakov <amonakov@...ras.ru>
To: musl@...ts.openwall.com
cc: Rich Felker <dalias@...c.org>, 
    Alex Rønne Petersen <alex@...xrp.com>
Subject: Re: [PATCH] riscv: declare all vector registers as clobbers
 of syscalls


On Sun, 4 Oct 2026, Alex Rønne Petersen wrote:

> > Is there a predefined macro that declares the availability of these
> > registers that we could use? I really do not want to hard-code
> > particular gcc or clang versions.
> 
> Unfortunately no:
> 
>     $ riscv64-linux-gnu-gcc -march=rv64gc -dM -E - < /dev/null | grep __riscv

But this is not the right test. You have to diff -E -dM from two runs, one with
-march=rv64gc, another with -march=rv64gcv (and you'll find __riscv_vector).

HTH
Alexander

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.