Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Add -mlong-double-64 option #122

Open
wants to merge 1 commit into
base: riscv-gcc-7.2.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gcc/config/riscv/riscv.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ along with GCC; see the file COPYING3. If not see

#define FLOAT_TYPE_SIZE 32
#define DOUBLE_TYPE_SIZE 64
#define LONG_DOUBLE_TYPE_SIZE 128
#define LONG_DOUBLE_TYPE_SIZE (TARGET_LONG_DOUBLE_64 ? 64 : 128)

/* Allocation boundary (in *bits*) for storing arguments in argument list. */
#define PARM_BOUNDARY BITS_PER_WORD
Expand Down
8 changes: 8 additions & 0 deletions gcc/config/riscv/riscv.opt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ mstrict-align
Target Report Mask(STRICT_ALIGN) Save
Do not generate unaligned memory accesses.

mlong-double-64
Target Report RejectNegative Mask(LONG_DOUBLE_64)
Use 64-bit long double.

mlong-double-128
Target Report RejectNegative InverseMask(LONG_DOUBLE_64)
Use 128-bit long double.

Enum
Name(code_model) Type(enum riscv_code_model)
Known code models (for use with the -mcmodel= option):
Expand Down