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

Commit c99bd17

Browse files
committed
Add -mlong-double-64 option
1 parent b731149 commit c99bd17

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

gcc/config/riscv/riscv.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ along with GCC; see the file COPYING3. If not see
115115

116116
#define FLOAT_TYPE_SIZE 32
117117
#define DOUBLE_TYPE_SIZE 64
118-
#define LONG_DOUBLE_TYPE_SIZE 128
118+
#define LONG_DOUBLE_TYPE_SIZE (TARGET_LONG_DOUBLE_64 ? 64 : 128)
119119

120120
/* Allocation boundary (in *bits*) for storing arguments in argument list. */
121121
#define PARM_BOUNDARY BITS_PER_WORD

gcc/config/riscv/riscv.opt

+8
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ mstrict-align
8888
Target Report Mask(STRICT_ALIGN) Save
8989
Do not generate unaligned memory accesses.
9090

91+
mlong-double-128
92+
Target Report RejectNegative InverseMask(LONG_DOUBLE_64)
93+
Use 128-bit long double.
94+
95+
mlong-double-64
96+
Target Report RejectNegative Mask(LONG_DOUBLE_64)
97+
Use 64-bit long double.
98+
9199
Enum
92100
Name(code_model) Type(enum riscv_code_model)
93101
Known code models (for use with the -mcmodel= option):

0 commit comments

Comments
 (0)