diff options
author | Mumit Khan <khan@xraylith.wisc.edu> | 2000-05-04 18:15:08 +0000 |
---|---|---|
committer | Mumit Khan <khan@gcc.gnu.org> | 2000-05-04 18:15:08 +0000 |
commit | 2afc3e479c42804e47a9d30b143d6b5743b97729 (patch) | |
tree | f308b525b7f3f491a28237aa2de42b185c3ce816 /gcc | |
parent | d34cba2bac647e5299d8f010491a120a7e468f36 (diff) | |
download | gcc-2afc3e479c42804e47a9d30b143d6b5743b97729.zip gcc-2afc3e479c42804e47a9d30b143d6b5743b97729.tar.gz gcc-2afc3e479c42804e47a9d30b143d6b5743b97729.tar.bz2 |
cygwin.h (CPP_PREDEFINES): Don't define __STDC__.
2000-05-04 Mumit Khan <khan@xraylith.wisc.edu>
* i386/cygwin.h (CPP_PREDEFINES): Don't define __STDC__. Move
attribute macros from here ...
(CPP_SPEC): to here.
* i386/mingw32.h (CPP_PREDEFINES): Likewise.
(CPP_SPEC): Likewise.
* i386/crtdll.h (CPP_PREDEFINES): Delete attribute macros.
From-SVN: r33677
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/i386/crtdll.h | 6 | ||||
-rw-r--r-- | gcc/config/i386/cygwin.h | 10 | ||||
-rw-r--r-- | gcc/config/i386/mingw32.h | 12 |
4 files changed, 21 insertions, 14 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c84d37b..d99e531 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,12 @@ 2000-05-04 Mumit Khan <khan@xraylith.wisc.edu> + * i386/cygwin.h (CPP_PREDEFINES): Don't define __STDC__. Move + attribute macros from here ... + (CPP_SPEC): to here. + * i386/mingw32.h (CPP_PREDEFINES): Likewise. + (CPP_SPEC): Likewise. + * i386/crtdll.h (CPP_PREDEFINES): Delete attribute macros. + * Makefile.in ($(HOST_PREFIX_1)gensupport.o): Add build rule. (libgcc.a): Pass LIB1ASMSRC to libgcc.mk. diff --git a/gcc/config/i386/crtdll.h b/gcc/config/i386/crtdll.h index db479fa..e8999dd 100644 --- a/gcc/config/i386/crtdll.h +++ b/gcc/config/i386/crtdll.h @@ -24,11 +24,7 @@ Boston, MA 02111-1307, USA. */ #undef CPP_PREDEFINES #define CPP_PREDEFINES "-D_WIN32 -DWIN32 \ - -D__MINGW32__=0.2 -DWINNT -D_X86_=1 -D__STDC__=1\ - -D__stdcall=__attribute__((__stdcall__)) \ - -D_stdcall=__attribute__((__stdcall__)) \ - -D__cdecl=__attribute__((__cdecl__)) \ - -D__declspec(x)=__attribute__((x)) \ + -D__MINGW32__=0.2 -DWINNT -D_X86_=1 \ -Asystem(winnt)" #undef LIBGCC_SPEC diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h index 39ad197..53f591d 100644 --- a/gcc/config/i386/cygwin.h +++ b/gcc/config/i386/cygwin.h @@ -66,10 +66,7 @@ Boston, MA 02111-1307, USA. */ #undef CPP_PREDEFINES #define CPP_PREDEFINES "-D_WIN32 \ - -DWINNT -D_X86_=1 -D__STDC__=1\ - -D__stdcall=__attribute__((__stdcall__)) \ - -D__cdecl=__attribute__((__cdecl__)) \ - -D__declspec(x)=__attribute__((x)) \ + -DWINNT -D_X86_=1 \ -Asystem(winnt)" /* Normally, -lgcc is not needed since everything in it is in the DLL, but we @@ -84,6 +81,11 @@ Boston, MA 02111-1307, USA. */ #undef CPP_SPEC #define CPP_SPEC "-remap %(cpp_cpu) %{posix:-D_POSIX_SOURCE} \ + -D__stdcall=__attribute__((__stdcall__)) \ + -D__cdecl=__attribute__((__cdecl__)) \ + %{!ansi:-D_stdcall=__attribute__((__stdcall__)) \ + -D_cdecl=__attribute__((__cdecl__))} \ + -D__declspec(x)=__attribute__((x)) \ %{!mno-cygwin:-D__CYGWIN32__ -D__CYGWIN__} \ %{mno-cygwin:-iwithprefixbefore \ ../../../../%(mingw_include_path)/include/mingw32 -D__MINGW32__=0.2}" diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h index 611f6b5..af0844c 100644 --- a/gcc/config/i386/mingw32.h +++ b/gcc/config/i386/mingw32.h @@ -32,10 +32,6 @@ Boston, MA 02111-1307, USA. */ #undef CPP_PREDEFINES #define CPP_PREDEFINES "-D_WIN32 -DWIN32 \ -D__MINGW32__=0.2 -D__MSVCRT__ -DWINNT -D_X86_=1 \ - -D__stdcall=__attribute__((__stdcall__)) \ - -D_stdcall=__attribute__((__stdcall__)) \ - -D__cdecl=__attribute__((__cdecl__)) \ - -D__declspec(x)=__attribute__((x)) \ -Asystem(winnt)" /* Specific a different directory for the standard include files. */ @@ -46,7 +42,13 @@ Boston, MA 02111-1307, USA. */ #undef CPP_SPEC #define CPP_SPEC \ - "-remap %(cpp_cpu) %{posix:-D_POSIX_SOURCE} %{mthreads:-D_MT}" + "-remap %(cpp_cpu) %{posix:-D_POSIX_SOURCE} %{mthreads:-D_MT} \ + -D__stdcall=__attribute__((__stdcall__)) \ + -D__cdecl=__attribute__((__cdecl__)) \ + %{!ansi:-D_stdcall=__attribute__((__stdcall__)) \ + -D_cdecl=__attribute__((__cdecl__))} \ + -D__declspec(x)=__attribute__((x))" + /* For Windows applications, include more libraries, but always include kernel32. */ |