diff options
author | no-author <no-author@gcc.gnu.org> | 1999-03-27 17:33:36 +0000 |
---|---|---|
committer | no-author <no-author@gcc.gnu.org> | 1999-03-27 17:33:36 +0000 |
commit | 39afd5f60ec2fbd0c7b54a02190496d0d8ddf1a3 (patch) | |
tree | 6334557b4720da0ed086baaaa7673961de015cbe /gcc/config/rs6000/cygwin.h | |
parent | 988a45aa5452e434199d8e5f761ed7173e9c5862 (diff) |
This commit was manufactured by cvs2svn to create branch
'egcs_gc_branch'.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/egcs_gc_branch@26021 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000/cygwin.h')
-rw-r--r-- | gcc/config/rs6000/cygwin.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/gcc/config/rs6000/cygwin.h b/gcc/config/rs6000/cygwin.h new file mode 100644 index 00000000000..0ed448b2124 --- /dev/null +++ b/gcc/config/rs6000/cygwin.h @@ -0,0 +1,67 @@ +/* Operating system specific defines to be used when targeting GCC for + hosting on Windows NT 3.x, using the Cygnus API + + This is different to the winnt.h file, since that is used + to build GCC for use with a windows style library and tool + set, winnt.h uses the Microsoft tools to do that. + + Copyright (C) 1996, 1997 Free Software Foundation, Inc. + +This file is part of GNU CC. + +GNU CC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU CC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU CC; see the file COPYING. If not, write to +the Free Software Foundation, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + + +/* Ugly hack */ +#include "rs6000/win-nt.h" + + +#ifdef CPP_PREDEFINES +#undef CPP_PREDEFINES +#endif + +#define CPP_PREDEFINES "-D_WIN32 -DWINNT -D__CYGWIN__ -D__CYGWIN32__ -DPOSIX \ + -D_POWER -D_ARCH_PPC -D__PPC__ -Asystem(winnt) -Acpu(powerpc) -Amachine(powerpc)" + +#undef CPP_SPEC +#define CPP_SPEC "-remap %{posix: -D_POSIX_SOURCE} %(cpp_cpu)" + +/* We have to dynamic link to get to the system DLLs. All of libc, libm and + the Unix stuff is in cygwin.dll. The import library is called + 'libcygwin.a'. For Windows applications, include more libraries, but + always include kernel32. We'd like to specific subsystem windows to + ld, but that doesn't work just yet. */ + +#undef LIB_SPEC +#define LIB_SPEC "-lcygwin %{mwindows:-luser32 -lgdi32 -lcomdlg32} -lkernel32" + +#undef LINK_SPEC +#define LINK_SPEC "%{v:-V}" + +#undef STARTFILE_SPEC +#define STARTFILE_SPEC "crti%O%s crt0%O%s" + +#undef ENDFILE_SPEC +#define ENDFILE_SPEC "crtn%O%s" + +#define PTRDIFF_TYPE "int" +#define WCHAR_UNSIGNED 1 +#define WCHAR_TYPE_SIZE 16 +#define WCHAR_TYPE "short unsigned int" + +#define DBX_DEBUGGING_INFO +#undef SDB_DEBUGGING_INFO +#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG |