OSDN Git Service

* i386/cygwin32.h (NO_IMPLICIT_EXTERN_C): Don't assume anything
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 21 Dec 1997 21:07:08 +0000 (21:07 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 21 Dec 1997 21:07:08 +0000 (21:07 +0000)
        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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17177 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/cygwin32.h
gcc/config/i386/xm-cygwin32.h

index fb034b4..10ce1a8 100644 (file)
@@ -1,3 +1,18 @@
+Sun Dec 21 22:10:59 1997  Mumit Khan <khan@xraylith.wisc.edu>
+
+       * 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
index 56064be..03e6dd9 100644 (file)
@@ -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
index 745ab58..c8d2627 100644 (file)
@@ -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 '\\'