diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-06-21 14:21:55 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-06-21 14:23:37 +0200 |
| commit | 8ff29ae4526ace757c07ad2d27a8282dd2ec83dd (patch) | |
| tree | f9841f14adbed9262564f98235666e01a851e323 | |
| parent | e0306fe0b725af6e2e7ff59d7f0d99c96315791a (diff) | |
| download | sparse-dev-8ff29ae4526ace757c07ad2d27a8282dd2ec83dd.tar.gz | |
cgcc: teach cgcc about arm
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
| -rwxr-xr-x | cgcc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -295,6 +295,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 'arm') { + return (' -D__arm__=1 -m32' . + &float_types (1, 1, 36, [24,8], [53,11], [53, 11])); } elsif ($spec eq 'aarch64') { return (' -D__aarch64__=1 -m64' . &float_types (1, 1, 36, [24,8], [53,11], [113,15])); @@ -321,6 +324,8 @@ sub add_specs { return &add_specs ('s390x'); } elsif ($arch =~ /^(sparc64)$/i) { return &add_specs ('sparc64'); + } elsif ($arch =~ /^(arm)$/i) { + return &add_specs ('arm'); } elsif ($arch =~ /^(aarch64)$/i) { return &add_specs ('aarch64'); } |
