Commit cae21ae8 by Geoffrey Noer Committed by Jim Wilson

Jumbo patch from Geoff Noer to rename CYGWIN32 to CYGWIN.

From-SVN: r23622
parent 15fdcfe9
Thu Nov 12 19:20:57 1998 Geoffrey Noer <noer@cygnus.com>
* i386/cygwin32.asm: Delete.
* i386/cygwin.asm: New file, renamed from cygwin32.asm.
* i386/cygwin32.h: Delete.
* i386/cygwin.h: New file, renamed from cygwin32.h.
* i386/t-cygwin32: Delete.
* i386/t-cygwin: New file, renamed from t-cygwin32. Include
cygwin.asm instead of cygwin32.asm. Remove "32" from comment.
* i386/x-cygwin32: Delete.
* i386/x-cygwin: New file, renamed from x-cygwin32.
* i386/xm-cygwin32: Delete.
* i386/xm-cygwin: New file, renamed from xm-cygwin32. Use newly
renamed cygwin_ funcs for path translations.
* i386/win32.h: Define __CYGWIN__ when -mcygwin given.
* i386/winnt.c: Remove "32" from comment about cygwin.
* i386/mingw32.h: Fix references to cygwin32.h in light of above.
* rs6000/cygwin32.h: Delete.
* rs6000/cygwin.h: New file, renamed from cygwin32.h. Add
-D__CYGWIN__ to CPP_PREDEFINES.
* rs6000/x-cygwin32: Delete.
* rs6000/x-cygwin: New file, renamed from x-cygwin32.
* rs6000/xm-cygwin32: Delete.
* rs6000/xm-cygwin: New file, renamed from xm-cygwin32.
* configure.in: Check for cygwin* instead of cygwin32. Account
for the rename of cygwin-related config files to lose the "32"s.
* configure: Regenerate.
* cccp.c, collect2.c, gcc.c, getpwd.c, libgcc2.c, protoize.c,
toplev.c: Change all refs to __CYGWIN32__ to __CYGWIN__.
Wed Nov 11 12:25:19 1998 Tom Tromey <tromey@cygnus.com> Wed Nov 11 12:25:19 1998 Tom Tromey <tromey@cygnus.com>
* Makefile.in (JAVAGC): New macro. * Makefile.in (JAVAGC): New macro.
......
...@@ -84,7 +84,7 @@ static int hack_vms_include_specification (); ...@@ -84,7 +84,7 @@ static int hack_vms_include_specification ();
#endif /* VMS */ #endif /* VMS */
/* Windows does not natively support inodes, and neither does MSDOS. */ /* Windows does not natively support inodes, and neither does MSDOS. */
#if (defined (_WIN32) && ! defined (CYGWIN32)) || defined (__MSDOS__) #if (defined (_WIN32) && ! defined (__CYGWIN__)) || defined (__MSDOS__)
#define INO_T_EQ(a, b) 0 #define INO_T_EQ(a, b) 0
#endif #endif
...@@ -4888,10 +4888,10 @@ static int ...@@ -4888,10 +4888,10 @@ static int
absolute_filename (filename) absolute_filename (filename)
char *filename; char *filename;
{ {
#if defined (__MSDOS__) || (defined (_WIN32) && !defined (__CYGWIN32__)) #if defined (__MSDOS__) || (defined (_WIN32) && !defined (__CYGWIN__))
if (ISALPHA (filename[0]) && filename[1] == ':') filename += 2; if (ISALPHA (filename[0]) && filename[1] == ':') filename += 2;
#endif #endif
#if defined (__CYGWIN32__) #if defined (__CYGWIN__)
/* At present, any path that begins with a drive spec is absolute. */ /* At present, any path that begins with a drive spec is absolute. */
if (ISALPHA (filename[0]) && filename[1] == ':') return 1; if (ISALPHA (filename[0]) && filename[1] == ':') return 1;
#endif #endif
......
...@@ -47,7 +47,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -47,7 +47,7 @@ Boston, MA 02111-1307, USA. */
#include "demangle.h" #include "demangle.h"
#include "obstack.h" #include "obstack.h"
#ifdef __CYGWIN32__ #ifdef __CYGWIN__
#include <process.h> #include <process.h>
#endif #endif
...@@ -1721,7 +1721,7 @@ collect_execute (prog, argv, redir) ...@@ -1721,7 +1721,7 @@ collect_execute (prog, argv, redir)
if (argv[0] == 0) if (argv[0] == 0)
fatal ("cannot find `%s'", prog); fatal ("cannot find `%s'", prog);
#ifndef __CYGWIN32__ #ifndef __CYGWIN__
pid = vfork (); pid = vfork ();
if (pid == -1) if (pid == -1)
fatal_perror (VFORK_STRING); fatal_perror (VFORK_STRING);
......
...@@ -21,10 +21,10 @@ along with GNU CC; see the file COPYING. If not, write to ...@@ -21,10 +21,10 @@ along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* Most of this is the same as for Cygwin32, except for changing some /* Most of this is the same as for cygwin, except for changing some
specs. */ specs. */
#include "i386/cygwin32.h" #include "i386/cygwin.h"
/* Please keep changes to CPP_PREDEFINES in sync with i386/crtdll. The /* Please keep changes to CPP_PREDEFINES in sync with i386/crtdll. The
only difference between the two should be __MSVCRT__ needed to only difference between the two should be __MSVCRT__ needed to
......
LIBGCC1 = libgcc1-asm.a LIBGCC1 = libgcc1-asm.a
CROSS_LIBGCC1 = libgcc1-asm.a CROSS_LIBGCC1 = libgcc1-asm.a
LIB1ASMSRC = i386/cygwin32.asm LIB1ASMSRC = i386/cygwin.asm
LIB1ASMFUNCS = _chkstk LIB1ASMFUNCS = _chkstk
# cygwin32 always has a limits.h, but, depending upon how we are doing # cygwin always has a limits.h, but, depending upon how we are doing
# the build, it may not be installed yet. # the build, it may not be installed yet.
LIMITS_H_TEST = true LIMITS_H_TEST = true
......
...@@ -71,7 +71,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -71,7 +71,7 @@ Boston, MA 02111-1307, USA. */
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC "%(cpp_cpu) %{posix:-D_POSIX_SOURCE} \ #define CPP_SPEC "%(cpp_cpu) %{posix:-D_POSIX_SOURCE} \
%{!mcygwin:-iwithprefixbefore include/mingw32 -D__MINGW32__} \ %{!mcygwin:-iwithprefixbefore include/mingw32 -D__MINGW32__} \
%{mcygwin:-D__CYGWIN32__}" %{mcygwin:-D__CYGWIN32__ -D__CYGWIN__}"
/* We have to dynamic link to get to the system DLLs. All of libc, libm and /* 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 the Unix stuff is in cygwin.dll. The import library is called
......
...@@ -493,7 +493,7 @@ i386_pe_unique_section (decl, reloc) ...@@ -493,7 +493,7 @@ i386_pe_unique_section (decl, reloc)
} }
/* The Microsoft linker requires that every function be marked as /* The Microsoft linker requires that every function be marked as
DT_FCN. When using gas on cygwin32, we must emit appropriate .type DT_FCN. When using gas on cygwin, we must emit appropriate .type
directives. */ directives. */
#include "gsyms.h" #include "gsyms.h"
......
...@@ -40,11 +40,11 @@ do { \ ...@@ -40,11 +40,11 @@ do { \
_epath = _win32epath = getenv (NAME); \ _epath = _win32epath = getenv (NAME); \
/* if we have a posix path list, convert to win32 path list */ \ /* if we have a posix path list, convert to win32 path list */ \
if (_epath != NULL && *_epath != 0 \ if (_epath != NULL && *_epath != 0 \
&& cygwin32_posix_path_list_p (_epath)) \ && cygwin_posix_path_list_p (_epath)) \
{ \ { \
_win32epath = (char *) xmalloc \ _win32epath = (char *) xmalloc \
(cygwin32_posix_to_win32_path_list_buf_size (_epath)); \ (cygwin_posix_to_win32_path_list_buf_size (_epath)); \
cygwin32_posix_to_win32_path_list (_epath, _win32epath); \ cygwin_posix_to_win32_path_list (_epath, _win32epath); \
} \ } \
(VAR) = _win32epath; \ (VAR) = _win32epath; \
} while (0) } while (0)
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
to build GCC for use with a windows style library and tool to build GCC for use with a windows style library and tool
set, winnt.h uses the Microsoft tools to do that. set, winnt.h uses the Microsoft tools to do that.
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996, 1997 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -33,9 +33,12 @@ Boston, MA 02111-1307, USA. */ ...@@ -33,9 +33,12 @@ Boston, MA 02111-1307, USA. */
#undef CPP_PREDEFINES #undef CPP_PREDEFINES
#endif #endif
#define CPP_PREDEFINES "-D_WIN32 -DWINNT -D__CYGWIN32__ -DPOSIX \ #define CPP_PREDEFINES "-D_WIN32 -DWINNT -D__CYGWIN__ -D__CYGWIN32__ -DPOSIX \
-D_POWER -D_ARCH_PPC -D__PPC__ -Asystem(winnt) -Acpu(powerpc) -Amachine(powerpc)" -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 /* 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 the Unix stuff is in cygwin.dll. The import library is called
'libcygwin.a'. For Windows applications, include more libraries, but 'libcygwin.a'. For Windows applications, include more libraries, but
......
...@@ -3668,10 +3668,10 @@ for machine in $build $host $target; do ...@@ -3668,10 +3668,10 @@ for machine in $build $host $target; do
xmake_file=i386/x-vsta xmake_file=i386/x-vsta
;; ;;
i[34567]86-*-win32) i[34567]86-*-win32)
xm_file="${xm_file} i386/xm-cygwin32.h" xm_file="${xm_file} i386/xm-cygwin.h"
tmake_file=i386/t-cygwin32 tmake_file=i386/t-cygwin
tm_file=i386/win32.h tm_file=i386/win32.h
xmake_file=i386/x-cygwin32 xmake_file=i386/x-cygwin
extra_objs=winnt.o extra_objs=winnt.o
fixincludes=Makefile.in fixincludes=Makefile.in
if test x$enable_threads = xyes; then if test x$enable_threads = xyes; then
...@@ -3679,11 +3679,11 @@ for machine in $build $host $target; do ...@@ -3679,11 +3679,11 @@ for machine in $build $host $target; do
fi fi
exeext=.exe exeext=.exe
;; ;;
i[34567]86-*-pe | i[34567]86-*-cygwin32) i[34567]86-*-pe | i[34567]86-*-cygwin*)
xm_file="${xm_file} i386/xm-cygwin32.h" xm_file="${xm_file} i386/xm-cygwin.h"
tmake_file=i386/t-cygwin32 tmake_file=i386/t-cygwin
tm_file=i386/cygwin32.h tm_file=i386/cygwin.h
xmake_file=i386/x-cygwin32 xmake_file=i386/x-cygwin
extra_objs=winnt.o extra_objs=winnt.o
fixincludes=Makefile.in fixincludes=Makefile.in
if test x$enable_threads = xyes; then if test x$enable_threads = xyes; then
...@@ -3694,9 +3694,9 @@ for machine in $build $host $target; do ...@@ -3694,9 +3694,9 @@ for machine in $build $host $target; do
i[34567]86-*-mingw32*) i[34567]86-*-mingw32*)
tm_file=i386/mingw32.h tm_file=i386/mingw32.h
xm_file="${xm_file} i386/xm-mingw32.h" xm_file="${xm_file} i386/xm-mingw32.h"
tmake_file="i386/t-cygwin32 i386/t-mingw32" tmake_file="i386/t-cygwin i386/t-mingw32"
extra_objs=winnt.o extra_objs=winnt.o
xmake_file=i386/x-cygwin32 xmake_file=i386/x-cygwin
fixincludes=Makefile.in fixincludes=Makefile.in
if test x$enable_threads = xyes; then if test x$enable_threads = xyes; then
thread_file='win32' thread_file='win32'
...@@ -4976,11 +4976,11 @@ for machine in $build $host $target; do ...@@ -4976,11 +4976,11 @@ for machine in $build $host $target; do
fi fi
extra_headers=ppc-asm.h extra_headers=ppc-asm.h
;; ;;
powerpcle-*-pe | powerpcle-*-cygwin32) powerpcle-*-pe | powerpcle-*-cygwin*)
tm_file=rs6000/cygwin32.h tm_file=rs6000/cygwin.h
xm_file="rs6000/xm-cygwin32.h ${xm_file}" xm_file="rs6000/xm-cygwin.h ${xm_file}"
tmake_file=rs6000/t-winnt tmake_file=rs6000/t-winnt
xmake_file=rs6000/x-cygwin32 xmake_file=rs6000/x-cygwin
# extra_objs=pe.o # extra_objs=pe.o
fixincludes=Makefile.in fixincludes=Makefile.in
if test x$enable_threads = xyes; then if test x$enable_threads = xyes; then
......
...@@ -1447,10 +1447,10 @@ changequote([,])dnl ...@@ -1447,10 +1447,10 @@ changequote([,])dnl
changequote(,)dnl changequote(,)dnl
i[34567]86-*-win32) i[34567]86-*-win32)
changequote([,])dnl changequote([,])dnl
xm_file="${xm_file} i386/xm-cygwin32.h" xm_file="${xm_file} i386/xm-cygwin.h"
tmake_file=i386/t-cygwin32 tmake_file=i386/t-cygwin
tm_file=i386/win32.h tm_file=i386/win32.h
xmake_file=i386/x-cygwin32 xmake_file=i386/x-cygwin
extra_objs=winnt.o extra_objs=winnt.o
fixincludes=Makefile.in fixincludes=Makefile.in
if test x$enable_threads = xyes; then if test x$enable_threads = xyes; then
...@@ -1459,12 +1459,12 @@ changequote([,])dnl ...@@ -1459,12 +1459,12 @@ changequote([,])dnl
exeext=.exe exeext=.exe
;; ;;
changequote(,)dnl changequote(,)dnl
i[34567]86-*-pe | i[34567]86-*-cygwin32) i[34567]86-*-pe | i[34567]86-*-cygwin*)
changequote([,])dnl changequote([,])dnl
xm_file="${xm_file} i386/xm-cygwin32.h" xm_file="${xm_file} i386/xm-cygwin.h"
tmake_file=i386/t-cygwin32 tmake_file=i386/t-cygwin
tm_file=i386/cygwin32.h tm_file=i386/cygwin.h
xmake_file=i386/x-cygwin32 xmake_file=i386/x-cygwin
extra_objs=winnt.o extra_objs=winnt.o
fixincludes=Makefile.in fixincludes=Makefile.in
if test x$enable_threads = xyes; then if test x$enable_threads = xyes; then
...@@ -1477,9 +1477,9 @@ changequote(,)dnl ...@@ -1477,9 +1477,9 @@ changequote(,)dnl
changequote([,])dnl changequote([,])dnl
tm_file=i386/mingw32.h tm_file=i386/mingw32.h
xm_file="${xm_file} i386/xm-mingw32.h" xm_file="${xm_file} i386/xm-mingw32.h"
tmake_file="i386/t-cygwin32 i386/t-mingw32" tmake_file="i386/t-cygwin i386/t-mingw32"
extra_objs=winnt.o extra_objs=winnt.o
xmake_file=i386/x-cygwin32 xmake_file=i386/x-cygwin
fixincludes=Makefile.in fixincludes=Makefile.in
if test x$enable_threads = xyes; then if test x$enable_threads = xyes; then
thread_file='win32' thread_file='win32'
...@@ -2775,11 +2775,11 @@ changequote([,])dnl ...@@ -2775,11 +2775,11 @@ changequote([,])dnl
fi fi
extra_headers=ppc-asm.h extra_headers=ppc-asm.h
;; ;;
powerpcle-*-pe | powerpcle-*-cygwin32) powerpcle-*-pe | powerpcle-*-cygwin*)
tm_file=rs6000/cygwin32.h tm_file=rs6000/cygwin.h
xm_file="rs6000/xm-cygwin32.h ${xm_file}" xm_file="rs6000/xm-cygwin.h ${xm_file}"
tmake_file=rs6000/t-winnt tmake_file=rs6000/t-winnt
xmake_file=rs6000/x-cygwin32 xmake_file=rs6000/x-cygwin
# extra_objs=pe.o # extra_objs=pe.o
fixincludes=Makefile.in fixincludes=Makefile.in
if test x$enable_threads = xyes; then if test x$enable_threads = xyes; then
......
...@@ -2267,7 +2267,7 @@ execute () ...@@ -2267,7 +2267,7 @@ execute ()
for (n_commands = 1, i = 0; i < argbuf_index; i++) for (n_commands = 1, i = 0; i < argbuf_index; i++)
if (strcmp (argbuf[i], "|") == 0) if (strcmp (argbuf[i], "|") == 0)
{ /* each command. */ { /* each command. */
#if defined (__MSDOS__) || (defined (_WIN32) && defined (__CYGWIN32_)) || defined (OS2) || defined (VMS) #if defined (__MSDOS__) || (defined (_WIN32) && defined (__CYGWIN__)) || defined (OS2) || defined (VMS)
fatal ("-pipe not supported"); fatal ("-pipe not supported");
#endif #endif
argbuf[i] = 0; /* termination of command args. */ argbuf[i] = 0; /* termination of command args. */
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
char *xmalloc (); char *xmalloc ();
#if !(defined (VMS) || (defined(_WIN32) && !defined(__CYGWIN32__))) #if !(defined (VMS) || (defined(_WIN32) && !defined(__CYGWIN__)))
/* Get the working directory. Use the PWD environment variable if it's /* Get the working directory. Use the PWD environment variable if it's
set correctly, since this is faster and gives more uniform answers set correctly, since this is faster and gives more uniform answers
...@@ -70,7 +70,7 @@ getpwd () ...@@ -70,7 +70,7 @@ getpwd ()
return p; return p;
} }
#else /* VMS || _WIN32 && !__CYGWIN32__ */ #else /* VMS || _WIN32 && !__CYGWIN__ */
#ifndef MAXPATHLEN #ifndef MAXPATHLEN
#define MAXPATHLEN 255 #define MAXPATHLEN 255
...@@ -90,4 +90,4 @@ getpwd () ...@@ -90,4 +90,4 @@ getpwd ()
return pwd; return pwd;
} }
#endif /* VMS || _WIN32 && !__CYGWIN32__ */ #endif /* VMS || _WIN32 && !__CYGWIN__ */
...@@ -2572,7 +2572,7 @@ __clear_cache (char *beg, char *end) ...@@ -2572,7 +2572,7 @@ __clear_cache (char *beg, char *end)
/* Jump to a trampoline, loading the static chain address. */ /* Jump to a trampoline, loading the static chain address. */
#if defined(WINNT) && ! defined(__CYGWIN32__) #if defined(WINNT) && ! defined(__CYGWIN__)
long getpagesize() long getpagesize()
{ {
...@@ -2810,7 +2810,7 @@ cacheflush (char *beg, int size, int flag) ...@@ -2810,7 +2810,7 @@ cacheflush (char *beg, int size, int flag)
#endif /* sony_news */ #endif /* sony_news */
#endif /* L_trampoline */ #endif /* L_trampoline */
#ifndef __CYGWIN32__ #ifndef __CYGWIN__
#ifdef L__main #ifdef L__main
#include "gbl-ctors.h" #include "gbl-ctors.h"
...@@ -2892,7 +2892,7 @@ SYMBOL__MAIN () ...@@ -2892,7 +2892,7 @@ SYMBOL__MAIN ()
#endif /* no HAS_INIT_SECTION or INVOKE__main */ #endif /* no HAS_INIT_SECTION or INVOKE__main */
#endif /* L__main */ #endif /* L__main */
#endif /* __CYGWIN32__ */ #endif /* __CYGWIN__ */
#ifdef L_ctors #ifdef L_ctors
......
...@@ -59,7 +59,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -59,7 +59,7 @@ Boston, MA 02111-1307, USA. */
#include "system.h" #include "system.h"
#include <sys/stat.h> #include <sys/stat.h>
#if ! defined (_WIN32) || defined (__CYGWIN32__) #if ! defined (_WIN32) || defined (__CYGWIN__)
#if defined(POSIX) || defined(CONCURRENT) #if defined(POSIX) || defined(CONCURRENT)
#include <dirent.h> #include <dirent.h>
#else #else
......
...@@ -1252,7 +1252,7 @@ get_run_time () ...@@ -1252,7 +1252,7 @@ get_run_time ()
#ifdef __BEOS__ #ifdef __BEOS__
return 0; return 0;
#else /* not BeOS */ #else /* not BeOS */
#if defined (_WIN32) && !defined (__CYGWIN32__) #if defined (_WIN32) && !defined (__CYGWIN__)
if (clock() < 0) if (clock() < 0)
return 0; return 0;
else else
...@@ -4947,7 +4947,7 @@ main (argc, argv) ...@@ -4947,7 +4947,7 @@ main (argc, argv)
compile_file (filename); compile_file (filename);
#if !defined(OS2) && !defined(VMS) && (!defined(_WIN32) || defined (__CYGWIN32__)) #if !defined(OS2) && !defined(VMS) && (!defined(_WIN32) || defined (__CYGWIN__))
if (flag_print_mem) if (flag_print_mem)
{ {
char *lim = (char *) sbrk (0); char *lim = (char *) sbrk (0);
...@@ -4963,7 +4963,7 @@ main (argc, argv) ...@@ -4963,7 +4963,7 @@ main (argc, argv)
#endif /* not USG */ #endif /* not USG */
#endif #endif
} }
#endif /* ! OS2 && ! VMS && (! _WIN32 || CYGWIN32) */ #endif /* ! OS2 && ! VMS && (! _WIN32 || CYGWIN) */
if (errorcount) if (errorcount)
exit (FATAL_EXIT_CODE); exit (FATAL_EXIT_CODE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment