[PATCH v3 6/8] RISC-V: Mention -mbig-endian and -mlittle-endian in doc

Marcus Comstedt marcus@mc.pp.se
Tue Jan 5 08:01:59 GMT 2021


Jim Wilson <jimw@sifive.com> writes:

> On Sun, Dec 27, 2020 at 6:54 AM Marcus Comstedt <marcus@mc.pp.se> wrote:
>
>> +   [@b{-mlittle}|@b{-mlittle-endian}|@b{-mbig}|@b{-mbig-endian}]
>>
>
> This is documenting 4 new options, but the part 1 patch only adds two new
> options, -mlittle-endian and -mbig-endian.  So I think we should not be
> documenting the -mbig and -mlittle options as they don't exist.

Well, the shorter options do exist in the sense that the longer ones
can be abbreviated.  Documenting the abbreviations would function as
a contract that no options will be added that conflict with the
shorter form.  (But -mb and -ml, while also working, are not
documented, so e.g. -mlong-double could be added without problem.)
If you do not agree, I'll remove the documentation of the
abbreviations.

PPC also documents both -mlittle and -mlittle-endian, although the
option parsing is implemented differently there.


  // Marcus




More information about the Binutils mailing list