aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-12-15 09:08:25 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-12-16 10:27:00 +0100
commit3e22c198adfb10614cd7455b97596f5222e2035d (patch)
tree1462732ef2940659a96cf0205d8aa3df23aa9768
parent7e553dc534193740b0c25a5e47aba26f25b90a1a (diff)
downloadsparse-3e22c198adfb10614cd7455b97596f5222e2035d.tar.gz
cgcc: rename 'ppc64+{be,le}' to 'ppc64{be,le}'
The spec names 'ppc64+{be,le}' had the '+' to force them to be internal names but are also useful as external names (it helps to make systematic testing of the arch-specific code). So rename them to 'ppc64{be,le}'. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rwxr-xr-xcgcc10
1 files changed, 5 insertions, 5 deletions
diff --git a/cgcc b/cgcc
index fc6f50f1..9c6ad883 100755
--- a/cgcc
+++ b/cgcc
@@ -286,9 +286,9 @@ 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' .
@@ -328,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') {
@@ -353,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) {