This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Binutils/gas/ld port for RISC-V [PATCH v2]


On Sat, Oct 22, 2016 at 4:30 PM, Palmer Dabbelt <palmer@dabbelt.com> wrote:
>  * https://github.com/riscv/riscv-gnu-toolchain/issues/124 : "sizeof(long
>    double)" is 64-bit on RISC-V, which precludes the use of the Q extension for
>    128-bit floating point.  This may cause an ABI-breakage.

It's slightly worse than just causing a problem for the Q-extension,
it contradicts the most recently published specification:
https://content.riscv.org/wp-content/uploads/2016/06/riscv-spec-v2.1.pdf#page=117
states that sizeof(long double) is 16.

Changing the spec to match gcc is an option of course (we can make
"long double" 64-bit and tell people to use __float128 when it becomes
available).

-s


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]