From: Mumit Khan Date: Thu, 4 May 2000 18:15:08 +0000 (+0000) Subject: cygwin.h (CPP_PREDEFINES): Don't define __STDC__. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2afc3e479c42804e47a9d30b143d6b5743b97729;p=gcc.git cygwin.h (CPP_PREDEFINES): Don't define __STDC__. 2000-05-04 Mumit Khan * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c84d37b1083..d99e531d9dc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,12 @@ 2000-05-04 Mumit Khan + * 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 db479fad4dd..e8999ddf22f 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 39ad1972c76..53f591d51ec 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 611f6b57e44..af0844cdce5 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. */