diff options
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2019-11-27 02:48:51 +0100 |
---|---|---|
committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2019-11-28 01:12:12 +0100 |
commit | 9b2efc158c5c9700ffe355c59356879df7c9cc12 (patch) | |
tree | a95b54a9a2e797e7d4705d35f979a7e94edada97 | |
parent | c989ef7d0ad90f52bb35c48ce3c2e716b09ca2a4 (diff) | |
download | sparse-9b2efc158c5c9700ffe355c59356879df7c9cc12.tar.gz |
cgcc: add support for riscv64
Sparse itself already add support for it, so add
support for it in the wrapper too.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rwxr-xr-x | cgcc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -292,6 +292,9 @@ sub add_specs { return (' -D_BIG_ENDIAN' . ' --arch=s390x' . &float_types (1, 1, 36, [24,8], [53,11], [113,15])); + } elsif ($spec eq 'riscv64') { + return (' --arch=riscv64' . + &float_types (1, 1, 33, [24,8], [53,11], [113,15])); } elsif ($spec eq 'arm') { return (' --arch=arm' . &float_types (1, 1, 36, [24,8], [53,11], [53, 11])); |