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-dos-fname.diff < prev    next >
Encoding:
Text File  |  1999-11-08  |  2.3 KB  |  58 lines

  1. Fri Nov  5 03:52:57 1999  Mumit Khan  <khan@xraylith.wisc.edu>
  2.  
  3.     * gcc.c (lookup_compiler): Handle case-insensitive filename
  4.     extensions for DOS-based systems.
  5.     (HAVE_DOS_BASED_FILE_SYSTEM): Fix typo.
  6.     * i386/xm-djgpp.h: Likewise.
  7.  
  8. Index: gcc-2.95.2/gcc/gcc.c
  9. ===================================================================
  10. RCS file: /homes/khan/src/CVSROOT/gcc-2.95.2/gcc/gcc.c,v
  11. retrieving revision 1.2
  12. diff -u -3 -p -r1.2 gcc.c
  13. --- gcc-2.95.2/gcc/gcc.c    1999/11/05 05:39:18    1.2
  14. +++ gcc-2.95.2/gcc/gcc.c    1999/11/06 06:32:42
  15. @@ -2247,7 +2247,7 @@ find_a_file (pprefix, name, mode)
  16.    /* Determine the filename to execute (special case for absolute paths).  */
  17.  
  18.    if (IS_DIR_SEPARATOR (*name)
  19. -#ifdef HAVE_DOS_BASED_FILESYSTEM
  20. +#ifdef HAVE_DOS_BASED_FILE_SYSTEM
  21.        /* Check for disk name on MS-DOS-based systems.  */
  22.        || (name[0] && name[1] == ':' && IS_DIR_SEPARATOR (name[2]))
  23.  #endif
  24. @@ -5103,7 +5103,7 @@ main (argc, argv)
  25.       standard_startfile_prefix on that as well.  */
  26.        if (IS_DIR_SEPARATOR (*standard_startfile_prefix)
  27.          || *standard_startfile_prefix == '$'
  28. -#ifdef HAVE_DOS_BASED_FILESYSTEM
  29. +#ifdef HAVE_DOS_BASED_FILE_SYSTEM
  30.            /* Check for disk name on MS-DOS-based systems.  */
  31.            || (standard_startfile_prefix[1] == ':'
  32.            && (IS_DIR_SEPARATOR (standard_startfile_prefix[2])))
  33. @@ -5459,7 +5459,7 @@ lookup_compiler (name, length, language)
  34.        (!strcmp (cp->suffix, "-") && !strcmp (name, "-"))
  35.        || (strlen (cp->suffix) < length
  36.            /* See if the suffix matches the end of NAME.  */
  37. -#ifdef OS2
  38. +#if defined (OS2) ||defined (HAVE_DOS_BASED_FILE_SYSTEM)
  39.            && ((!strcmp (cp->suffix,
  40.                 name + length - strlen (cp->suffix))
  41.             || !strpbrk (cp->suffix, "ABCDEFGHIJKLMNOPQRSTUVWXYZ"))
  42. Index: gcc-2.95.2/gcc/config/i386/xm-djgpp.h
  43. ===================================================================
  44. RCS file: /homes/khan/src/CVSROOT/gcc-2.95.2/gcc/config/i386/xm-djgpp.h,v
  45. retrieving revision 1.1.1.1
  46. diff -u -3 -p -r1.1.1.1 xm-djgpp.h
  47. --- gcc-2.95.2/gcc/config/i386/xm-djgpp.h    1999/11/05 01:09:55    1.1.1.1
  48. +++ gcc-2.95.2/gcc/config/i386/xm-djgpp.h    1999/11/06 00:04:09
  49. @@ -32,7 +32,7 @@ Boston, MA 02111-1307, USA.  */
  50.  #define DIR_SEPARATOR_2 '\\'
  51.  
  52.  /* Allow test for DOS drive names.  */
  53. -#define HAVE_DOS_BASED_FILESYSTEM
  54. +#define HAVE_DOS_BASED_FILE_SYSTEM
  55.  
  56.  #define LIBSTDCXX "-lstdcxx"
  57.  
  58.