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

Stefan O'Rear sorear2@gmail.com
Sun Oct 23 00:33:00 GMT 2016


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



More information about the Binutils mailing list