diff options
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-12-10 12:46:13 +0100 |
---|---|---|
committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-12-06 22:35:21 +0100 |
commit | 2de2f47f8f7bebf028aac95250af2e3c4af2ca29 (patch) | |
tree | f05e913c0a8af1efa2419188b66315bdddd200f0 | |
parent | 648380c13ecaaa95c9dfbd500039cd9007ec3c20 (diff) | |
download | sparse-2de2f47f8f7bebf028aac95250af2e3c4af2ca29.tar.gz |
cgcc: use 'i386' for the arch instead of 'i86'
cgcc can be used when cross-compiling if the target architecture
is given with '-target=<arch>'.
However, the name that needs to be given for the i386 arch is 'i86'.
Fix this by changing the name 'i86' into 'i386'.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rwxr-xr-x | cgcc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -286,7 +286,7 @@ sub add_specs { " -D'_fastcall=__attribute__((__fastcall__))'" . " -D'__fastcall=__attribute__((__fastcall__))'" . " -D'__declspec(x)=__attribute__((x))'"; - } elsif ($spec eq 'i86') { + } elsif ($spec eq 'i386') { return (' -D__i386=1 -D__i386__=1' . &float_types (1, 1, 21, [24,8], [53,11], [64,15])); } elsif ($spec eq 'sparc') { @@ -341,7 +341,7 @@ sub add_specs { my $arch = `uname -m`; chomp $arch; if ($arch =~ /^(i.?86|athlon)$/i) { - return &add_specs ('i86'); + return &add_specs ('i386'); } elsif ($arch =~ /^(sun4u)$/i) { return &add_specs ('sparc'); } elsif ($arch =~ /^(x86_64)$/i) { |