Sparse itself already add support for it, so add support for it in the wrapper too. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- cgcc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cgcc b/cgcc index ef0375c50..87f4fc3e7 100755 --- a/cgcc +++ b/cgcc @@ -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])); -- 2.24.0