From: Mumit Khan Date: Tue, 14 Dec 1999 07:06:05 +0000 (+0000) Subject: cccp.c (INO_T_EQ): Disable inode-based optimization for Cygwin. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b9a341bad021df9cf140f3aa5c246191020f064e;p=gcc.git cccp.c (INO_T_EQ): Disable inode-based optimization for Cygwin. 1999-12-14 Mumit Khan * cccp.c (INO_T_EQ): Disable inode-based optimization for Cygwin. * cppfiles.c (INO_T_EQ): Likewise. From-SVN: r30903 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 446631b787f..fa64aa675f9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +1999-12-14 Mumit Khan + + * cccp.c (INO_T_EQ): Disable inode-based optimization for Cygwin. + * cppfiles.c (INO_T_EQ): Likewise. + 1999-12-14 Mumit Khan * i386/crtdll.h (STARTFILE_SPEC): Add -pg profiling support. diff --git a/gcc/cccp.c b/gcc/cccp.c index 78501c8ac60..a21daf1d510 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -84,8 +84,9 @@ static void hack_vms_include_specification (); #define INCLUDE_LEN_FUDGE 12 /* leave room for VMS syntax conversion */ #endif /* VMS */ -/* Windows does not natively support inodes, and neither does MSDOS. */ -#if (defined (_WIN32) && ! defined (__CYGWIN__) && ! defined (_UWIN)) \ +/* Windows does not natively support inodes, and neither does MSDOS. + Cygwin's emulation can generate non-unique inodes, so don't use it. */ +#if (defined (_WIN32) && ! defined (_UWIN)) \ || defined (__MSDOS__) #define INO_T_EQ(a, b) 0 #endif diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index dfeddcc8ca2..ce6a34ef940 100644 --- a/gcc/cppfiles.c +++ b/gcc/cppfiles.c @@ -57,10 +57,11 @@ static void hack_vms_include_specification PROTO ((char *)); #endif /* Windows does not natively support inodes, and neither does MSDOS. + Cygwin's emulation can generate non-unique inodes, so don't use it. VMS has non-numeric inodes. */ #ifdef VMS #define INO_T_EQ(a, b) (!bcmp((char *) &(a), (char *) &(b), sizeof (a))) -#elif (defined _WIN32 && !defined CYGWIN && ! defined (_UWIN)) \ +#elif (defined _WIN32 && ! defined (_UWIN)) \ || defined __MSDOS__ #define INO_T_EQ(a, b) 0 #else