This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
(971215) patch for i386-cygwin32
- To: egcs-bugs at cygnus dot com
- Subject: (971215) patch for i386-cygwin32
- From: Mumit Khan <khan at xraylith dot wisc dot edu>
- Date: Sun, 21 Dec 1997 01:12:08 -0600
The following patch against egcs-971215 fixes the support for
i386-cygwin32. These changes are due to gcc-2.8.0 merge. These apply
to gcc-2.8.0 as well.
I personally don't like the changes to i386/xm-cygwin32, but I don't see
any other way out right now.
I'll post all the changes to enable i386-mingw32 within the next few days
after I do the final testing (esp to make sure that other targets don't
feel the changes).
Thu Dec 18 18:40:17 1997 Mumit Khan <khan@xraylith.wisc.edu>
Refine support for cygwin32 target.
* 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.
Index: egcs/gcc/config/i386/cygwin32.h
diff -c egcs/gcc/config/i386/cygwin32.h:1.1.1.1 egcs/gcc/config/i386/cygwin32.h:1.2
*** egcs/gcc/config/i386/cygwin32.h:1.1.1.1 Sat Dec 20 12:10:36 1997
--- egcs/gcc/config/i386/cygwin32.h Sat Dec 20 16:34:20 1997
***************
*** 51,57 ****
ld, but that doesn't work just yet. */
#undef LIB_SPEC
! #define LIB_SPEC "-lcygwin %{mwindows:-luser32 -lgdi32 -lcomdlg32} -lkernel32"
#define LINK_SPEC "%{mwindows:--subsystem windows}"
--- 51,58 ----
ld, but that doesn't work just yet. */
#undef LIB_SPEC
! #define LIB_SPEC "-lcygwin %{mwindows:-luser32 -lgdi32 -lcomdlg32} -lkernel32 \
! -ladvapi32 -lshell32"
#define LINK_SPEC "%{mwindows:--subsystem windows}"
***************
*** 209,211 ****
--- 210,214 ----
/* 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: egcs/gcc/config/i386/xm-cygwin32.h
diff -c egcs/gcc/config/i386/xm-cygwin32.h:1.1.1.1 egcs/gcc/config/i386/xm-cygwin32.h:1.2
*** egcs/gcc/config/i386/xm-cygwin32.h:1.1.1.1 Sat Dec 20 12:10:38 1997
--- egcs/gcc/config/i386/xm-cygwin32.h Sun Dec 21 00:50:35 1997
***************
*** 22,27 ****
--- 22,32 ----
#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 '\\'
Regards,
Mumit -- khan@xraylith.wisc.edu
http://www.xraylith.wisc.edu/~khan/