• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

The MinGW.org Windows System Libraries


Commit MetaInfo

Revision0709a645730efd874aa6d72e4673ddd01f33f00a (tree)
Time2018-08-27 04:40:38
AuthorKeith Marshall <keith@user...>
CommiterKeith Marshall

Log Message

Circumvent <process.h> testsuite failure with GCC-7+.

Change Summary

Incremental Difference

--- a/mingwrt/ChangeLog
+++ b/mingwrt/ChangeLog
@@ -1,3 +1,11 @@
1+2018-08-26 Keith Marshall <keith@users.osdn.me>
2+
3+ Circumvent <process.h> testsuite failure with GCC-7+.
4+
5+ * include/process.h (execv, execve, execvp): Subject declarations to
6+ #pragma GCC diagnostic ignored "-Wbuiltin-declaration-mismatch", if...
7+ [__cplusplus && __IN_MINGWRT_TESTSUITE__ && __GNUC__ >= 7]: ...this.
8+
19 2018-04-16 Keith Marshall <keith@users.osdn.me>
210
311 Suppress glob-brace expansion within quoted arguments.
--- a/mingwrt/include/process.h
+++ b/mingwrt/include/process.h
@@ -189,6 +189,15 @@ 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
196+ * testsuite failures, so suppress them.
197+ */
198+# pragma GCC diagnostic ignored "-Wbuiltin-declaration-mismatch"
199+#endif
200+
192201 _CRTIMP __cdecl __MINGW_NOTHROW
193202 intptr_t execv (const char *, const char * const *);
194203
@@ -198,6 +207,12 @@ intptr_t execve (const char *, const char * const *, const char * const *);
198207 _CRTIMP __cdecl __MINGW_NOTHROW
199208 intptr_t execvp (const char *, const char * const *);
200209
210+#if defined __cplusplus && __IN_MINGWRT_TESTSUITE__ && __GNUC__ >= 7
211+/* Re-enable previously suppressed "-Wbuiltin-declaration-mismatch" warnings.
212+ */
213+# pragma GCC diagnostic warning "-Wbuiltin-declaration-mismatch"
214+#endif
215+
201216 _CRTIMP __cdecl __MINGW_NOTHROW
202217 intptr_t execvpe (const char *, const char * const *, const char * const *);
203218