• R/O
  • HTTP
  • SSH
  • HTTPS

mingw-org-wsl: 提交

The MinGW.org Windows System Libraries


Commit MetaInfo

修訂9e7808202ab1f073d535960017f60e85f358f24d (tree)
時間2020-01-18 01:58:38
作者Keith Marshall <keith@user...>
CommiterKeith Marshall

Log Message

Update handling of <process.h> test-suite limitation.

Change Summary

差異

--- a/mingwrt/ChangeLog
+++ b/mingwrt/ChangeLog
@@ -1,5 +1,16 @@
11 2020-01-17 Keith Marshall <keith@users.osdn.me>
22
3+ Update handling of <process.h> test-suite limitation.
4+
5+ * include/process.h (-Wbuiltin-declaration-mismatch)
6+ [__IN_MINGWRT_TESTSUITE__ && __GNUC__ >= 7 && __cplusplus]: Drop...
7+ [__cplusplus]: ...this diagnostic constraint, in test case when...
8+ [__GNUC__ >= 9]: ...this applies; this diagnostic now affects both
9+ C and C++ compilers, with respect to each of...
10+ (execv, execve, execvp): ...these functions.
11+
12+2020-01-17 Keith Marshall <keith@users.osdn.me>
13+
314 Support GCC-9.x gratuitous use of non-standard errno accessor API.
415
516 * include/stdlib.h (_get_errno, _set_errno): Declare prototypes;
--- a/mingwrt/include/process.h
+++ b/mingwrt/include/process.h
@@ -189,13 +189,18 @@ intptr_t execlp (const char *, const char *, ...);
189189 _CRTIMP __cdecl __MINGW_NOTHROW
190190 intptr_t execlpe (const char *, const char *,...);
191191
192-#if defined __cplusplus && __IN_MINGWRT_TESTSUITE__ && __GNUC__ >= 7
193-/* From GCC-7 onwards, with "-Wsystem-headers" enabled, the C++ compiler
194- * may emit unwanted "-Wbuiltin-declaration-mismatch" diagnostics related
195- * to the following "execv" function declarations; these will precipitate
192+#if __IN_MINGWRT_TESTSUITE__ && __GNUC__ >= 7
193+/* From GCC-7 onwards, with "-Wsystem-headers" enabled, the compiler may
194+ * emit unwanted "-Wbuiltin-declaration-mismatch" diagnostics related to
195+ * the following "execv" function declarations; these will precipitate
196196 * testsuite failures, so suppress them.
197197 */
198-# pragma GCC diagnostic ignored "-Wbuiltin-declaration-mismatch"
198+# if __GNUC__ >= 9 || defined __cplusplus
199+ /* Prior to GCC-9, this limitation was apparent in the C++ compiler
200+ * only; it became apparent in the C compiler, from GCC-9.
201+ */
202+# pragma GCC diagnostic ignored "-Wbuiltin-declaration-mismatch"
203+# endif
199204 #endif
200205
201206 _CRTIMP __cdecl __MINGW_NOTHROW
Show on old repository browser