Here is some background: The psABI side is not settled yet, and another community member asked me to explicitly add language on the GCC side to prevent the impression that RISC-V GCC big-endian is stable, or that we will use RISC-V GCC big-endian as the golden standard.
On Mon, Mar 16, 2026 at 5:13 PM Kito Cheng <[email protected]> wrote: > > The RISC-V big-endian ABI is not yet stable, add a note to the > -mbig-endian option documentation to warn users that support is > experimental and could change in incompatible ways. > > gcc/ChangeLog: > > * doc/invoke.texi: Add experimental warning for RISC-V > big-endian support. > --- > gcc/doc/invoke.texi | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi > index 4b820015215..a93aa214565 100644 > --- a/gcc/doc/invoke.texi > +++ b/gcc/doc/invoke.texi > @@ -31304,6 +31304,8 @@ width as the alignment value, and @samp{natural} > which uses natural alignment. > @item -mbig-endian > Generate big-endian code. This is the default when GCC is configured for a > @samp{riscv64be-*-*} or @samp{riscv32be-*-*} target. > +Support for RISC-V big-endian is experimental. The ABI is not yet stable > +and could change in incompatible ways in future releases. > > @opindex mlittle-endian > @item -mlittle-endian > -- > 2.52.0 >
