aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rwxr-xr-xcgcc5
1 files changed, 5 insertions, 0 deletions
diff --git a/cgcc b/cgcc
index fd9d482f..904695c8 100755
--- a/cgcc
+++ b/cgcc
@@ -289,6 +289,9 @@ sub add_specs {
&float_types (1, 1, 36, [24,8], [53,11], [113,15]) .
&define_size_t ("long unsigned int") .
' -D__SIZEOF_POINTER__=' . ($m64 ? '8' : '4'));
+ } elsif ($spec eq 'aarch64') {
+ return (' -D__aarch64__=1 -m64' .
+ &float_types (1, 1, 36, [24,8], [53,11], [113,15]));
} elsif ($spec eq 'host_os_specs') {
my $os = `uname -s`;
chomp $os;
@@ -308,6 +311,8 @@ sub add_specs {
return &add_specs ('s390x');
} elsif ($arch =~ /^(sparc64)$/i) {
return &add_specs ('sparc64');
+ } elsif ($arch =~ /^(aarch64)$/i) {
+ return &add_specs ('aarch64');
}
} else {
die "$0: invalid specs: $spec\n";