aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgcc
diff options
context:
space:
mode:
Diffstat (limited to 'cgcc')
-rwxr-xr-xcgcc13
1 files changed, 8 insertions, 5 deletions
diff --git a/cgcc b/cgcc
index f5a8b352..9c6ad883 100755
--- a/cgcc
+++ b/cgcc
@@ -286,14 +286,17 @@ sub add_specs {
return (
' --arch=ppc64' .
&float_types (1, 1, 21, [24,8], [53,11], [113,15]));
- } elsif ($spec eq 'ppc64+be') {
+ } elsif ($spec eq 'ppc64be') {
return &add_specs ('ppc64') . ' -mbig-endian -D_CALL_ELF=1';
- } elsif ($spec eq 'ppc64+le') {
+ } elsif ($spec eq 'ppc64le') {
return &add_specs ('ppc64') . ' -mlittle-endian -D_CALL_ELF=2';
} elsif ($spec eq 's390x') {
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]));
@@ -325,7 +328,7 @@ sub add_specs {
} elsif ($gccmachine =~ '^i[23456]86-') {
return &add_specs ('i386');
} elsif ($gccmachine =~ '^(powerpc|ppc)64le-') {
- return &add_specs ('ppc64+le');
+ return &add_specs ('ppc64le');
} elsif ($gccmachine =~ '^s390x-') {
return &add_specs ('s390x');
} elsif ($gccmachine eq 'x86_64-linux-gnux32') {
@@ -350,9 +353,9 @@ sub add_specs {
} elsif ($arch =~ /^(ppc)$/i) {
return &add_specs ('ppc');
} elsif ($arch =~ /^(ppc64)$/i) {
- return &add_specs ('ppc64+be');
+ return &add_specs ('ppc64be');
} elsif ($arch =~ /^(ppc64le)$/i) {
- return &add_specs ('ppc64+le');
+ return &add_specs ('ppc64le');
} elsif ($arch =~ /^(s390x)$/i) {
return &add_specs ('s390x');
} elsif ($arch =~ /^(sparc64)$/i) {