diff mbox series

[01/10] cgcc: add support for riscv32

Message ID 20191216223756.2428-2-luc.vanoostenryck@gmail.com (mailing list archive)
State Mainlined, archived
Headers show
Series move arch specificities in their own files | expand

Commit Message

Luc Van Oostenryck Dec. 16, 2019, 10:37 p.m. UTC
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 cgcc | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/cgcc b/cgcc
index f5a8b3529da2..fc6f50f103eb 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]));