From: Mumit Khan Date: Sun, 21 Dec 1997 21:07:08 +0000 (+0000) Subject: cygwin32.h (NO_IMPLICIT_EXTERN_C): Don't assume anything about system headers. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=058536407a9745940be25c3ad21fe41a235de8bd;p=platform%2Fupstream%2Fgcc.git cygwin32.h (NO_IMPLICIT_EXTERN_C): Don't assume anything about system headers. * i386/cygwin32.h (NO_IMPLICIT_EXTERN_C): Don't assume anything about system headers. (LIB_SPEC): Add -ladvapi32 -lshell32 to be consistent with mingw32 and also to resolve symbols in prefix.c. * i386/xm-cygwin32.h (HAVE_BCOPY): Define. This avoids a conflict between gansidecl.h and newlib's _ansi.h when building libgcc2.a, when the definitions in auto-config.h is not visible. (HAVE_BZERO): Likewise. (HAVE_BCMP): Likewise. (HAVE_RINDEX): Likewise. (HAVE_INDEX): Likewise. From-SVN: r17177 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fb034b4..10ce1a8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,18 @@ +Sun Dec 21 22:10:59 1997 Mumit Khan + + * i386/cygwin32.h (NO_IMPLICIT_EXTERN_C): Don't assume anything + about system headers. + (LIB_SPEC): Add -ladvapi32 -lshell32 to be consistent with mingw32 + and also to resolve symbols in prefix.c. + + * i386/xm-cygwin32.h (HAVE_BCOPY): Define. This avoids a conflict + between gansidecl.h and newlib's _ansi.h when building libgcc2.a, + when the definitions in auto-config.h is not visible. + (HAVE_BZERO): Likewise. + (HAVE_BCMP): Likewise. + (HAVE_RINDEX): Likewise. + (HAVE_INDEX): Likewise. + Sun Dec 21 21:54:22 1997 Jeffrey A Law (law@cygnus.com) * pa.c (emit_move_sequence): Handle a function label source diff --git a/gcc/config/i386/cygwin32.h b/gcc/config/i386/cygwin32.h index 56064be..03e6dd9 100644 --- a/gcc/config/i386/cygwin32.h +++ b/gcc/config/i386/cygwin32.h @@ -51,7 +51,8 @@ Boston, MA 02111-1307, USA. */ ld, but that doesn't work just yet. */ #undef LIB_SPEC -#define LIB_SPEC "-lcygwin %{mwindows:-luser32 -lgdi32 -lcomdlg32} -lkernel32" +#define LIB_SPEC "-lcygwin %{mwindows:-luser32 -lgdi32 -lcomdlg32} -lkernel32 \ + -ladvapi32 -lshell32" #define LINK_SPEC "%{mwindows:--subsystem windows}" @@ -209,3 +210,5 @@ do { \ /* DWARF2 Unwinding doesn't work with exception handling yet. */ #define DWARF2_UNWIND_INFO 0 +/* Don't assume anything about the header files. */ +#define NO_IMPLICIT_EXTERN_C diff --git a/gcc/config/i386/xm-cygwin32.h b/gcc/config/i386/xm-cygwin32.h index 745ab58..c8d2627 100644 --- a/gcc/config/i386/xm-cygwin32.h +++ b/gcc/config/i386/xm-cygwin32.h @@ -22,6 +22,11 @@ Boston, MA 02111-1307, USA. */ #define NO_STAB_H #define EXECUTABLE_SUFFIX ".exe" #define NO_SYS_SIGLIST 1 +#define HAVE_BCOPY 1 +#define HAVE_BZERO 1 +#define HAVE_BCMP 1 +#define HAVE_RINDEX 1 +#define HAVE_INDEX 1 /* Even though we support "/", allow "\" since everybody tests both. */ #define DIR_SEPARATOR '\\'