aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgcc
diff options
Diffstat (limited to 'cgcc')
-rwxr-xr-xcgcc4
1 files changed, 3 insertions, 1 deletions
diff --git a/cgcc b/cgcc
index e6541d36..f5a8b352 100755
--- a/cgcc
+++ b/cgcc
@@ -254,7 +254,8 @@ sub add_specs {
} elsif ( $spec =~ /^cygwin/) {
return &add_specs ('unix') .
' -fshort-wchar' .
- ' -D__CYGWIN__=1 -D__CYGWIN32__=1' .
+ ' -D__CYGWIN__=1' .
+ ($m32 ? ' -D__CYGWIN32__=1' : '') .
" -D'_cdecl=__attribute__((__cdecl__))'" .
" -D'__cdecl=__attribute__((__cdecl__))'" .
" -D'_stdcall=__attribute__((__stdcall__))'" .
@@ -263,6 +264,7 @@ sub add_specs {
" -D'__fastcall=__attribute__((__fastcall__))'" .
" -D'__declspec(x)=__attribute__((x))'";
} elsif ($spec eq 'i386') {
+ $m32 = 1;
return (
' --arch=i386' .
&float_types (1, 1, 21, [24,8], [53,11], [64,15]));