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

Commit

Permalink
Add -mlong-double-64 option
Browse files Browse the repository at this point in the history
  • Loading branch information
aswaterman committed Feb 15, 2018
1 parent b731149 commit c99bd17
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
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-128
Target Report RejectNegative InverseMask(LONG_DOUBLE_64)
Use 128-bit long double.

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

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

0 comments on commit c99bd17

Please sign in to comment.