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-uwin.diff < prev    next >
Encoding:
Text File  |  1999-11-08  |  3.8 KB  |  100 lines

  1. Tue Jul 20 22:56:35 1999  Mumit Khan  <khan@xraylith.wisc.edu>
  2.  
  3.     * i386/uwin.h (LINK_SPEC): Add -u _main when building executables.
  4.     * i386/xm-uwin.h (HAVE_BCOPY): Undefine.
  5.  
  6. Sat Jul 10 12:07:51 1999  Mumit Khan  <khan@xraylith.wisc.edu>
  7.  
  8.     * i386/uwin.h (ASM_DECLARE_FUNCTION): Update from Cygwin.
  9.     (ASM_FILE_END): Use the default for ix86-pe.
  10.     * fixinc/mkfixinc.sh: Don't fix uwin headers.
  11.  
  12. Tue Jul  6 20:36:41 1999  Mumit Khan  <khan@xraylith.wisc.edu>
  13.  
  14.     * i386/uwin.h (MD_STARTFILE_PREFIX): Define.
  15.  
  16. Index: gcc-2.95.2/gcc/config/i386/uwin.h
  17. ===================================================================
  18. RCS file: /homes/khan/src/CVSROOT/gcc-2.95.2/gcc/config/i386/uwin.h,v
  19. retrieving revision 1.1.1.1
  20. diff -u -3 -p -r1.1.1.1 uwin.h
  21. --- gcc-2.95.2/gcc/config/i386/uwin.h    1999/11/05 01:09:55    1.1.1.1
  22. +++ gcc-2.95.2/gcc/config/i386/uwin.h    1999/11/05 06:42:24
  23. @@ -29,6 +29,7 @@ Boston, MA 02111-1307, USA. */
  24.  
  25.  #define STANDARD_INCLUDE_COMPONENT "UWIN"
  26.  #define SYSTEM_INCLUDE_DIR "/usr/gnu/include"
  27. +#define MD_STARTFILE_PREFIX "/usr/gnu/lib/"
  28.  
  29.  #undef CPP_PREDEFINES
  30.  #define CPP_PREDEFINES "-D__i386__ -D_WIN32 -D__WIN32__ \
  31. @@ -62,25 +63,24 @@ Boston, MA 02111-1307, USA. */
  32.  /* Specify a different entry point when linking a DLL */
  33.  #undef LINK_SPEC
  34.  #define LINK_SPEC \
  35. -  "%{mwindows:--subsystem windows} %{mdll:--dll -e _DllMainCRTStartup@12}"
  36. +  "%{mwindows:--subsystem windows} %{mdll:--dll -e _DllMainCRTStartup@12} \
  37. +  %{!mdll:-u _main}"
  38.  
  39.  #undef STARTFILE_SPEC
  40.  #define STARTFILE_SPEC "%{mdll:dllcrt2%O%s} %{!mdll:crt2%O%s}"
  41.  
  42.  /* These are PE BFD bug workarounds. Should go away eventually. */
  43.  
  44. +/* Write the extra assembler code needed to declare a function
  45. +   properly.  If we are generating SDB debugging information, this
  46. +   will happen automatically, so we only need to handle other cases.  */
  47.  #undef ASM_DECLARE_FUNCTION_NAME
  48.  #define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL)            \
  49.    do                                    \
  50.      {                                    \
  51.        if (i386_pe_dllexport_name_p (NAME))                \
  52. -    {                                \
  53. -      drectve_section ();                        \
  54. -      fprintf ((FILE), "\t.ascii \" -export:%s\"\n",         \
  55. -           I386_PE_STRIP_ENCODING (NAME));            \
  56. -      function_section (DECL);                    \
  57. -    }                                \
  58. -      /* disable i386_pe_declare_function_type for UWIN */        \
  59. +    i386_pe_record_exported_symbol (NAME);                \
  60. +      /* UWIN binutils bug workaround. */                \
  61.        if (0 && write_symbols != SDB_DEBUG)                \
  62.      i386_pe_declare_function_type (FILE, NAME, TREE_PUBLIC (DECL));    \
  63.        ASM_OUTPUT_LABEL (FILE, NAME);                    \
  64. @@ -89,5 +89,4 @@ Boston, MA 02111-1307, USA. */
  65.  
  66.  #undef ASM_OUTPUT_EXTERNAL
  67.  #undef ASM_OUTPUT_EXTERNAL_LIBCALL
  68. -#undef ASM_FILE_END
  69.  
  70. Index: gcc-2.95.2/gcc/config/i386/xm-uwin.h
  71. ===================================================================
  72. RCS file: /homes/khan/src/CVSROOT/gcc-2.95.2/gcc/config/i386/xm-uwin.h,v
  73. retrieving revision 1.1.1.1
  74. diff -u -3 -p -r1.1.1.1 xm-uwin.h
  75. --- gcc-2.95.2/gcc/config/i386/xm-uwin.h    1999/11/05 01:09:55    1.1.1.1
  76. +++ gcc-2.95.2/gcc/config/i386/xm-uwin.h    1999/11/05 06:42:24
  77. @@ -37,3 +37,7 @@ Boston, MA 02111-1307, USA. */
  78.  #undef PATH_SEPARATOR
  79.  #define PATH_SEPARATOR ':'
  80.  
  81. +/* U/WIN 2.0b[3-5] bcopy was implemented using memcpy, which breaks the
  82. +   C++ front end, so don't use it. */
  83. +#undef HAVE_BCOPY
  84. +
  85. Index: gcc-2.95.2/fixinc/gcc/mkfixinc.sh
  86. ===================================================================
  87. RCS file: /homes/khan/src/CVSROOT/gcc-2.95.2/gcc/fixinc/mkfixinc.sh,v
  88. retrieving revision 1.1.1.1
  89. diff -u -3 -p -r1.1.1.1 mkfixinc.sh
  90. --- gcc-2.95.2/fixinc/gcc/mkfixinc.sh    1999/11/05 01:09:58    1.1.1.1
  91. +++ gcc-2.95.2/fixinc/gcc/mkfixinc.sh    1999/11/05 06:41:55
  92. @@ -86,6 +86,7 @@ case $machine in
  93.      i[34567]86-*-win32 | \
  94.      i[34567]86-*-pe | i[34567]86-*-cygwin* | \
  95.      i[34567]86-*-mingw32* | \
  96. +    i[34567]86-*-uwin* | \
  97.      mips-sgi-irix5cross64 | \
  98.      powerpc-*-eabiaix* | \
  99.      powerpc-*-eabisim* | \
  100.