home *** CD-ROM | disk | FTP | other *** search
/ Programming Win32 Under the API / ProgrammingWin32UnderTheApiPatVillani.iso / patches / gcc-2_95_2-x86-win32-patches.zi / gcc-2.95.2-patches / broken-down / gcc-2.95.2-cpp-win32-inode.diff < prev    next >
Encoding:
Text File  |  1999-11-08  |  1.8 KB  |  45 lines

  1. Thu Jul 15 20:27:06 1999  Mumit Khan  <khan@xraylith.wisc.edu>
  2.  
  3.     * cccp.c (INO_T_EQ): Disable inode-based optimization for Cygwin.
  4.     * cppfiles.c (INO_T_EQ): Likewise.
  5.  
  6. Index: gcc-2.95.2/gcc/cccp.c
  7. ===================================================================
  8. RCS file: /homes/khan/src/CVSROOT/gcc-2.95.2/gcc/cccp.c,v
  9. retrieving revision 1.1.1.1
  10. diff -u -3 -p -r1.1.1.1 cccp.c
  11. --- gcc-2.95.2/gcc/cccp.c    1999/11/05 01:09:41    1.1.1.1
  12. +++ gcc-2.95.2/gcc/cccp.c    1999/11/05 08:08:21
  13. @@ -82,8 +82,9 @@ static int hack_vms_include_specificatio
  14.  #define INCLUDE_LEN_FUDGE 12    /* leave room for VMS syntax conversion */
  15.  #endif /* VMS */
  16.  
  17. -/* Windows does not natively support inodes, and neither does MSDOS.  */
  18. -#if (defined (_WIN32) && ! defined (__CYGWIN__) && ! defined (_UWIN)) \
  19. +/* Windows does not natively support inodes, and neither does MSDOS. 
  20. +   Cygwin's emulation can generate non-unique inodes, so don't use it. */
  21. +#if (defined (_WIN32) && ! defined (_UWIN)) \
  22.    || defined (__MSDOS__)
  23.  #define INO_T_EQ(a, b) 0
  24.  #endif
  25. Index: gcc-2.95.2/gcc/cppfiles.c
  26. ===================================================================
  27. RCS file: /homes/khan/src/CVSROOT/gcc-2.95.2/gcc/cppfiles.c,v
  28. retrieving revision 1.1.1.1
  29. diff -u -3 -p -r1.1.1.1 cppfiles.c
  30. --- gcc-2.95.2/gcc/cppfiles.c    1999/11/05 01:09:42    1.1.1.1
  31. +++ gcc-2.95.2/gcc/cppfiles.c    1999/11/05 08:08:21
  32. @@ -53,10 +53,11 @@ static void hack_vms_include_specificati
  33.  #endif
  34.  
  35.  /* Windows does not natively support inodes, and neither does MSDOS.
  36. +   Cygwin's emulation can generate non-unique inodes, so don't use it.
  37.     VMS has non-numeric inodes. */
  38.  #ifdef VMS
  39.  #define INO_T_EQ(a, b) (!bcmp((char *) &(a), (char *) &(b), sizeof (a)))
  40. -#elif (defined _WIN32 && !defined CYGWIN && ! defined (_UWIN)) \
  41. +#elif (defined _WIN32 && ! defined (_UWIN)) \
  42.         || defined __MSDOS__
  43.  #define INO_T_EQ(a, b) 0
  44.  #else
  45.