aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xcgcc3
1 files changed, 3 insertions, 0 deletions
diff --git a/cgcc b/cgcc
index f5a8b352..fc6f50f1 100755
--- a/cgcc
+++ b/cgcc
@@ -294,6 +294,9 @@ sub add_specs {
return (' -D_BIG_ENDIAN' .
' --arch=s390x' .
&float_types (1, 1, 36, [24,8], [53,11], [113,15]));
+ } elsif ($spec eq 'riscv32') {
+ return (' --arch=riscv32' .
+ &float_types (1, 1, 33, [24,8], [53,11], [53,11]));
} elsif ($spec eq 'riscv64') {
return (' --arch=riscv64' .
&float_types (1, 1, 33, [24,8], [53,11], [113,15]));