Permalink
Showing with 84,344 additions and 754 deletions.
  1. +340 −0 mingw/COPYING
  2. +504 −0 mingw/COPYING.LIB
  3. BIN mingw/bin/cpp.exe
  4. BIN mingw/bin/gcc.exe
  5. BIN mingw/bin/gcov.exe
  6. BIN mingw/bin/mingw32-gcc-3.4.5
  7. BIN mingw/bin/mingw32-gcc.exe
  8. +28 −0 mingw/doc/runtime/CONTRIBUTORS
  9. +12 −0 mingw/doc/runtime/DISCLAIMER
  10. +10 −0 mingw/doc/runtime/README
  11. +81 −17 mingw/include/_mingw.h
  12. +1 −1 mingw/include/assert.h
  13. +200 −0 mingw/include/complex.h
  14. +53 −0 mingw/include/conio.h
  15. +86 −82 mingw/include/ctype.h
  16. +26 −0 mingw/include/dir.h
  17. +73 −0 mingw/include/direct.h
  18. +12 −12 mingw/include/dirent.h
  19. +89 −0 mingw/include/dos.h
  20. +1 −1 mingw/include/errno.h
  21. +102 −0 mingw/include/excpt.h
  22. +6 −0 mingw/include/fcntl.h
  23. +107 −0 mingw/include/fenv.h
  24. +152 −0 mingw/include/float.h
  25. +82 −55 mingw/include/getopt.h
  26. +181 −0 mingw/include/gmon.h
  27. +278 −0 mingw/include/inttypes.h
  28. +102 −88 mingw/include/io.h
  29. +31 −0 mingw/include/libgen.h
  30. +88 −0 mingw/include/locale.h
  31. +103 −0 mingw/include/malloc.h
  32. +873 −0 mingw/include/math.h
  33. +97 −0 mingw/include/mbctype.h
  34. +132 −0 mingw/include/mbstring.h
  35. +6 −0 mingw/include/mem.h
  36. +7 −0 mingw/include/memory.h
  37. +46 −45 mingw/include/process.h
  38. +51 −0 mingw/include/profil.h
  39. +83 −0 mingw/include/profile.h
  40. +106 −0 mingw/include/search.h
  41. +2 −2 mingw/include/setjmp.h
  42. +33 −0 mingw/include/share.h
  43. +2 −2 mingw/include/signal.h
  44. +31 −9 mingw/include/stdint.h
  45. +272 −142 mingw/include/stdio.h
  46. +161 −137 mingw/include/stdlib.h
  47. +96 −94 mingw/include/string.h
  48. +7 −0 mingw/include/sys/fcntl.h
  49. +7 −0 mingw/include/sys/file.h
  50. +31 −0 mingw/include/sys/locking.h
  51. +21 −20 mingw/include/sys/stat.h
  52. +1 −1 mingw/include/sys/time.h
  53. +74 −0 mingw/include/sys/timeb.h
  54. +4 −0 mingw/include/sys/types.h
  55. +6 −0 mingw/include/sys/unistd.h
  56. +13 −14 mingw/include/sys/utime.h
  57. +2 −0 mingw/include/tchar.h
  58. +27 −27 mingw/include/time.h
  59. +10 −5 mingw/include/unistd.h
  60. +4 −0 mingw/include/values.h
  61. +7 −0 mingw/include/varargs.h
  62. +518 −0 mingw/include/wchar.h
  63. +168 −0 mingw/include/wctype.h
  64. +5,166 −0 mingw/info/cpp.info
  65. +1,035 −0 mingw/info/cppinternals.info
  66. +27,178 −0 mingw/info/gcc.info
  67. +3,822 −0 mingw/info/gccinstall.info
  68. +27,029 −0 mingw/info/gccint.info
  69. BIN mingw/lib/CRT_fp10.o
  70. BIN mingw/lib/CRT_fp8.o
  71. BIN mingw/lib/CRT_noglob.o
  72. BIN mingw/lib/binmode.o
  73. BIN mingw/lib/crt1.o
  74. BIN mingw/lib/crt2.o
  75. BIN mingw/lib/crtmt.o
  76. BIN mingw/lib/crtst.o
  77. BIN mingw/lib/dllcrt1.o
  78. BIN mingw/lib/dllcrt2.o
  79. BIN mingw/lib/gcrt1.o
  80. BIN mingw/lib/gcrt2.o
  81. BIN mingw/lib/libcoldname.a
  82. BIN mingw/lib/libcrtdll.a
  83. BIN mingw/lib/libgmon.a
  84. BIN mingw/lib/libm.a
  85. BIN mingw/lib/libmingw32.a
  86. BIN mingw/lib/libmingwex.a
  87. BIN mingw/lib/libmingwthrd.a
  88. BIN mingw/lib/libmoldname.a
  89. BIN mingw/lib/libmoldname70.a
  90. BIN mingw/lib/libmoldname70d.a
  91. BIN mingw/lib/libmoldname71.a
  92. BIN mingw/lib/libmoldname71d.a
  93. BIN mingw/lib/libmoldname80.a
  94. BIN mingw/lib/libmoldname80d.a
  95. BIN mingw/lib/libmoldname90.a
  96. BIN mingw/lib/libmoldname90d.a
  97. BIN mingw/lib/libmoldnamed.a
  98. BIN mingw/lib/libmsvcr70.a
  99. BIN mingw/lib/libmsvcr70d.a
  100. BIN mingw/lib/libmsvcr71.a
  101. BIN mingw/lib/libmsvcr71d.a
  102. BIN mingw/lib/libmsvcr80.a
  103. BIN mingw/lib/libmsvcr80d.a
  104. BIN mingw/lib/libmsvcr90.a
  105. BIN mingw/lib/libmsvcr90d.a
  106. BIN mingw/lib/libmsvcrt.a
  107. BIN mingw/lib/libmsvcrtd.a
  108. BIN mingw/lib/txtmode.o
  109. BIN mingw/libexec/gcc/mingw32/3.4.5/cc1.exe
  110. BIN mingw/libexec/gcc/mingw32/3.4.5/collect2.exe
  111. +918 −0 mingw/man/man1/cpp.1
  112. +10,714 −0 mingw/man/man1/gcc.1
  113. +607 −0 mingw/man/man1/gcov.1
  114. +185 −0 mingw/man/man7/fsf-funding.7
  115. +561 −0 mingw/man/man7/gfdl.7
  116. +535 −0 mingw/man/man7/gpl.7
  117. +474 −0 mingw/share/man/man3/basename.3
  118. +474 −0 mingw/share/man/man3/dirname.3
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
@@ -0,0 +1,28 @@
+/*
+ * CONTRIBUTORS
+ * This file has no copyright assigned and is placed in the Public Domain.
+ * This file is a part of the mingw-runtime package.
+ * No warranty is given; refer to the file DISCLAIMER within the package.
+ *
+ * HISTORICAL:
+ * Colin Peters <colin@fu.is.saga-u.ac.jp> - Original author of the
+ * mingw-runtime package.
+ * Mumit Khan <khan@xraylith.wisc.EDU> - Original maintainer of the
+ * mingw-runtime package.
+ * Gunther Ebert <gunther.ebert@ixos-leipzig.de> - Adaptations of his DLL
+ * support.
+ * Stan Cox <scox@cygnus.com> - Provided gccmain.c.
+ * J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl> - Provided
+ * dos.h.
+ * Mikey <jeffdb@netzone.com> - Adaptated excpt.h from his code.
+ * Pedro A. Aranda <paag@tid.es> - Provided lots of types for types.h.
+ *
+ * CURRENT:
+ * Danny Smith <dannysmith@users.sourceforge.net>
+ * Earnie Boyd <earnie@users.sourceforge.net>
+ * Luke Dunstan <coder_infidel@users.sourceforge.net>
+ *
+ * Many others in the MinGW user community. They are listed in the ChangeLog.
+ * Please review that file for the names of those contributors.
+ *
+ */
@@ -0,0 +1,12 @@
+/*
+ * DISCLAIMER
+ * This file has no copyright assigned and is placed in the Public Domain.
+ * This file is a part of the mingw-runtime package.
+ *
+ * The mingw-runtime package and its code is distributed in the hope that it
+ * will be useful but WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESSED OR
+ * IMPLIED ARE HEREBY DISCLAIMED. This includes but is not limited to
+ * warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * You are free to use this package and its code without limitation.
+ */
View
@@ -0,0 +1,10 @@
+ Free Microsoft C Runtime and import library definitions
+
+ Maintained by MinGW Developers
+ Send bug reports and questions to MinGW-users@lists.sourceforge.net
+ URL: http://www.mingw.org
+
+A historical readme.txt exists and is distributed for your edification. The
+references within may or may not be correct. Please do not rely on them. See
+http://www.mingw.org for a list of valid references.
+
View
@@ -1,3 +1,4 @@
+#ifndef __MINGW_H
/*
* _mingw.h
*
@@ -19,32 +20,59 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
*/
-
-#ifndef __MINGW_H
#define __MINGW_H
+#define __MINGW32_VERSION 3.15.2
+#define __MINGW32_MAJOR_VERSION 3
+#define __MINGW32_MINOR_VERSION 15
+#define __MINGW32_PATCHLEVEL 2
+
+#if __GNUC__ >= 3
+#pragma GCC system_header
+#endif
/* These are defined by the user (or the compiler)
to specify how identifiers are imported from a DLL.
- __DECLSPEC_SUPPORTED Defined if dllimport attribute is supported.
- __MINGW_IMPORT The attribute definition to specify imported
- variables/functions.
- _CRTIMP As above. For MS compatibility.
- __MINGW32_VERSION Runtime version.
- __MINGW32_MAJOR_VERSION Runtime major version.
- __MINGW32_MINOR_VERSION Runtime minor version.
- __MINGW32_BUILD_DATE Runtime build date.
+ __DECLSPEC_SUPPORTED Defined if dllimport attribute is supported.
+ __MINGW_IMPORT The attribute definition to specify imported
+ variables/functions.
+ _CRTIMP As above. For MS compatibility.
+ __MINGW32_VERSION Runtime version.
+ __MINGW32_MAJOR_VERSION Runtime major version.
+ __MINGW32_MINOR_VERSION Runtime minor version.
+ __MINGW32_BUILD_DATE Runtime build date.
+
+ Macros to enable MinGW features which deviate from standard MSVC
+ compatible behaviour; these may be specified directly in user code,
+ activated implicitly, (e.g. by specifying _POSIX_C_SOURCE or such),
+ or by inclusion in __MINGW_FEATURES__:
+
+ __USE_MINGW_ANSI_STDIO Select a more ANSI C99 compatible
+ implementation of printf() and friends.
Other macros:
- __int64 define to be long long. Using a typedef doesn't
- work for "unsigned __int64"
+ __int64 define to be long long. Using a typedef
+ doesn't work for "unsigned __int64"
All headers should include this first, and then use __DECLSPEC_SUPPORTED
to choose between the old ``__imp__name'' style or __MINGW_IMPORT
style declarations. */
+
+/* Manifest definitions identifying the flag bits, controlling activation
+ * of MinGW features, as specified by the user in __MINGW_FEATURES__.
+ */
+#define __MINGW_ANSI_STDIO__ 0x0000000000000001ULL
+/*
+ * The following three are not yet formally supported; they are
+ * included here, to document anticipated future usage.
+ */
+#define __MINGW_LC_EXTENSIONS__ 0x0000000000000050ULL
+#define __MINGW_LC_MESSAGES__ 0x0000000000000010ULL
+#define __MINGW_LC_ENVVARS__ 0x0000000000000040ULL
+
/* Try to avoid problems with outdated checks for GCC __attribute__ support. */
#undef __attribute__
@@ -79,8 +107,14 @@
# define _CRTIMP
# endif
# endif /* __declspec */
-# ifndef __cdecl
-# define __cdecl __attribute__ ((__cdecl__))
+
+/*
+ The next two defines can cause problems if user code adds the __cdecl attribute
+ like so:
+ void __attribute__ ((__cdecl)) foo(void);
+*/
+# ifndef __cdecl
+# define __cdecl __attribute__ ((__cdecl__))
# endif
# ifndef __stdcall
# define __stdcall __attribute__ ((__stdcall__))
@@ -163,14 +197,44 @@
#else
#define __MINGW_ATTRIB_DEPRECATED
#endif /* GNUC >= 3.1 */
+
+#if __MINGW_GNUC_PREREQ (3, 3)
+#define __MINGW_NOTHROW __attribute__ ((__nothrow__))
+#else
+#define __MINGW_NOTHROW
+#endif /* GNUC >= 3.3 */
+
+
+/* TODO: Mark (almost) all CRT functions as __MINGW_NOTHROW. This will
+allow GCC to optimize away some EH unwind code, at least in DW2 case. */
#ifndef __MSVCRT_VERSION__
/* High byte is the major version, low byte is the minor. */
# define __MSVCRT_VERSION__ 0x0600
#endif
-#define __MINGW32_VERSION 3.12
-#define __MINGW32_MAJOR_VERSION 3
-#define __MINGW32_MINOR_VERSION 12
+/* Activation of MinGW specific extended features:
+ */
+#ifndef __USE_MINGW_ANSI_STDIO
+/*
+ * If user didn't specify it explicitly...
+ */
+# if defined __STRICT_ANSI__ || defined _ISOC99_SOURCE \
+ || defined _POSIX_SOURCE || defined _POSIX_C_SOURCE \
+ || defined _XOPEN_SOURCE || defined _XOPEN_SOURCE_EXTENDED \
+ || defined _GNU_SOURCE || defined _BSD_SOURCE \
+ || defined _SVID_SOURCE
+ /*
+ * but where any of these source code qualifiers are specified,
+ * then assume ANSI I/O standards are preferred over Microsoft's...
+ */
+# define __USE_MINGW_ANSI_STDIO 1
+# else
+ /*
+ * otherwise use whatever __MINGW_FEATURES__ specifies...
+ */
+# define __USE_MINGW_ANSI_STDIO (__MINGW_FEATURES__ & __MINGW_ANSI_STDIO__)
+# endif
+#endif
#endif /* __MINGW_H */
View
@@ -35,7 +35,7 @@ extern "C" {
* CRTDLL nicely supplies a function which does the actual output and
* call to abort.
*/
-_CRTIMP void __cdecl _assert (const char*, const char*, int) __MINGW_ATTRIB_NORETURN;
+_CRTIMP void __cdecl __MINGW_NOTHROW _assert (const char*, const char*, int) __MINGW_ATTRIB_NORETURN;
/*
* Definition of the assert macro.
Oops, something went wrong.

0 comments on commit a1dbb9f

Please sign in to comment.