diff --git a/mingw-w64-cross-gcc/0001-share-mingw-fset-stack-executable-with-cygwin.patch b/mingw-w64-cross-gcc/0001-share-mingw-fset-stack-executable-with-cygwin.patch deleted file mode 100644 index ae86c1a7..00000000 --- a/mingw-w64-cross-gcc/0001-share-mingw-fset-stack-executable-with-cygwin.patch +++ /dev/null @@ -1,69 +0,0 @@ -From bb571d27350ba5e38ae1f2025dc32d826e21e48c Mon Sep 17 00:00:00 2001 -From: Jonathan Yong <10walls@gmail.com> -Date: Wed, 28 May 2014 22:05:17 +0800 -Subject: [PATCH 01/21] share mingw fset-stack-executable with cygwin - ---- - gcc/config/i386/cygming.opt | 4 ++++ - gcc/config/i386/cygwin.h | 4 ++++ - gcc/config/i386/mingw.opt | 4 ---- - libgcc/config.host | 3 +++ - 4 files changed, 11 insertions(+), 4 deletions(-) - -diff --git a/gcc/config/i386/cygming.opt b/gcc/config/i386/cygming.opt -index c7e398f..ff63140 100644 ---- a/gcc/config/i386/cygming.opt -+++ b/gcc/config/i386/cygming.opt -@@ -50,6 +50,10 @@ muse-libstdc-wrappers - Target Condition({defined (USE_CYGWIN_LIBSTDCXX_WRAPPERS)}) - Compile code that relies on Cygwin DLL wrappers to support C++ operator new/delete replacement. - -+fset-stack-executable -+Common Report Var(flag_setstackexecutable) Init(1) Optimization -+For nested functions on stack executable permission is set. -+ - posix - Driver - -diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h -index 2186937..803fb6c 100644 ---- a/gcc/config/i386/cygwin.h -+++ b/gcc/config/i386/cygwin.h -@@ -156,3 +156,7 @@ along with GCC; see the file COPYING3. If not see - /* We should find a way to not have to update this manually. */ - #define LIBGCJ_SONAME "cyggcj" /*LIBGCC_EH_EXTN*/ "-16.dll" - -+/* Make stack executable to avoid DEP problems with trampolines. */ -+#define HAVE_ENABLE_EXECUTE_STACK -+#undef CHECK_EXECUTE_STACK_ENABLED -+#define CHECK_EXECUTE_STACK_ENABLED flag_setstackexecutable -diff --git a/gcc/config/i386/mingw.opt b/gcc/config/i386/mingw.opt -index 322b66c..a0065a6 100644 ---- a/gcc/config/i386/mingw.opt -+++ b/gcc/config/i386/mingw.opt -@@ -28,8 +28,4 @@ Wpedantic-ms-format - C ObjC C++ ObjC++ Var(warn_pedantic_ms_format) Init(1) Warning - Warn about none ISO msvcrt scanf/printf width extensions. - --fset-stack-executable --Common Report Var(flag_setstackexecutable) Init(1) Optimization --For nested functions on stack executable permission is set. -- - ; Need to retain blank line above. -diff --git a/libgcc/config.host b/libgcc/config.host -index 140aa22..ecaabc1 100644 ---- a/libgcc/config.host -+++ b/libgcc/config.host -@@ -313,6 +313,9 @@ case ${host} in - i[34567]86-*-mingw* | x86_64-*-mingw*) - enable_execute_stack=config/i386/enable-execute-stack-mingw32.c - ;; -+i[34567]86-*-cygwin* | x86_64-*-cygwin*) -+ enable_execute_stack=config/i386/enable-execute-stack-mingw32.c -+ ;; - *) - enable_execute_stack=enable-execute-stack-empty.c; - ;; --- -2.4.5 - diff --git a/mingw-w64-cross-gcc/0007-Avoid-installing-libffi-V2.patch b/mingw-w64-cross-gcc/0007-Avoid-installing-libffi-V2.patch deleted file mode 100644 index 441f2b0b..00000000 --- a/mingw-w64-cross-gcc/0007-Avoid-installing-libffi-V2.patch +++ /dev/null @@ -1,52 +0,0 @@ -diff --git a/Makefile.in b/Makefile.in -index b824e0a..c6b419b 100644 ---- a/Makefile.in -+++ b/Makefile.in -@@ -1684,7 +1684,6 @@ install-info-target: maybe-install-info-target-libhsail-rt - install-info-target: maybe-install-info-target-libtermcap - install-info-target: maybe-install-info-target-winsup - install-info-target: maybe-install-info-target-libgloss --install-info-target: maybe-install-info-target-libffi - install-info-target: maybe-install-info-target-zlib - install-info-target: maybe-install-info-target-rda - install-info-target: maybe-install-info-target-libada -@@ -1770,7 +1769,6 @@ install-pdf-target: maybe-install-pdf-target-libhsail-rt - install-pdf-target: maybe-install-pdf-target-libtermcap - install-pdf-target: maybe-install-pdf-target-winsup - install-pdf-target: maybe-install-pdf-target-libgloss --install-pdf-target: maybe-install-pdf-target-libffi - install-pdf-target: maybe-install-pdf-target-zlib - install-pdf-target: maybe-install-pdf-target-rda - install-pdf-target: maybe-install-pdf-target-libada -@@ -1856,7 +1854,6 @@ install-html-target: maybe-install-html-target-libhsail-rt - install-html-target: maybe-install-html-target-libtermcap - install-html-target: maybe-install-html-target-winsup - install-html-target: maybe-install-html-target-libgloss --install-html-target: maybe-install-html-target-libffi - install-html-target: maybe-install-html-target-zlib - install-html-target: maybe-install-html-target-rda - install-html-target: maybe-install-html-target-libada -@@ -1942,7 +1939,6 @@ installcheck-target: maybe-installcheck-target-libhsail-rt - installcheck-target: maybe-installcheck-target-libtermcap - installcheck-target: maybe-installcheck-target-winsup - installcheck-target: maybe-installcheck-target-libgloss --installcheck-target: maybe-installcheck-target-libffi - installcheck-target: maybe-installcheck-target-zlib - installcheck-target: maybe-installcheck-target-rda - installcheck-target: maybe-installcheck-target-libada -@@ -2610,7 +2606,6 @@ install-target: \ - maybe-install-target-libtermcap \ - maybe-install-target-winsup \ - maybe-install-target-libgloss \ -- maybe-install-target-libffi \ - maybe-install-target-zlib \ - maybe-install-target-rda \ - maybe-install-target-libada \ -@@ -2716,7 +2711,6 @@ install-strip-target: \ - maybe-install-strip-target-libtermcap \ - maybe-install-strip-target-winsup \ - maybe-install-strip-target-libgloss \ -- maybe-install-strip-target-libffi \ - maybe-install-strip-target-zlib \ - maybe-install-strip-target-rda \ - maybe-install-strip-target-libada \ diff --git a/mingw-w64-cross-gcc/0010-Do-not-version-lto-plugin-on-cygwin-mingw.patch b/mingw-w64-cross-gcc/0010-Do-not-version-lto-plugin-on-cygwin-mingw.patch index dac123cc..3f2ef364 100644 --- a/mingw-w64-cross-gcc/0010-Do-not-version-lto-plugin-on-cygwin-mingw.patch +++ b/mingw-w64-cross-gcc/0010-Do-not-version-lto-plugin-on-cygwin-mingw.patch @@ -1,7 +1,7 @@ -From 0817191f16ba1318a84ea184887c1119f298bc45 Mon Sep 17 00:00:00 2001 +From 923ac76f3406cb3ce680436dd9d4755308295180 Mon Sep 17 00:00:00 2001 From: Jonathan Yong <10walls@gmail.com> Date: Sat, 28 Jun 2014 09:35:02 +0800 -Subject: [PATCH 10/21] Do not version lto plugin on cygwin/mingw +Subject: [PATCH] Do not version lto plugin on cygwin/mingw Conflicts: lto-plugin/Makefile.am @@ -13,10 +13,10 @@ Conflicts: 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/config.host b/gcc/config.host -index 8b7e16d..361de8e 100644 +index c65569d..59514ca 100644 --- a/gcc/config.host +++ b/gcc/config.host -@@ -232,14 +232,14 @@ case ${host} in +@@ -236,7 +236,7 @@ case ${host} in out_host_hook_obj=host-cygwin.o host_xmake_file="${host_xmake_file} i386/x-cygwin" host_exeext=.exe @@ -25,25 +25,26 @@ index 8b7e16d..361de8e 100644 ;; i[34567]86-*-mingw32*) host_xm_file=i386/xm-mingw32.h - host_xmake_file="${host_xmake_file} i386/x-mingw32" +@@ -244,7 +244,7 @@ case ${host} in host_exeext=.exe out_host_hook_obj=host-mingw32.o + host_extra_gcc_objs="${host_extra_gcc_objs} driver-mingw32.o" - host_lto_plugin_soname=liblto_plugin-0.dll + host_lto_plugin_soname=liblto_plugin.dll ;; x86_64-*-mingw*) use_long_long_for_widest_fast_int=yes -@@ -247,7 +247,7 @@ case ${host} in - host_xmake_file="${host_xmake_file} i386/x-mingw32" +@@ -253,7 +253,7 @@ case ${host} in host_exeext=.exe out_host_hook_obj=host-mingw32.o + host_extra_gcc_objs="${host_extra_gcc_objs} driver-mingw32.o" - host_lto_plugin_soname=liblto_plugin-0.dll + host_lto_plugin_soname=liblto_plugin.dll ;; - i[34567]86-*-uwin*) - echo "*** UWIN may not be used as a host platform because" + i[34567]86-*-darwin* | x86_64-*-darwin*) + out_host_hook_obj="${out_host_hook_obj} host-i386-darwin.o" diff --git a/lto-plugin/Makefile.am b/lto-plugin/Makefile.am -index a90a5da..1ebf155 100644 +index 28dc210..2e51b32 100644 --- a/lto-plugin/Makefile.am +++ b/lto-plugin/Makefile.am @@ -21,7 +21,7 @@ in_gcc_libs = $(foreach lib, $(libexecsub_LTLIBRARIES), $(gcc_build_dir)/$(lib)) @@ -56,10 +57,10 @@ index a90a5da..1ebf155 100644 libiberty = $(with_libiberty)/libiberty.a libiberty_noasan = $(with_libiberty)/noasan/libiberty.a diff --git a/lto-plugin/Makefile.in b/lto-plugin/Makefile.in -index 06ef5f3..ec5b3e6 100644 +index c69cc32..0a39289 100644 --- a/lto-plugin/Makefile.in +++ b/lto-plugin/Makefile.in -@@ -264,7 +264,7 @@ libexecsub_LTLIBRARIES = liblto_plugin.la +@@ -265,7 +265,7 @@ libexecsub_LTLIBRARIES = liblto_plugin.la in_gcc_libs = $(foreach lib, $(libexecsub_LTLIBRARIES), $(gcc_build_dir)/$(lib)) liblto_plugin_la_SOURCES = lto-plugin.c # Note that we intentionally override the bindir supplied by ACX_LT_HOST_FLAGS. @@ -69,5 +70,5 @@ index 06ef5f3..ec5b3e6 100644 $(libiberty_noasan)),, $(if $(wildcard \ $(libiberty_pic)),,-Wc,$(libiberty))) -- -2.4.5 +2.17.0 diff --git a/mingw-w64-cross-gcc/0013-skip-test-for-cygwin-mingw.patch b/mingw-w64-cross-gcc/0013-skip-test-for-cygwin-mingw.patch index 6c6968c9..36372f44 100644 --- a/mingw-w64-cross-gcc/0013-skip-test-for-cygwin-mingw.patch +++ b/mingw-w64-cross-gcc/0013-skip-test-for-cygwin-mingw.patch @@ -1,23 +1,23 @@ -From fb545617895ad517f57367b5b0366b066c28dc3b Mon Sep 17 00:00:00 2001 +From a20be7b6dad49a10e4f11f00950e01925a3600fd Mon Sep 17 00:00:00 2001 From: Jonathan Yong <10walls@gmail.com> Date: Sat, 28 Jun 2014 09:54:57 +0800 -Subject: [PATCH 13/21] skip test for cygwin/mingw +Subject: [PATCH] skip test for cygwin/mingw --- gcc/testsuite/gcc.target/i386/pr25993.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/i386/pr25993.c b/gcc/testsuite/gcc.target/i386/pr25993.c -index b079e25..c30eaf5 100644 +index 1e7e933..2b12f97 100644 --- a/gcc/testsuite/gcc.target/i386/pr25993.c +++ b/gcc/testsuite/gcc.target/i386/pr25993.c @@ -1,5 +1,5 @@ /* { dg-do assemble } */ --/* { dg-skip-if "" { "*-*-darwin*" "*-*-mingw*" } { "*" } { "" } } */ -+/* { dg-skip-if "" { "*-*-darwin*" "*-*-mingw*" "*-*-cygwin*" } { "*" } { "" } } */ +-/* { dg-skip-if "" { "*-*-darwin*" "*-*-mingw*" } } */ ++/* { dg-skip-if "" { "*-*-darwin*" "*-*-mingw*" "*-*-cygwin*" } } */ /* { dg-options "-std=c99 -x assembler-with-cpp" } */ #ifndef __ASSEMBLER__ -- -2.4.5 +2.17.0 diff --git a/mingw-w64-cross-gcc/0014-64bit-Cygwin-uses-SEH.patch b/mingw-w64-cross-gcc/0014-64bit-Cygwin-uses-SEH.patch index 1d68485e..0969fa8c 100644 --- a/mingw-w64-cross-gcc/0014-64bit-Cygwin-uses-SEH.patch +++ b/mingw-w64-cross-gcc/0014-64bit-Cygwin-uses-SEH.patch @@ -47,41 +47,41 @@ index c8e6512..73e8928 100644 msg = "unhandled signal"; } --#if ! defined (_WIN64) +-#if !defined (_WIN64) +#if !defined(_WIN64) && !defined(__CYGWIN__) /* This call is important as it avoids locking the second time we catch a - signal. Note that this routine is documented as internal to Windows and - should not be used. */ + signal; it's equivalent to RtlUnwind (EstablisherFrame, NULL, NULL, 0); + Note that this routine is documented as internal to Windows and should @@ -203,9 +207,9 @@ __gnat_SEH_error_handler (struct _EXCEPTION_RECORD* ExceptionRecord, - Raise_From_Signal_Handler (exception, msg); } + -#endif /* !(defined (_WIN64) && defined (__SEH__)) */ +#endif /* !(defined (__x86_64__) && defined (__SEH__)) */ -#if defined (_WIN64) +#if defined (__x86_64__) - /* On x86_64 windows exception mechanism is no more based on a chained list - of handlers addresses on the stack. Instead unwinding information is used - to retrieve the exception handler (similar to ZCX GCC mechanism). So in + + /* On x86-64/Windows the EH mechanism is no more based on a chained list of + handlers addresses on the stack. Instead unwinding information is used @@ -258,7 +262,7 @@ void __gnat_install_SEH_handler (void *eh ATTRIBUTE_UNUSED) - just above. */ + { } -#else /* defined (_WIN64) */ +#else /* defined (__x86_64__) */ - /* Install the Win32 SEH exception handler. Note that the caller must have - allocated 8 bytes on the stack and pass the pointer to this stack - space. This is needed as the SEH exception handler must be on the stack of + + /* Install the Win32 SEH exception handler. Note that the caller must have + allocated 8 bytes on the stack and pass the pointer to this stack space. @@ -291,7 +295,7 @@ __gnat_install_SEH_handler (void *ER) - } + #endif -#else /* defined (_WIN32) */ +#else /* defined (_WIN32) || defined(__CYGWIN__) */ - /* For all non Windows targets we provide a dummy SEH install handler. */ + + /* For all non-Windows targets we provide a dummy SEH install handler. */ void __gnat_install_SEH_handler (void *eh ATTRIBUTE_UNUSED) - { diff --git a/gcc/ada/system-cygwin-x86_64.ads b/gcc/ada/system-cygwin-x86_64.ads new file mode 100644 index 0000000..9305ec1 diff --git a/mingw-w64-cross-gcc/0020-cygwin-uses-cyg-lib-prefix-v3.patch b/mingw-w64-cross-gcc/0020-cygwin-uses-cyg-lib-prefix-v3.patch index a1a1598a..84584e1f 100644 --- a/mingw-w64-cross-gcc/0020-cygwin-uses-cyg-lib-prefix-v3.patch +++ b/mingw-w64-cross-gcc/0020-cygwin-uses-cyg-lib-prefix-v3.patch @@ -1,3 +1,26 @@ +diff --git a/gcc/ada/Makefile.rtl b/gcc/ada/Makefile.rtl +index 7a57019..6feeaf9 100644 +--- a/gcc/ada/Makefile.rtl ++++ b/gcc/ada/Makefile.rtl +@@ -755,7 +755,7 @@ + + # Default shared object option. Note that we rely on the fact that the "soname" + # option will always be present and last in this flag, so that we can have +-# $(SO_OPTS)libgnat-x.xx ++# $(SO_OPTS)$(soprefix)gnat-x.xx + + SO_OPTS = -Wl,-soname, + +@@ -2026,6 +2026,9 @@ + GMEM_LIB = gmemlib + EXTRA_GNATTOOLS = ../../gnatdll$(exeext) + EXTRA_GNATMAKE_OBJS = mdll.o mdll-utl.o mdll-fil.o ++ ifeq ($(strip $(filter-out cygwin%,$(target_os))),) ++ soprefix = cyg ++ endif + soext = .dll + LIBRARY_VERSION := $(LIB_VERSION) + endif diff --git a/gcc/ada/gcc-interface/Makefile.in b/gcc/ada/gcc-interface/Makefile.in index 7a57019..6feeaf9 100644 --- a/gcc/ada/gcc-interface/Makefile.in @@ -10,25 +33,6 @@ index 7a57019..6feeaf9 100644 # program_transform_name and objdir are set by configure.ac. program_transform_name = -@@ -373,7 +374,7 @@ EH_MECHANISM= - - # Default shared object option. Note that we rely on the fact that the "soname" - # option will always be present and last in this flag, so that we can have --# $(SO_OPTS)libgnat-x.xx -+# $(SO_OPTS)$(soprefix)gnat-x.xx - - SO_OPTS = -Wl,-soname, - -@@ -1847,6 +1848,9 @@ ifeq ($(strip $(filter-out cygwin% mingw32% pe,$(target_os))),) - GMEM_LIB = gmemlib - EXTRA_GNATTOOLS = ../../gnatdll$(exeext) - EXTRA_GNATMAKE_OBJS = mdll.o mdll-utl.o mdll-fil.o -+ ifeq ($(strip $(filter-out cygwin%,$(target_os))),) -+ soprefix = cyg -+ endif - soext = .dll - LIBRARY_VERSION := $(LIB_VERSION) - endif @@ -2686,16 +2690,16 @@ install-gnatlib: ../stamp-gnatlib-$(RTSDIR) install-gcc-specs # Also install the .dSYM directories if they exist (these directories # contain the debug information for the shared libraries on darwin) diff --git a/mingw-w64-cross-gcc/0024-libitm-weak-symbols.patch b/mingw-w64-cross-gcc/0024-libitm-weak-symbols.patch index 9f3f6e0c..285441a4 100644 --- a/mingw-w64-cross-gcc/0024-libitm-weak-symbols.patch +++ b/mingw-w64-cross-gcc/0024-libitm-weak-symbols.patch @@ -23,11 +23,11 @@ index 138eeb1..f688e84 100644 libitm_la_SOURCES = aatree.cc alloc.cc alloc_c.cc alloc_cpp.cc \ barrier.cc beginend.cc clone.cc eh_cpp.cc local.cc query.cc \ @@ -473,7 +472,7 @@ clean-toolexeclibLTLIBRARIES: - rm -f "$${dir}/so_locations"; \ - done + } + libitm.la: $(libitm_la_OBJECTS) $(libitm_la_DEPENDENCIES) $(EXTRA_libitm_la_DEPENDENCIES) -- $(libitm_la_LINK) -rpath $(toolexeclibdir) $(libitm_la_OBJECTS) $(libitm_la_LIBADD) $(LIBS) -+ $(CXXLINK) $(libitm_la_LDFLAGS) -rpath $(toolexeclibdir) $(libitm_la_OBJECTS) $(libitm_la_LIBADD) $(LIBS) +- $(AM_V_GEN)$(libitm_la_LINK) -rpath $(toolexeclibdir) $(libitm_la_OBJECTS) $(libitm_la_LIBADD) $(LIBS) ++ $(AM_V_GEN)$(CXXLINK) $(libitm_la_LDFLAGS) -rpath $(toolexeclibdir) $(libitm_la_OBJECTS) $(libitm_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) @@ -143,7 +143,7 @@ index a6c06b5..a4ba223 100644 +#if !defined (HAVE_ELF_STYLE_WEAKREF) && !defined(PIC) void *__cxa_allocate_exception (size_t) { return NULL; } void __cxa_free_exception (void *) { return; } - void __cxa_throw (void *, void *, void *) { return; } + void __cxa_throw (void *, void *, void (*) (void *)) { return; } void *__cxa_begin_catch (void *) { return NULL; } void __cxa_end_catch (void) { return; } void __cxa_tm_cleanup (void *, void *, unsigned int) { return; } diff --git a/mingw-w64-cross-gcc/0028-g++-time.patch b/mingw-w64-cross-gcc/0028-g++-time.patch index 50299d8f..b0c5a788 100644 --- a/mingw-w64-cross-gcc/0028-g++-time.patch +++ b/mingw-w64-cross-gcc/0028-g++-time.patch @@ -1,7 +1,7 @@ This was just a bit outdated... ---- origsrc/gcc-5.3.0/libstdc++-v3/acinclude.m4 2015-11-24 07:25:07.000000000 -0600 -+++ src/gcc-5.3.0/libstdc++-v3/acinclude.m4 2016-04-01 00:21:40.077426000 -0500 +--- gcc-5.3.0/libstdc++-v3/acinclude.m4 2015-11-24 07:25:07.000000000 -0600 ++++ gcc-5.3.0/libstdc++-v3/acinclude.m4 2016-04-01 00:21:40.077426000 -0500 @@ -1196,7 +1196,10 @@ AC_DEFUN([GLIBCXX_ENABLE_LIBSTDCXX_TIME] case "${target_os}" in @@ -13,8 +13,8 @@ This was just a bit outdated... ;; darwin*) ac_has_nanosleep=yes ---- origsrc/gcc-5.3.0/libstdc++-v3/configure 2016-03-31 21:24:38.558164300 -0500 -+++ src/gcc-5.3.0/libstdc++-v3/configure 2016-04-01 00:26:14.110723800 -0500 +--- gcc-5.3.0/libstdc++-v3/configure 2016-03-31 21:24:38.558164300 -0500 ++++ gcc-5.3.0/libstdc++-v3/configure 2016-04-01 00:26:14.110723800 -0500 @@ -19632,7 +19632,10 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu case "${target_os}" in diff --git a/mingw-w64-cross-gcc/0030-newlib-ftm.patch b/mingw-w64-cross-gcc/0030-newlib-ftm.patch index 773813a1..c23dc9f9 100644 --- a/mingw-w64-cross-gcc/0030-newlib-ftm.patch +++ b/mingw-w64-cross-gcc/0030-newlib-ftm.patch @@ -1,5 +1,5 @@ ---- origsrc/gcc-6.4.0/gcc/glimits.h 2016-01-04 08:30:50.652828000 -0600 -+++ src/gcc-6.4.0/gcc/glimits.h 2017-11-13 18:46:28.887539100 -0600 +--- gcc-6.4.0/gcc/glimits.h 2016-01-04 08:30:50.652828000 -0600 ++++ gcc-6.4.0/gcc/glimits.h 2017-11-13 18:46:28.887539100 -0600 @@ -111,7 +111,7 @@ # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) #endif diff --git a/mingw-w64-cross-gcc/0031-define_std-unix.patch b/mingw-w64-cross-gcc/0031-define_std-unix.patch index d2b6961f..07fef8f1 100644 --- a/mingw-w64-cross-gcc/0031-define_std-unix.patch +++ b/mingw-w64-cross-gcc/0031-define_std-unix.patch @@ -1,5 +1,5 @@ ---- origsrc/gcc-6.4.0/gcc/config/i386/cygwin.h 2017-11-03 00:47:46.634665300 -0500 -+++ src/gcc-6.4.0/gcc/config/i386/cygwin.h 2018-01-15 16:36:17.677500200 -0600 +--- gcc-6.4.0/gcc/config/i386/cygwin.h 2017-11-03 00:47:46.634665300 -0500 ++++ gcc-6.4.0/gcc/config/i386/cygwin.h 2018-01-15 16:36:17.677500200 -0600 @@ -24,14 +24,12 @@ builtin_define ("__CYGWIN__"); \ if (!TARGET_64BIT) \ diff --git a/mingw-w64-cross-gcc/0032-fix-ada-malloc-error.patch b/mingw-w64-cross-gcc/0032-fix-ada-malloc-error.patch new file mode 100644 index 00000000..d91df958 --- /dev/null +++ b/mingw-w64-cross-gcc/0032-fix-ada-malloc-error.patch @@ -0,0 +1,11 @@ +--- gcc-8.3.0/gcc/ada/raise-gcc.c 2018-01-11 16:55:25.000000000 +0800 ++++ gcc-8.3.0/gcc/ada/raise-gcc.c 2019-04-03 20:46:23.784233200 +0800 +@@ -32,6 +32,8 @@ + /* Code related to the integration of the GCC mechanism for exception + handling. */ + ++#include "adaint.h" ++ + #ifndef IN_RTS + /* For gnat1/gnatbind compilation: use host headers. */ + # include "config.h" diff --git a/mingw-w64-cross-gcc/0130-libstdc++-in-out.patch b/mingw-w64-cross-gcc/0130-libstdc++-in-out.patch index d51897cc..a5dc68cf 100644 --- a/mingw-w64-cross-gcc/0130-libstdc++-in-out.patch +++ b/mingw-w64-cross-gcc/0130-libstdc++-in-out.patch @@ -14,9 +14,9 @@ The GCC maintainers have been notified: https://gcc.gnu.org/ml/gcc-help/2017-05/msg00121.html -diff -aurp gcc-7.3.0-orig/libstdc++-v3/config/locale/dragonfly/c_locale.h gcc-7.3.0/libstdc++-v3/config/locale/dragonfly/c_locale.h ---- gcc-7.3.0-orig/libstdc++-v3/config/locale/dragonfly/c_locale.h 2017-01-01 07:07:43.905435000 -0500 -+++ gcc-7.3.0/libstdc++-v3/config/locale/dragonfly/c_locale.h 2018-06-12 06:44:41.586068400 -0400 +diff -aurp gcc-7.1.0-orig/libstdc++-v3/config/locale/dragonfly/c_locale.h gcc-7.1.0/libstdc++-v3/config/locale/dragonfly/c_locale.h +--- gcc-7.1.0-orig/libstdc++-v3/config/locale/dragonfly/c_locale.h 2017-01-01 07:07:43.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/config/locale/dragonfly/c_locale.h 2017-06-23 19:59:50.649617300 -0400 @@ -55,7 +55,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // fall back to the unsafe vsprintf which, in general, can be dangerous // and should be avoided. @@ -38,9 +38,9 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/config/locale/dragonfly/c_locale.h gcc-7. #endif __builtin_va_end(__args); -diff -aurp gcc-7.3.0-orig/libstdc++-v3/config/locale/generic/c_locale.h gcc-7.3.0/libstdc++-v3/config/locale/generic/c_locale.h ---- gcc-7.3.0-orig/libstdc++-v3/config/locale/generic/c_locale.h 2017-01-01 07:07:43.905435000 -0500 -+++ gcc-7.3.0/libstdc++-v3/config/locale/generic/c_locale.h 2018-06-12 06:44:41.589102000 -0400 +diff -aurp gcc-7.1.0-orig/libstdc++-v3/config/locale/generic/c_locale.h gcc-7.1.0/libstdc++-v3/config/locale/generic/c_locale.h +--- gcc-7.1.0-orig/libstdc++-v3/config/locale/generic/c_locale.h 2017-01-01 07:07:43.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/config/locale/generic/c_locale.h 2017-06-23 19:59:50.657617500 -0400 @@ -53,7 +53,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // fall back to the unsafe vsprintf which, in general, can be dangerous // and should be avoided. @@ -53,7 +53,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/config/locale/generic/c_locale.h gcc-7.3. @@ -71,9 +71,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __builtin_va_start(__args, __fmt); - #if _GLIBCXX_USE_C99_STDIO + #if _GLIBCXX_USE_C99_STDIO && !_GLIBCXX_HAVE_BROKEN_VSNPRINTF - const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args); + const int __ret = __builtin_vsnprintf(___out, __size, __fmt, __args); #else @@ -62,9 +62,9 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/config/locale/generic/c_locale.h gcc-7.3. #endif __builtin_va_end(__args); -diff -aurp gcc-7.3.0-orig/libstdc++-v3/config/locale/gnu/c_locale.h gcc-7.3.0/libstdc++-v3/config/locale/gnu/c_locale.h ---- gcc-7.3.0-orig/libstdc++-v3/config/locale/gnu/c_locale.h 2017-01-01 07:07:43.905435000 -0500 -+++ gcc-7.3.0/libstdc++-v3/config/locale/gnu/c_locale.h 2018-06-12 06:44:41.593049800 -0400 +diff -aurp gcc-7.1.0-orig/libstdc++-v3/config/locale/gnu/c_locale.h gcc-7.1.0/libstdc++-v3/config/locale/gnu/c_locale.h +--- gcc-7.1.0-orig/libstdc++-v3/config/locale/gnu/c_locale.h 2017-01-01 07:07:43.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/config/locale/gnu/c_locale.h 2017-06-23 19:59:50.666619200 -0400 @@ -67,7 +67,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // and should be avoided. inline int @@ -86,10 +86,10 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/config/locale/gnu/c_locale.h gcc-7.3.0/li #endif __builtin_va_end(__args); -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/basic_string.h gcc-7.3.0/libstdc++-v3/include/bits/basic_string.h ---- gcc-7.3.0-orig/libstdc++-v3/include/bits/basic_string.h 2017-09-20 18:26:19.141800000 -0400 -+++ gcc-7.3.0/libstdc++-v3/include/bits/basic_string.h 2018-06-12 06:44:41.352549800 -0400 -@@ -6331,13 +6331,13 @@ _GLIBCXX_END_NAMESPACE_CXX11 +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/bits/basic_string.h gcc-7.1.0/libstdc++-v3/include/bits/basic_string.h +--- gcc-7.1.0-orig/libstdc++-v3/include/bits/basic_string.h 2017-03-14 10:51:19.000000000 -0400 ++++ gcc-7.1.0/libstdc++-v3/include/bits/basic_string.h 2017-06-23 19:59:50.199560200 -0400 +@@ -6141,13 +6141,13 @@ _GLIBCXX_END_NAMESPACE_CXX11 template<> basic_istream& @@ -105,9 +105,9 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/basic_string.h gcc-7.3.0/lib wchar_t __delim); #endif -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/basic_string.tcc gcc-7.3.0/libstdc++-v3/include/bits/basic_string.tcc ---- gcc-7.3.0-orig/libstdc++-v3/include/bits/basic_string.tcc 2017-02-01 06:41:48.369557000 -0500 -+++ gcc-7.3.0/libstdc++-v3/include/bits/basic_string.tcc 2018-06-12 06:44:41.362554000 -0400 +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/bits/basic_string.tcc gcc-7.1.0/libstdc++-v3/include/bits/basic_string.tcc +--- gcc-7.1.0-orig/libstdc++-v3/include/bits/basic_string.tcc 2017-02-01 06:41:48.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/include/bits/basic_string.tcc 2017-06-23 19:59:50.217562400 -0400 @@ -1462,7 +1462,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // 21.3.7.9 basic_string::getline and operators template @@ -250,10 +250,10 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/basic_string.tcc gcc-7.3.0/l } // Inhibit implicit instantiations for required instantiations, -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/istream.tcc gcc-7.3.0/libstdc++-v3/include/bits/istream.tcc ---- gcc-7.3.0-orig/libstdc++-v3/include/bits/istream.tcc 2017-08-14 08:14:01.250966000 -0400 -+++ gcc-7.3.0/libstdc++-v3/include/bits/istream.tcc 2018-06-12 06:44:41.369678200 -0400 -@@ -44,21 +44,21 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/bits/istream.tcc gcc-7.1.0/libstdc++-v3/include/bits/istream.tcc +--- gcc-7.1.0-orig/libstdc++-v3/include/bits/istream.tcc 2017-01-01 07:07:43.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/include/bits/istream.tcc 2017-06-23 19:59:50.230563400 -0400 +@@ -44,21 +44,21 @@ template basic_istream<_CharT, _Traits>::sentry:: @@ -282,7 +282,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/istream.tcc gcc-7.3.0/libstd while (!traits_type::eq_int_type(__c, __eof) && __ct.is(ctype_base::space, traits_type::to_char_type(__c))) -@@ -73,18 +73,18 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +@@ -73,18 +73,18 @@ } __catch(__cxxabiv1::__forced_unwind&) { @@ -305,7 +305,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/istream.tcc gcc-7.3.0/libstd } } -@@ -928,18 +928,18 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +@@ -928,18 +928,18 @@ // 27.6.1.2.3 Character extraction templates template basic_istream<_CharT, _Traits>& @@ -327,7 +327,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/istream.tcc gcc-7.3.0/libstd if (!_Traits::eq_int_type(__cb, _Traits::eof())) __c = _Traits::to_char_type(__cb); else -@@ -947,20 +947,20 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +@@ -947,20 +947,20 @@ } __catch(__cxxabiv1::__forced_unwind&) { @@ -353,7 +353,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/istream.tcc gcc-7.3.0/libstd { typedef basic_istream<_CharT, _Traits> __istream_type; typedef basic_streambuf<_CharT, _Traits> __streambuf_type; -@@ -970,20 +970,20 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +@@ -970,20 +970,20 @@ streamsize __extracted = 0; ios_base::iostate __err = ios_base::goodbit; @@ -378,7 +378,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/istream.tcc gcc-7.3.0/libstd int_type __c = __sb->sgetc(); while (__extracted < __num - 1 -@@ -1001,36 +1001,36 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +@@ -1001,36 +1001,36 @@ // _GLIBCXX_RESOLVE_LIB_DEFECTS // 68. Extractors for char* should store null at end *__s = char_type(); @@ -423,7 +423,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/istream.tcc gcc-7.3.0/libstd __int_type __c = __sb->sgetc(); while (!_Traits::eq_int_type(__c, __eof) -@@ -1038,8 +1038,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +@@ -1038,8 +1038,8 @@ __c = __sb->snextc(); if (_Traits::eq_int_type(__c, __eof)) @@ -434,9 +434,9 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/istream.tcc gcc-7.3.0/libstd } // Inhibit implicit instantiations for required instantiations, -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/locale_conv.h gcc-7.3.0/libstdc++-v3/include/bits/locale_conv.h ---- gcc-7.3.0-orig/libstdc++-v3/include/bits/locale_conv.h 2017-12-01 12:11:59.911224000 -0500 -+++ gcc-7.3.0/libstdc++-v3/include/bits/locale_conv.h 2018-06-12 06:44:41.374665100 -0400 +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/bits/locale_conv.h gcc-7.1.0/libstdc++-v3/include/bits/locale_conv.h +--- gcc-7.1.0-orig/libstdc++-v3/include/bits/locale_conv.h 2017-03-16 11:27:51.000000000 -0400 ++++ gcc-7.1.0/libstdc++-v3/include/bits/locale_conv.h 2017-06-23 19:59:50.240565700 -0400 @@ -249,10 +249,10 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11 { if (!_M_with_cvtstate) @@ -466,7 +466,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/locale_conv.h gcc-7.3.0/libs return _M_byte_err_string; __throw_range_error("wstring_convert::to_bytes"); @@ -378,13 +378,13 @@ _GLIBCXX_END_NAMESPACE_CXX11 - { return _M_buf && _M_conv_put() && !_M_buf->pubsync() ? 0 : -1; } + { return _M_buf && _M_conv_put() && _M_buf->pubsync() ? 0 : -1; } typename _Wide_streambuf::int_type - overflow(typename _Wide_streambuf::int_type __out) @@ -483,9 +483,9 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/locale_conv.h gcc-7.3.0/libs } typename _Wide_streambuf::int_type -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/locale_facets.h gcc-7.3.0/libstdc++-v3/include/bits/locale_facets.h ---- gcc-7.3.0-orig/libstdc++-v3/include/bits/locale_facets.h 2017-01-01 07:07:43.905435000 -0500 -+++ gcc-7.3.0/libstdc++-v3/include/bits/locale_facets.h 2018-06-12 06:44:41.385629300 -0400 +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/bits/locale_facets.h gcc-7.1.0/libstdc++-v3/include/bits/locale_facets.h +--- gcc-7.1.0-orig/libstdc++-v3/include/bits/locale_facets.h 2017-01-01 07:07:43.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/include/bits/locale_facets.h 2017-06-23 19:59:50.258067400 -0400 @@ -1984,7 +1984,7 @@ _GLIBCXX_BEGIN_NAMESPACE_LDBL * except if the value is 1, sets @a v to true, if the value is 0, sets * @a v to false, and otherwise set err to ios_base::failbit. @@ -620,9 +620,9 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/locale_facets.h gcc-7.3.0/li protected: /// Destructor. -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/ostream.tcc gcc-7.3.0/libstdc++-v3/include/bits/ostream.tcc ---- gcc-7.3.0-orig/libstdc++-v3/include/bits/ostream.tcc 2017-01-01 07:07:43.905435000 -0500 -+++ gcc-7.3.0/libstdc++-v3/include/bits/ostream.tcc 2018-06-12 06:44:41.390622400 -0400 +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/bits/ostream.tcc gcc-7.1.0/libstdc++-v3/include/bits/ostream.tcc +--- gcc-7.1.0-orig/libstdc++-v3/include/bits/ostream.tcc 2017-01-01 07:07:43.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/include/bits/ostream.tcc 2017-06-23 19:59:50.269068600 -0400 @@ -318,10 +318,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template @@ -660,9 +660,9 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/ostream.tcc gcc-7.3.0/libstd } // Inhibit implicit instantiations for required instantiations, -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/ostream_insert.h gcc-7.3.0/libstdc++-v3/include/bits/ostream_insert.h ---- gcc-7.3.0-orig/libstdc++-v3/include/bits/ostream_insert.h 2017-01-01 07:07:43.905435000 -0500 -+++ gcc-7.3.0/libstdc++-v3/include/bits/ostream_insert.h 2018-06-12 06:44:41.394612300 -0400 +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/bits/ostream_insert.h gcc-7.1.0/libstdc++-v3/include/bits/ostream_insert.h +--- gcc-7.1.0-orig/libstdc++-v3/include/bits/ostream_insert.h 2017-01-01 07:07:43.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/include/bits/ostream_insert.h 2017-06-23 19:59:50.277569900 -0400 @@ -41,31 +41,31 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template @@ -760,10 +760,10 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/ostream_insert.h gcc-7.3.0/l } // Inhibit implicit instantiations for required instantiations, -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/regex.h gcc-7.3.0/libstdc++-v3/include/bits/regex.h ---- gcc-7.3.0-orig/libstdc++-v3/include/bits/regex.h 2018-01-05 17:22:28.979885000 -0500 -+++ gcc-7.3.0/libstdc++-v3/include/bits/regex.h 2018-06-12 06:44:41.404584900 -0400 -@@ -1777,7 +1777,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11 +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/bits/regex.h gcc-7.1.0/libstdc++-v3/include/bits/regex.h +--- gcc-7.1.0-orig/libstdc++-v3/include/bits/regex.h 2017-03-01 22:43:49.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/include/bits/regex.h 2017-06-23 19:59:50.295573100 -0400 +@@ -1779,7 +1779,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11 */ template _Out_iter @@ -772,7 +772,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/regex.h gcc-7.3.0/libstdc++- const char_type* __fmt_last, match_flag_type __flags = regex_constants::format_default) const; -@@ -1786,10 +1786,10 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11 +@@ -1788,10 +1788,10 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11 */ template _Out_iter @@ -785,7 +785,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/regex.h gcc-7.3.0/libstdc++- __flags); } -@@ -2277,46 +2277,46 @@ _GLIBCXX_END_NAMESPACE_CXX11 +@@ -2279,46 +2279,46 @@ _GLIBCXX_END_NAMESPACE_CXX11 /** * @brief Search for a regular expression within a range for multiple times, and replace the matched parts through filling a format string. @@ -839,10 +839,10 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/regex.h gcc-7.3.0/libstdc++- const basic_regex<_Ch_type, _Rx_traits>& __e, const _Ch_type* __fmt, regex_constants::match_flag_type __flags -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/regex.tcc gcc-7.3.0/libstdc++-v3/include/bits/regex.tcc ---- gcc-7.3.0-orig/libstdc++-v3/include/bits/regex.tcc 2017-01-01 07:07:43.905435000 -0500 -+++ gcc-7.3.0/libstdc++-v3/include/bits/regex.tcc 2018-06-12 06:44:41.419539900 -0400 -@@ -357,7 +357,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/bits/regex.tcc gcc-7.1.0/libstdc++-v3/include/bits/regex.tcc +--- gcc-7.1.0-orig/libstdc++-v3/include/bits/regex.tcc 2017-01-01 07:07:43.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/include/bits/regex.tcc 2017-06-23 19:59:50.307074100 -0400 +@@ -353,7 +353,7 @@ template template _Out_iter match_results<_Bi_iter, _Alloc>:: @@ -851,7 +851,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/regex.tcc gcc-7.3.0/libstdc+ const match_results<_Bi_iter, _Alloc>::char_type* __fmt_first, const match_results<_Bi_iter, _Alloc>::char_type* __fmt_last, match_flag_type __flags) const -@@ -372,7 +372,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +@@ -368,7 +368,7 @@ { auto& __sub = (*this)[__idx]; if (__sub.matched) @@ -860,20 +860,29 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/regex.tcc gcc-7.3.0/libstdc+ }; if (__flags & regex_constants::format_sed) -@@ -389,10 +389,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION - && __fctyp.is(__ctype_type::digit, *__fmt_first)) - __output(__traits.value(*__fmt_first++, 10)); - else -- *__out++ = '\\'; -+ *___out++ = '\\'; - } - else -- *__out++ = *__fmt_first++; -+ *___out++ = *__fmt_first++; +@@ -382,7 +382,7 @@ + if (__fctyp.is(__ctype_type::digit, *__fmt_first)) + __output(__traits.value(*__fmt_first, 10)); + else +- *__out++ = *__fmt_first; ++ *___out++ = *__fmt_first; + continue; + } + if (*__fmt_first == '\\') +@@ -395,10 +395,10 @@ + __output(0); + continue; + } +- *__out++ = *__fmt_first; ++ *___out++ = *__fmt_first; + } + if (__escaping) +- *__out++ = '\\'; ++ *___out++ = '\\'; } else { -@@ -402,7 +402,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +@@ -408,7 +408,7 @@ if (__next == __fmt_last) break; @@ -882,7 +891,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/regex.tcc gcc-7.3.0/libstdc+ auto __eat = [&](char __ch) -> bool { -@@ -415,22 +415,22 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +@@ -421,22 +421,22 @@ }; if (++__next == __fmt_last) @@ -909,7 +918,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/regex.tcc gcc-7.3.0/libstdc+ } else if (__fctyp.is(__ctype_type::digit, *__next)) { -@@ -445,18 +445,18 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +@@ -451,18 +451,18 @@ __output(__num); } else @@ -932,7 +941,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/regex.tcc gcc-7.3.0/libstdc+ const basic_regex<_Ch_type, _Rx_traits>& __e, const _Ch_type* __fmt, regex_constants::match_flag_type __flags) -@@ -467,7 +467,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +@@ -473,7 +473,7 @@ if (__i == __end) { if (!(__flags & regex_constants::format_no_copy)) @@ -941,7 +950,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/regex.tcc gcc-7.3.0/libstdc+ } else { -@@ -476,17 +476,17 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +@@ -482,17 +482,17 @@ for (; __i != __end; ++__i) { if (!(__flags & regex_constants::format_no_copy)) @@ -964,10 +973,10 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/regex.tcc gcc-7.3.0/libstdc+ } template _RandomAccessIterator __sample(_InputIterator __first, _InputIterator __last, input_iterator_tag, @@ -976,7 +985,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/stl_algo.h gcc-7.3.0/libstdc _Size __n, _UniformRandomBitGenerator&& __g) { using __distrib_type = uniform_int_distribution<_Size>; -@@ -5720,7 +5720,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO +@@ -5706,7 +5706,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO _Size __sample_sz = 0; while (__first != __last && __sample_sz != __n) { @@ -985,7 +994,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/stl_algo.h gcc-7.3.0/libstdc ++__first; } for (auto __pop_sz = __sample_sz; __first != __last; -@@ -5728,9 +5728,9 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO +@@ -5714,9 +5714,9 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO { const auto __k = __d(__g, __param_type{0, __pop_sz}); if (__k < __n) @@ -997,7 +1006,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/stl_algo.h gcc-7.3.0/libstdc } /// Selection sampling algorithm. -@@ -5739,7 +5739,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO +@@ -5725,7 +5725,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO _OutputIterator __sample(_ForwardIterator __first, _ForwardIterator __last, forward_iterator_tag, @@ -1006,7 +1015,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/stl_algo.h gcc-7.3.0/libstdc _Size __n, _UniformRandomBitGenerator&& __g) { using __distrib_type = uniform_int_distribution<_Size>; -@@ -5768,7 +5768,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO +@@ -5754,7 +5754,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO --__unsampled_sz; if (__p.first < __n) { @@ -1015,7 +1024,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/stl_algo.h gcc-7.3.0/libstdc --__n; } -@@ -5779,7 +5779,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO +@@ -5765,7 +5765,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO --__unsampled_sz; if (__p.second < __n) { @@ -1024,7 +1033,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/stl_algo.h gcc-7.3.0/libstdc --__n; } -@@ -5792,10 +5792,10 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO +@@ -5778,10 +5778,10 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO for (; __n != 0; ++__first) if (__d(__g, __param_type{0, --__unsampled_sz}) < __n) { @@ -1037,7 +1046,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/stl_algo.h gcc-7.3.0/libstdc } #if __cplusplus > 201402L -@@ -5805,7 +5805,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO +@@ -5791,7 +5791,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO typename _Distance, typename _UniformRandomBitGenerator> _SampleIterator sample(_PopulationIterator __first, _PopulationIterator __last, @@ -1046,7 +1055,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/stl_algo.h gcc-7.3.0/libstdc _UniformRandomBitGenerator&& __g) { using __pop_cat = typename -@@ -5824,7 +5824,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO +@@ -5809,7 +5809,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO typename iterator_traits<_PopulationIterator>::difference_type __d = __n; return _GLIBCXX_STD_A:: @@ -1055,9 +1064,9 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/bits/stl_algo.h gcc-7.3.0/libstdc std::forward<_UniformRandomBitGenerator>(__g)); } #endif // C++17 -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/experimental/algorithm gcc-7.3.0/libstdc++-v3/include/experimental/algorithm ---- gcc-7.3.0-orig/libstdc++-v3/include/experimental/algorithm 2017-01-01 07:07:43.905435000 -0500 -+++ gcc-7.3.0/libstdc++-v3/include/experimental/algorithm 2018-06-12 06:44:41.455455000 -0400 +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/experimental/algorithm gcc-7.1.0/libstdc++-v3/include/experimental/algorithm +--- gcc-7.1.0-orig/libstdc++-v3/include/experimental/algorithm 2017-01-01 07:07:43.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/include/experimental/algorithm 2017-06-23 19:59:50.420588000 -0400 @@ -59,7 +59,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION typename _Distance, typename _UniformRandomNumberGenerator> _SampleIterator @@ -1076,9 +1085,9 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/experimental/algorithm gcc-7.3.0/ __d, std::forward<_UniformRandomNumberGenerator>(__g)); } -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/ext/algorithm gcc-7.3.0/libstdc++-v3/include/ext/algorithm ---- gcc-7.3.0-orig/libstdc++-v3/include/ext/algorithm 2017-01-01 07:07:43.905435000 -0500 -+++ gcc-7.3.0/libstdc++-v3/include/ext/algorithm 2018-06-12 06:44:41.464423300 -0400 +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/ext/algorithm gcc-7.1.0/libstdc++-v3/include/ext/algorithm +--- gcc-7.1.0-orig/libstdc++-v3/include/ext/algorithm 2017-01-01 07:07:43.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/include/ext/algorithm 2017-06-23 19:59:50.433089200 -0400 @@ -265,7 +265,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION typename _Distance> _OutputIterator @@ -1189,9 +1198,9 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/ext/algorithm gcc-7.3.0/libstdc++ } /** -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/ext/pb_ds/detail/debug_map_base.hpp gcc-7.3.0/libstdc++-v3/include/ext/pb_ds/detail/debug_map_base.hpp ---- gcc-7.3.0-orig/libstdc++-v3/include/ext/pb_ds/detail/debug_map_base.hpp 2017-01-01 07:07:43.905435000 -0500 -+++ gcc-7.3.0/libstdc++-v3/include/ext/pb_ds/detail/debug_map_base.hpp 2018-06-12 06:44:41.470403200 -0400 +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/ext/pb_ds/detail/debug_map_base.hpp gcc-7.1.0/libstdc++-v3/include/ext/pb_ds/detail/debug_map_base.hpp +--- gcc-7.1.0-orig/libstdc++-v3/include/ext/pb_ds/detail/debug_map_base.hpp 2017-01-01 07:07:43.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/include/ext/pb_ds/detail/debug_map_base.hpp 2017-06-23 19:59:50.443591000 -0400 @@ -57,9 +57,9 @@ namespace __gnu_pbds // Need std::pair ostream extractor. template @@ -1204,9 +1213,9 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/ext/pb_ds/detail/debug_map_base.h #define PB_DS_CLASS_T_DEC \ template -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/ext/random.tcc gcc-7.3.0/libstdc++-v3/include/ext/random.tcc ---- gcc-7.3.0-orig/libstdc++-v3/include/ext/random.tcc 2017-01-01 07:07:43.905435000 -0500 -+++ gcc-7.3.0/libstdc++-v3/include/ext/random.tcc 2018-06-12 06:44:41.480379800 -0400 +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/ext/random.tcc gcc-7.1.0/libstdc++-v3/include/ext/random.tcc +--- gcc-7.1.0-orig/libstdc++-v3/include/ext/random.tcc 2017-01-01 07:07:43.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/include/ext/random.tcc 2017-06-23 19:59:50.458593100 -0400 @@ -207,38 +207,38 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION namespace { @@ -1264,9 +1273,9 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/ext/random.tcc gcc-7.3.0/libstdc+ } -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/ext/vstring.tcc gcc-7.3.0/libstdc++-v3/include/ext/vstring.tcc ---- gcc-7.3.0-orig/libstdc++-v3/include/ext/vstring.tcc 2017-01-01 07:07:43.905435000 -0500 -+++ gcc-7.3.0/libstdc++-v3/include/ext/vstring.tcc 2018-06-12 06:44:41.486334700 -0400 +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/ext/vstring.tcc gcc-7.1.0/libstdc++-v3/include/ext/vstring.tcc +--- gcc-7.1.0-orig/libstdc++-v3/include/ext/vstring.tcc 2017-01-01 07:07:43.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/include/ext/vstring.tcc 2017-06-23 19:59:50.469594000 -0400 @@ -549,7 +549,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template class _Base> @@ -1410,9 +1419,9 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/ext/vstring.tcc gcc-7.3.0/libstdc } _GLIBCXX_END_NAMESPACE_VERSION -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/parallel/algo.h gcc-7.3.0/libstdc++-v3/include/parallel/algo.h ---- gcc-7.3.0-orig/libstdc++-v3/include/parallel/algo.h 2017-01-01 07:07:43.905435000 -0500 -+++ gcc-7.3.0/libstdc++-v3/include/parallel/algo.h 2018-06-12 06:44:41.496336900 -0400 +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/parallel/algo.h gcc-7.1.0/libstdc++-v3/include/parallel/algo.h +--- gcc-7.1.0-orig/libstdc++-v3/include/parallel/algo.h 2017-01-01 07:07:43.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/include/parallel/algo.h 2017-06-23 19:59:50.486095800 -0400 @@ -289,67 +289,67 @@ namespace __parallel // Sequential fallback template @@ -1749,9 +1758,9 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/parallel/algo.h gcc-7.3.0/libstdc } // Sequential fallback -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/parallel/multiway_merge.h gcc-7.3.0/libstdc++-v3/include/parallel/multiway_merge.h ---- gcc-7.3.0-orig/libstdc++-v3/include/parallel/multiway_merge.h 2017-01-01 07:07:43.905435000 -0500 -+++ gcc-7.3.0/libstdc++-v3/include/parallel/multiway_merge.h 2018-06-12 06:44:41.507310700 -0400 +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/parallel/multiway_merge.h gcc-7.1.0/libstdc++-v3/include/parallel/multiway_merge.h +--- gcc-7.1.0-orig/libstdc++-v3/include/parallel/multiway_merge.h 2017-01-01 07:07:43.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/include/parallel/multiway_merge.h 2017-06-23 19:59:50.502097800 -0400 @@ -1372,7 +1372,7 @@ namespace __gnu_parallel * for (int __j = 0; __i < 10; ++__j) * sequences[__i][__j] = __j; @@ -1770,9 +1779,9 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/parallel/multiway_merge.h gcc-7.3 * std::vector > seqs; * for (int __i = 0; __i < 10; ++__i) * { seqs.push(std::make_pair(sequences[__i], -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/parallel/set_operations.h gcc-7.3.0/libstdc++-v3/include/parallel/set_operations.h ---- gcc-7.3.0-orig/libstdc++-v3/include/parallel/set_operations.h 2017-01-01 07:07:43.905435000 -0500 -+++ gcc-7.3.0/libstdc++-v3/include/parallel/set_operations.h 2018-06-12 06:44:41.512296800 -0400 +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/parallel/set_operations.h gcc-7.1.0/libstdc++-v3/include/parallel/set_operations.h +--- gcc-7.1.0-orig/libstdc++-v3/include/parallel/set_operations.h 2017-01-01 07:07:43.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/include/parallel/set_operations.h 2017-06-23 19:59:50.516599900 -0400 @@ -130,12 +130,12 @@ namespace __gnu_parallel } @@ -1841,9 +1850,9 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/parallel/set_operations.h gcc-7.3 }; template @@ -2103,11 +2112,11 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/thread gcc-7.3.0/libstdc++-v3 } _GLIBCXX_END_NAMESPACE_VERSION -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/include/std/tuple ---- gcc-7.3.0-orig/libstdc++-v3/include/std/tuple 2017-03-23 15:40:07.832944000 -0400 -+++ gcc-7.3.0/libstdc++-v3/include/std/tuple 2018-06-12 06:44:41.540222700 -0400 -@@ -220,23 +220,23 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION - constexpr _Tuple_impl(const _Tuple_impl&) = default; +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/std/tuple gcc-7.1.0/libstdc++-v3/include/std/tuple +--- gcc-7.1.0-orig/libstdc++-v3/include/std/tuple 2017-03-23 15:40:07.000000000 -0400 ++++ gcc-7.1.0/libstdc++-v3/include/std/tuple 2017-06-23 19:59:50.576607700 -0400 +@@ -224,23 +224,23 @@ + _Tuple_impl& operator=(const _Tuple_impl&) = delete; constexpr - _Tuple_impl(_Tuple_impl&& __in) @@ -2139,7 +2148,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ template _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) -@@ -260,81 +260,81 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +@@ -264,60 +264,60 @@ template _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, @@ -2183,63 +2192,35 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ - (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) { } + (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(___in))) { } - _Tuple_impl& -- operator=(const _Tuple_impl& __in) -+ operator=(const _Tuple_impl& ___in) - { -- _M_head(*this) = _M_head(__in); -- _M_tail(*this) = _M_tail(__in); -+ _M_head(*this) = _M_head(___in); -+ _M_tail(*this) = _M_tail(___in); - return *this; - } - - _Tuple_impl& -- operator=(_Tuple_impl&& __in) -+ operator=(_Tuple_impl&& ___in) - noexcept(__and_, - is_nothrow_move_assignable<_Inherited>>::value) - { -- _M_head(*this) = std::forward<_Head>(_M_head(__in)); -- _M_tail(*this) = std::move(_M_tail(__in)); -+ _M_head(*this) = std::forward<_Head>(_M_head(___in)); -+ _M_tail(*this) = std::move(_M_tail(___in)); - return *this; - } - template - _Tuple_impl& -- operator=(const _Tuple_impl<_Idx, _UElements...>& __in) -+ operator=(const _Tuple_impl<_Idx, _UElements...>& ___in) + void +- _M_assign(const _Tuple_impl<_Idx, _UElements...>& __in) ++ _M_assign(const _Tuple_impl<_Idx, _UElements...>& ___in) { - _M_head(*this) = _Tuple_impl<_Idx, _UElements...>::_M_head(__in); -- _M_tail(*this) = _Tuple_impl<_Idx, _UElements...>::_M_tail(__in); + _M_head(*this) = _Tuple_impl<_Idx, _UElements...>::_M_head(___in); -+ _M_tail(*this) = _Tuple_impl<_Idx, _UElements...>::_M_tail(___in); - return *this; + _M_tail(*this)._M_assign( +- _Tuple_impl<_Idx, _UElements...>::_M_tail(__in)); ++ _Tuple_impl<_Idx, _UElements...>::_M_tail(___in)); } template - _Tuple_impl& -- operator=(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) -+ operator=(_Tuple_impl<_Idx, _UHead, _UTails...>&& ___in) + void +- _M_assign(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) ++ _M_assign(_Tuple_impl<_Idx, _UHead, _UTails...>&& ___in) { _M_head(*this) = std::forward<_UHead> - (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)); + (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(___in)); - _M_tail(*this) = std::move -- (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in)); -+ (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(___in)); - return *this; + _M_tail(*this)._M_assign( +- std::move(_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))); ++ std::move(_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(___in))); } protected: void - _M_swap(_Tuple_impl& __in) + _M_swap(_Tuple_impl& ___in) - noexcept(__is_nothrow_swappable<_Head>::value -- && noexcept(_M_tail(__in)._M_swap(_M_tail(__in)))) -+ && noexcept(_M_tail(___in)._M_swap(_M_tail(___in)))) { using std::swap; - swap(_M_head(*this), _M_head(__in)); @@ -2249,8 +2230,8 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ } }; -@@ -368,17 +368,17 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION - constexpr _Tuple_impl(const _Tuple_impl&) = default; +@@ -355,17 +355,17 @@ + _Tuple_impl& operator=(const _Tuple_impl&) = delete; constexpr - _Tuple_impl(_Tuple_impl&& __in) @@ -2273,7 +2254,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ { } template -@@ -398,67 +398,67 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +@@ -385,49 +385,49 @@ template _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, @@ -2307,51 +2288,29 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ + std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(___in))) { } - _Tuple_impl& -- operator=(const _Tuple_impl& __in) -+ operator=(const _Tuple_impl& ___in) - { -- _M_head(*this) = _M_head(__in); -+ _M_head(*this) = _M_head(___in); - return *this; - } - - _Tuple_impl& -- operator=(_Tuple_impl&& __in) -+ operator=(_Tuple_impl&& ___in) - noexcept(is_nothrow_move_assignable<_Head>::value) - { -- _M_head(*this) = std::forward<_Head>(_M_head(__in)); -+ _M_head(*this) = std::forward<_Head>(_M_head(___in)); - return *this; - } - template - _Tuple_impl& -- operator=(const _Tuple_impl<_Idx, _UHead>& __in) -+ operator=(const _Tuple_impl<_Idx, _UHead>& ___in) + void +- _M_assign(const _Tuple_impl<_Idx, _UHead>& __in) ++ _M_assign(const _Tuple_impl<_Idx, _UHead>& ___in) { - _M_head(*this) = _Tuple_impl<_Idx, _UHead>::_M_head(__in); + _M_head(*this) = _Tuple_impl<_Idx, _UHead>::_M_head(___in); - return *this; } template - _Tuple_impl& -- operator=(_Tuple_impl<_Idx, _UHead>&& __in) -+ operator=(_Tuple_impl<_Idx, _UHead>&& ___in) + void +- _M_assign(_Tuple_impl<_Idx, _UHead>&& __in) ++ _M_assign(_Tuple_impl<_Idx, _UHead>&& ___in) { _M_head(*this) - = std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in)); + = std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(___in)); - return *this; } protected: void - _M_swap(_Tuple_impl& __in) + _M_swap(_Tuple_impl& ___in) - noexcept(__is_nothrow_swappable<_Head>::value) { using std::swap; - swap(_M_head(*this), _M_head(__in)); @@ -2359,7 +2318,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ } }; -@@ -675,8 +675,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +@@ -655,8 +655,8 @@ && _TNTC<_Dummy>::template _NonNestedTuple&>(), bool>::type=true> @@ -2370,7 +2329,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ { } template::template _NonNestedTuple&>(), bool>::type=false> @@ -2381,7 +2340,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ { } template::template _NonNestedTuple&&>(), bool>::type=true> @@ -2392,7 +2351,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ template::template -@@ -710,8 +710,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +@@ -690,8 +690,8 @@ && _TNTC<_Dummy>::template _NonNestedTuple&&>(), bool>::type=false> @@ -2403,7 +2362,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ // Allocator-extended constructors. -@@ -764,12 +764,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +@@ -744,12 +744,12 @@ { } template @@ -2420,7 +2379,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ template&&>(), bool>::type=true> tuple(allocator_arg_t __tag, const _Alloc& __a, @@ -2432,7 +2391,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ { } template&&>(), bool>::type=false> explicit tuple(allocator_arg_t __tag, const _Alloc& __a, @@ -2444,7 +2403,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ { } template&&>(), bool>::type=true> tuple(allocator_arg_t __tag, const _Alloc& __a, @@ -2456,7 +2415,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ { } template&&>(), bool>::type=false> explicit tuple(allocator_arg_t __tag, const _Alloc& __a, @@ -2467,60 +2426,65 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ + static_cast<_Tuple_impl<0, _UElements...>&&>(___in)) { } + // tuple assignment +@@ -816,46 +816,46 @@ tuple& -- operator=(const tuple& __in) -+ operator=(const tuple& ___in) + operator=(typename conditional<__assignable(), + const tuple&, +- const __nonesuch_no_braces&>::type __in) ++ const __nonesuch_no_braces&>::type ___in) + noexcept(__nothrow_assignable()) { -- static_cast<_Inherited&>(*this) = __in; -+ static_cast<_Inherited&>(*this) = ___in; +- this->_M_assign(__in); ++ this->_M_assign(___in); return *this; } tuple& -- operator=(tuple&& __in) -+ operator=(tuple&& ___in) - noexcept(is_nothrow_move_assignable<_Inherited>::value) + operator=(typename conditional<__assignable<_Elements...>(), + tuple&&, +- __nonesuch_no_braces&&>::type __in) ++ __nonesuch_no_braces&&>::type ___in) + noexcept(__nothrow_assignable<_Elements...>()) { -- static_cast<_Inherited&>(*this) = std::move(__in); -+ static_cast<_Inherited&>(*this) = std::move(___in); +- this->_M_assign(std::move(__in)); ++ this->_M_assign(std::move(___in)); return *this; } -@@ -850,9 +850,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION - typename - enable_if::type -- operator=(const tuple<_UElements...>& __in) -+ operator=(const tuple<_UElements...>& ___in) - { -- static_cast<_Inherited&>(*this) = __in; -+ static_cast<_Inherited&>(*this) = ___in; + template + __enable_if_t<__assignable(), tuple&> +- operator=(const tuple<_UElements...>& __in) ++ operator=(const tuple<_UElements...>& ___in) + noexcept(__nothrow_assignable()) + { +- this->_M_assign(__in); ++ this->_M_assign(___in); return *this; } -@@ -860,16 +860,16 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION - typename - enable_if::type -- operator=(tuple<_UElements...>&& __in) -+ operator=(tuple<_UElements...>&& ___in) - { -- static_cast<_Inherited&>(*this) = std::move(__in); -+ static_cast<_Inherited&>(*this) = std::move(___in); + template + __enable_if_t<__assignable<_UElements...>(), tuple&> +- operator=(tuple<_UElements...>&& __in) ++ operator=(tuple<_UElements...>&& ___in) + noexcept(__nothrow_assignable<_UElements...>()) + { +- this->_M_assign(std::move(__in)); ++ this->_M_assign(std::move(___in)); return *this; } + // tuple swap void - swap(tuple& __in) -- noexcept(noexcept(__in._M_swap(__in))) -- { _Inherited::_M_swap(__in); } + swap(tuple& ___in) -+ noexcept(noexcept(___in._M_swap(___in))) + noexcept(__and_<__is_nothrow_swappable<_Elements>...>::value) +- { _Inherited::_M_swap(__in); } + { _Inherited::_M_swap(___in); } }; #if __cpp_deduction_guides >= 201606 -@@ -992,8 +992,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +@@ -988,8 +988,8 @@ && _TMC::template _ImplicitlyConvertibleTuple<_U1, _U2>(), bool>::type = true> @@ -2531,7 +2495,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ template(), bool>::type = false> @@ -2542,7 +2506,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ template(), bool>::type = true> @@ -2553,7 +2517,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ template(), bool>::type = false> @@ -2564,7 +2528,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ template(), bool>::type = true> @@ -2575,7 +2539,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ template(), bool>::type = false> @@ -2586,7 +2550,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ template(), bool>::type = true> @@ -2599,7 +2563,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ template(), bool>::type = false> @@ -2612,7 +2576,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ // Allocator-extended constructors. -@@ -1112,12 +1112,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +@@ -1108,12 +1108,12 @@ std::forward<_U2>(__a2)) { } template @@ -2629,7 +2593,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ template(), bool>::type = true> tuple(allocator_arg_t __tag, const _Alloc& __a, @@ -2641,7 +2605,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ { } template(), bool>::type = false> explicit tuple(allocator_arg_t __tag, const _Alloc& __a, @@ -2653,7 +2617,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ { } template(), bool>::type = true> @@ -2664,7 +2628,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ { } template(), bool>::type = false> explicit tuple(allocator_arg_t __tag, const _Alloc& __a, @@ -2675,7 +2639,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ { } template(), bool>::type = true> tuple(allocator_arg_t __tag, const _Alloc& __a, @@ -2686,7 +2650,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ template(), bool>::type = false> explicit tuple(allocator_arg_t __tag, const _Alloc& __a, @@ -2697,7 +2661,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ template(), bool>::type = true> @@ -2710,7 +2674,7 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ template(), bool>::type = false> explicit tuple(allocator_arg_t __tag, const _Alloc& __a, @@ -2722,49 +2686,57 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ + std::forward<_U2>(___in.second)) { } tuple& -- operator=(const tuple& __in) -+ operator=(const tuple& ___in) + operator=(typename conditional<__assignable(), + const tuple&, +- const __nonesuch_no_braces&>::type __in) ++ const __nonesuch_no_braces&>::type ___in) + noexcept(__nothrow_assignable()) { -- static_cast<_Inherited&>(*this) = __in; -+ static_cast<_Inherited&>(*this) = ___in; +- this->_M_assign(__in); ++ this->_M_assign(___in); return *this; } tuple& -- operator=(tuple&& __in) -+ operator=(tuple&& ___in) - noexcept(is_nothrow_move_assignable<_Inherited>::value) + operator=(typename conditional<__assignable<_T1, _T2>(), + tuple&&, +- __nonesuch_no_braces&&>::type __in) ++ __nonesuch_no_braces&&>::type ___in) + noexcept(__nothrow_assignable<_T1, _T2>()) { -- static_cast<_Inherited&>(*this) = std::move(__in); -+ static_cast<_Inherited&>(*this) = std::move(___in); +- this->_M_assign(std::move(__in)); ++ this->_M_assign(std::move(___in)); return *this; } template - tuple& -- operator=(const tuple<_U1, _U2>& __in) -+ operator=(const tuple<_U1, _U2>& ___in) - { -- static_cast<_Inherited&>(*this) = __in; -+ static_cast<_Inherited&>(*this) = ___in; + __enable_if_t<__assignable(), tuple&> +- operator=(const tuple<_U1, _U2>& __in) ++ operator=(const tuple<_U1, _U2>& ___in) + noexcept(__nothrow_assignable()) + { +- this->_M_assign(__in); ++ this->_M_assign(___in); return *this; } template - tuple& -- operator=(tuple<_U1, _U2>&& __in) -+ operator=(tuple<_U1, _U2>&& ___in) - { -- static_cast<_Inherited&>(*this) = std::move(__in); -+ static_cast<_Inherited&>(*this) = std::move(___in); + __enable_if_t<__assignable<_U1, _U2>(), tuple&> +- operator=(tuple<_U1, _U2>&& __in) ++ operator=(tuple<_U1, _U2>&& ___in) + noexcept(__nothrow_assignable<_U1, _U2>()) + { +- this->_M_assign(std::move(__in)); ++ this->_M_assign(std::move(___in)); return *this; } template - tuple& -- operator=(const pair<_U1, _U2>& __in) -+ operator=(const pair<_U1, _U2>& ___in) - { + __enable_if_t<__assignable(), tuple&> +- operator=(const pair<_U1, _U2>& __in) ++ operator=(const pair<_U1, _U2>& ___in) + noexcept(__nothrow_assignable()) + { - this->_M_head(*this) = __in.first; - this->_M_tail(*this)._M_head(*this) = __in.second; + this->_M_head(*this) = ___in.first; @@ -2773,10 +2745,11 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ } template - tuple& -- operator=(pair<_U1, _U2>&& __in) -+ operator=(pair<_U1, _U2>&& ___in) - { + __enable_if_t<__assignable<_U1, _U2>(), tuple&> +- operator=(pair<_U1, _U2>&& __in) ++ operator=(pair<_U1, _U2>&& ___in) + noexcept(__nothrow_assignable<_U1, _U2>()) + { - this->_M_head(*this) = std::forward<_U1>(__in.first); - this->_M_tail(*this)._M_head(*this) = std::forward<_U2>(__in.second); + this->_M_head(*this) = std::forward<_U1>(___in.first); @@ -2786,18 +2759,18 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/tuple gcc-7.3.0/libstdc++-v3/ void - swap(tuple& __in) -- noexcept(noexcept(__in._M_swap(__in))) -- { _Inherited::_M_swap(__in); } + swap(tuple& ___in) -+ noexcept(noexcept(___in._M_swap(___in))) + noexcept(__and_<__is_nothrow_swappable<_T1>, + __is_nothrow_swappable<_T2>>::value) +- { _Inherited::_M_swap(__in); } + { _Inherited::_M_swap(___in); } }; -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/utility gcc-7.3.0/libstdc++-v3/include/std/utility ---- gcc-7.3.0-orig/libstdc++-v3/include/std/utility 2017-12-01 12:12:18.664065000 -0500 -+++ gcc-7.3.0/libstdc++-v3/include/std/utility 2018-06-12 06:44:41.552194100 -0400 -@@ -226,18 +226,18 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/std/utility gcc-7.1.0/libstdc++-v3/include/std/utility +--- gcc-7.1.0-orig/libstdc++-v3/include/std/utility 2017-01-01 07:07:43.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/include/std/utility 2017-06-23 19:59:50.586108900 -0400 +@@ -205,18 +205,18 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type& @@ -2822,9 +2795,9 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/std/utility gcc-7.3.0/libstdc++-v #if __cplusplus > 201103L -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/tr1/regex gcc-7.3.0/libstdc++-v3/include/tr1/regex ---- gcc-7.3.0-orig/libstdc++-v3/include/tr1/regex 2017-01-01 07:07:43.905435000 -0500 -+++ gcc-7.3.0/libstdc++-v3/include/tr1/regex 2018-06-12 06:44:41.565123600 -0400 +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/tr1/regex gcc-7.1.0/libstdc++-v3/include/tr1/regex +--- gcc-7.1.0-orig/libstdc++-v3/include/tr1/regex 2017-01-01 07:07:43.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/include/tr1/regex 2017-06-23 19:59:50.604610900 -0400 @@ -2008,7 +2008,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION */ template @@ -2843,9 +2816,9 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/tr1/regex gcc-7.3.0/libstdc++-v3/ const basic_regex<_Ch_type, _Rx_traits>& __e, const basic_string<_Ch_type>& __fmt, regex_constants::match_flag_type __flags -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/tr1/tuple gcc-7.3.0/libstdc++-v3/include/tr1/tuple ---- gcc-7.3.0-orig/libstdc++-v3/include/tr1/tuple 2017-01-01 07:07:43.905435000 -0500 -+++ gcc-7.3.0/libstdc++-v3/include/tr1/tuple 2018-06-12 06:44:41.571140700 -0400 +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/tr1/tuple gcc-7.1.0/libstdc++-v3/include/tr1/tuple +--- gcc-7.1.0-orig/libstdc++-v3/include/tr1/tuple 2017-01-01 07:07:43.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/include/tr1/tuple 2017-06-23 19:59:50.615613100 -0400 @@ -102,26 +102,26 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION : _Inherited(__tail...), _M_head(__head) { } @@ -2972,10 +2945,10 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/tr1/tuple gcc-7.3.0/libstdc++-v3/ return *this; } }; -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/tr1/utility gcc-7.3.0/libstdc++-v3/include/tr1/utility ---- gcc-7.3.0-orig/libstdc++-v3/include/tr1/utility 2017-01-01 07:07:43.905435000 -0500 -+++ gcc-7.3.0/libstdc++-v3/include/tr1/utility 2018-06-12 06:44:41.574099800 -0400 -@@ -93,13 +93,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/tr1/utility gcc-7.1.0/libstdc++-v3/include/tr1/utility +--- gcc-7.1.0-orig/libstdc++-v3/include/tr1/utility 2017-01-01 07:07:43.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/include/tr1/utility 2017-06-23 19:59:50.623613900 -0400 +@@ -93,13 +93,13 @@ template inline typename tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& @@ -2990,12 +2963,12 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/tr1/utility gcc-7.3.0/libstdc++-v - { return __pair_get<_Int>::__const_get(__in); } + get(const std::pair<_Tp1, _Tp2>& ___in) + { return __pair_get<_Int>::__const_get(___in); } + } _GLIBCXX_END_NAMESPACE_VERSION - } -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/tr2/bool_set gcc-7.3.0/libstdc++-v3/include/tr2/bool_set ---- gcc-7.3.0-orig/libstdc++-v3/include/tr2/bool_set 2017-01-01 07:07:43.905435000 -0500 -+++ gcc-7.3.0/libstdc++-v3/include/tr2/bool_set 2018-06-12 06:44:41.578121300 -0400 +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/tr2/bool_set gcc-7.1.0/libstdc++-v3/include/tr2/bool_set +--- gcc-7.1.0-orig/libstdc++-v3/include/tr2/bool_set 2017-01-01 07:07:43.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/include/tr2/bool_set 2017-06-23 19:59:50.632614700 -0400 @@ -131,18 +131,18 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template @@ -3019,9 +2992,9 @@ diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/tr2/bool_set gcc-7.3.0/libstdc++- if (__c >= _S_false && __c < _S_empty) __b._M_b = static_cast<_Bool_set_val>(__c); } -diff -aurp gcc-7.3.0-orig/libstdc++-v3/include/tr2/bool_set.tcc gcc-7.3.0/libstdc++-v3/include/tr2/bool_set.tcc ---- gcc-7.3.0-orig/libstdc++-v3/include/tr2/bool_set.tcc 2017-01-01 07:07:43.905435000 -0500 -+++ gcc-7.3.0/libstdc++-v3/include/tr2/bool_set.tcc 2018-06-12 06:44:41.582111500 -0400 +diff -aurp gcc-7.1.0-orig/libstdc++-v3/include/tr2/bool_set.tcc gcc-7.1.0/libstdc++-v3/include/tr2/bool_set.tcc +--- gcc-7.1.0-orig/libstdc++-v3/include/tr2/bool_set.tcc 2017-01-01 07:07:43.000000000 -0500 ++++ gcc-7.1.0/libstdc++-v3/include/tr2/bool_set.tcc 2017-06-23 19:59:50.641116000 -0400 @@ -100,9 +100,9 @@ _GLIBCXX_END_NAMESPACE_VERSION * @param v Value to format and insert. * @return Iterator after reading. diff --git a/mingw-w64-cross-gcc/0140-gcc-8.2.0-diagnostic-color.patch b/mingw-w64-cross-gcc/0140-gcc-8.2.0-diagnostic-color.patch new file mode 100644 index 00000000..c391802c --- /dev/null +++ b/mingw-w64-cross-gcc/0140-gcc-8.2.0-diagnostic-color.patch @@ -0,0 +1,55 @@ +--- a/gcc/diagnostic-color.c 2018-01-03 16:03:58.000000000 +0600 ++++ b/gcc/diagnostic-color.c 2018-08-02 16:33:22.679146900 +0600 +@@ -22,6 +22,7 @@ + + #ifdef __MINGW32__ + # include ++# include + #endif + + #include "color-macros.h" +@@ -208,10 +209,42 @@ + to care about it either... */ + HANDLE h; + DWORD m; +- ++ bool ret = false; + h = GetStdHandle (STD_ERROR_HANDLE); +- return (h != INVALID_HANDLE_VALUE) && (h != NULL) ++ ret = (h != INVALID_HANDLE_VALUE) && (h != NULL) + && GetConsoleMode (h, &m); ++ if (!ret){ ++ HMODULE ntdll = GetModuleHandle ("ntdll.dll"); ++ if (ntdll != INVALID_HANDLE_VALUE){ ++ ++ typedef NTSTATUS NTAPI func_NtQueryObject (HANDLE, OBJECT_INFORMATION_CLASS, ++ PVOID, ULONG, PULONG); ++ func_NtQueryObject *fNtQueryObject = ++ (func_NtQueryObject*) GetProcAddress (ntdll, "NtQueryObject"); ++ if (fNtQueryObject){ ++ ++ ULONG s = 0xffff * sizeof (WCHAR); ++ OBJECT_NAME_INFORMATION *oni = (OBJECT_NAME_INFORMATION*) xmalloc (s); ++ ULONG len; ++ /* mintty uses a named pipe like "ptyNNNN-to-master". */ ++ if (!fNtQueryObject (h, ObjectNameInformation, oni, s, &len)) ++ { ++ wchar_t namedPipe[] = L"\\Device\\NamedPipe\\"; ++ size_t l1 = sizeof (namedPipe) / 2 - 1; ++ wchar_t toMaster[] = L"-to-master"; ++ size_t l2 = sizeof (toMaster) / 2 - 1; ++ USHORT name_length = oni->Name.Length / 2; ++ if (name_length > l1 + l2 && ++ !memcmp (oni->Name.Buffer, namedPipe, l1 * 2) && ++ !memcmp (oni->Name.Buffer + (name_length - l2), toMaster, l2 * 2)) ++ ret = true; ++ } ++ ++ free (oni); ++ } ++ } ++ } ++ return ret; + #else + char const *t = getenv ("TERM"); + return t && strcmp (t, "dumb") != 0 && isatty (STDERR_FILENO); diff --git a/mingw-w64-cross-gcc/0150-ada-fix-pr80590.patch b/mingw-w64-cross-gcc/0150-ada-fix-pr80590.patch new file mode 100644 index 00000000..48eae379 --- /dev/null +++ b/mingw-w64-cross-gcc/0150-ada-fix-pr80590.patch @@ -0,0 +1,235 @@ +--- gcc-9-branch/gcc/ada/exp_ch9.adb 2019/04/25 17:59:56 270580 ++++ gcc-9-branch/gcc/ada/exp_ch9.adb 2019/06/17 07:35:02 272374 +@@ -8258,18 +8258,17 @@ + Proc : Entity_Id; + + begin +- -- Try to use System.Relative_Delays.Delay_For only if available. This +- -- is the implementation used on restricted platforms when Ada.Calendar +- -- is not available. ++ -- Try to use Ada.Calendar.Delays.Delay_For if available. + +- if RTE_Available (RO_RD_Delay_For) then +- Proc := RTE (RO_RD_Delay_For); ++ if RTE_Available (RO_CA_Delay_For) then ++ Proc := RTE (RO_CA_Delay_For); + +- -- Otherwise, use Ada.Calendar.Delays.Delay_For and emit an error +- -- message if not available. ++ -- Otherwise, use System.Relative_Delays.Delay_For and emit an error ++ -- message if not available. This is the implementation used on ++ -- restricted platforms when Ada.Calendar is not available. + + else +- Proc := RTE (RO_CA_Delay_For); ++ Proc := RTE (RO_RD_Delay_For); + end if; + + Rewrite (N, +Index: gcc-9-branch/gcc/ada/sem_ch5.adb +=================================================================== +--- gcc-9-branch/gcc/ada/sem_ch5.adb (revision 337119) ++++ gcc-9-branch/gcc/ada/sem_ch5.adb (working copy) +@@ -3367,8 +3367,6 @@ + -- The following exception is raised by routine Prepare_Loop_Statement + -- to avoid further analysis of a transformed loop. + +- Skip_Analysis : exception; +- + function Disable_Constant (N : Node_Id) return Traverse_Result; + -- If N represents an E_Variable entity, set Is_True_Constant To False + +@@ -3376,11 +3374,12 @@ + -- Helper for Analyze_Loop_Statement, to unset Is_True_Constant on + -- variables referenced within an OpenACC construct. + +- procedure Prepare_Loop_Statement (Iter : Node_Id); ++ procedure Prepare_Loop_Statement ++ (Iter : Node_Id; ++ Stop_Processing : out Boolean); + -- Determine whether loop statement N with iteration scheme Iter must be +- -- transformed prior to analysis, and if so, perform it. The routine +- -- raises Skip_Analysis to prevent further analysis of the transformed +- -- loop. ++ -- transformed prior to analysis, and if so, perform it. ++ -- If Stop_Processing is set to True, should stop further processing. + + ---------------------- + -- Disable_Constant -- +@@ -3402,7 +3401,10 @@ + -- Prepare_Loop_Statement -- + ---------------------------- + +- procedure Prepare_Loop_Statement (Iter : Node_Id) is ++ procedure Prepare_Loop_Statement ++ (Iter : Node_Id; ++ Stop_Processing : out Boolean) ++ is + function Has_Sec_Stack_Default_Iterator + (Cont_Typ : Entity_Id) return Boolean; + pragma Inline (Has_Sec_Stack_Default_Iterator); +@@ -3422,21 +3424,27 @@ + -- Determine whether arbitrary statement Stmt is the sole statement + -- wrapped within some block, excluding pragmas. + +- procedure Prepare_Iterator_Loop (Iter_Spec : Node_Id); ++ procedure Prepare_Iterator_Loop ++ (Iter_Spec : Node_Id; ++ Stop_Processing : out Boolean); + pragma Inline (Prepare_Iterator_Loop); + -- Prepare an iterator loop with iteration specification Iter_Spec + -- for transformation if needed. ++ -- If Stop_Processing is set to True, should stop further processing. + +- procedure Prepare_Param_Spec_Loop (Param_Spec : Node_Id); ++ procedure Prepare_Param_Spec_Loop ++ (Param_Spec : Node_Id; ++ Stop_Processing : out Boolean); + pragma Inline (Prepare_Param_Spec_Loop); + -- Prepare a discrete loop with parameter specification Param_Spec + -- for transformation if needed. ++ -- If Stop_Processing is set to True, should stop further processing. + + procedure Wrap_Loop_Statement (Manage_Sec_Stack : Boolean); +- pragma Inline (Wrap_Loop_Statement); +- pragma No_Return (Wrap_Loop_Statement); ++ pragma Inline (Wrap_Loop_Statement); + -- Wrap loop statement N within a block. Flag Manage_Sec_Stack must + -- be set when the block must mark and release the secondary stack. ++ -- Should stop further processing after calling this procedure. + + ------------------------------------ + -- Has_Sec_Stack_Default_Iterator -- +@@ -3512,12 +3520,17 @@ + -- Prepare_Iterator_Loop -- + --------------------------- + +- procedure Prepare_Iterator_Loop (Iter_Spec : Node_Id) is ++ procedure Prepare_Iterator_Loop ++ (Iter_Spec : Node_Id; ++ Stop_Processing : out Boolean) ++ is + Cont_Typ : Entity_Id; + Nam : Node_Id; + Nam_Copy : Node_Id; + + begin ++ Stop_Processing := False; ++ + -- The iterator specification has syntactic errors. Transform the + -- loop into an infinite loop in order to safely perform at least + -- some minor analysis. This check must come first. +@@ -3525,9 +3538,8 @@ + if Error_Posted (Iter_Spec) then + Set_Iteration_Scheme (N, Empty); + Analyze (N); ++ Stop_Processing := True; + +- raise Skip_Analysis; +- + -- Nothing to do when the loop is already wrapped in a block + + elsif Is_Wrapped_In_Block (N) then +@@ -3586,6 +3598,7 @@ + (Cont_Typ, Name_First) + or else Is_Sec_Stack_Iteration_Primitive + (Cont_Typ, Name_Next)); ++ Stop_Processing := True; + end if; + end if; + end Prepare_Iterator_Loop; +@@ -3594,7 +3607,10 @@ + -- Prepare_Param_Spec_Loop -- + ----------------------------- + +- procedure Prepare_Param_Spec_Loop (Param_Spec : Node_Id) is ++ procedure Prepare_Param_Spec_Loop ++ (Param_Spec : Node_Id; ++ Stop_Processing : out Boolean) ++ is + High : Node_Id; + Low : Node_Id; + Rng : Node_Id; +@@ -3602,6 +3618,7 @@ + Rng_Typ : Entity_Id; + + begin ++ Stop_Processing := False; + Rng := Discrete_Subtype_Definition (Param_Spec); + + -- Nothing to do when the loop is already wrapped in a block +@@ -3635,11 +3652,10 @@ + -- on the secondary stack. Note that the loop must be wrapped + -- only when such a call exists. + +- if Has_Sec_Stack_Call (Low) +- or else +- Has_Sec_Stack_Call (High) ++ if Has_Sec_Stack_Call (Low) or else Has_Sec_Stack_Call (High) + then + Wrap_Loop_Statement (Manage_Sec_Stack => True); ++ Stop_Processing := True; + end if; + + -- Otherwise the parameter specification appears in the form +@@ -3676,6 +3692,7 @@ + and then Needs_Finalization (Rng_Typ)) + then + Wrap_Loop_Statement (Manage_Sec_Stack => True); ++ Stop_Processing := True; + end if; + end if; + end Prepare_Param_Spec_Loop; +@@ -3703,8 +3720,6 @@ + + Rewrite (N, Blk); + Analyze (N); +- +- raise Skip_Analysis; + end Wrap_Loop_Statement; + + -- Local variables +@@ -3715,11 +3730,13 @@ + -- Start of processing for Prepare_Loop_Statement + + begin ++ Stop_Processing := False; ++ + if Present (Iter_Spec) then +- Prepare_Iterator_Loop (Iter_Spec); ++ Prepare_Iterator_Loop (Iter_Spec, Stop_Processing); + + elsif Present (Param_Spec) then +- Prepare_Param_Spec_Loop (Param_Spec); ++ Prepare_Param_Spec_Loop (Param_Spec, Stop_Processing); + end if; + end Prepare_Loop_Statement; + +@@ -3818,7 +3835,15 @@ + -- wrapped within a block in order to manage the secondary stack. + + if Present (Iter) then +- Prepare_Loop_Statement (Iter); ++ declare ++ Stop_Processing : Boolean; ++ begin ++ Prepare_Loop_Statement (Iter, Stop_Processing); ++ ++ if Stop_Processing then ++ return; ++ end if; ++ end; + end if; + + -- Kill current values on entry to loop, since statements in the body of +@@ -3992,10 +4017,6 @@ + if Is_OpenAcc_Environment (Stmt) then + Disable_Constants (Stmt); + end if; +- +- exception +- when Skip_Analysis => +- null; + end Analyze_Loop_Statement; + + ---------------------------- diff --git a/mingw-w64-cross-gcc/0240-prettify-linking-no-undefined.mingw.patch b/mingw-w64-cross-gcc/0240-prettify-linking-no-undefined.mingw.patch deleted file mode 100644 index be3aab84..00000000 --- a/mingw-w64-cross-gcc/0240-prettify-linking-no-undefined.mingw.patch +++ /dev/null @@ -1,40 +0,0 @@ -From cfe4caf51c829a6bd746566a0b205354fa042dc3 Mon Sep 17 00:00:00 2001 -From: Alexey Pavlov -Date: Wed, 5 Aug 2015 23:36:19 +0100 -Subject: [PATCH 08/15] Prettify linking -no-undefined - -It might be better to put this change in a -conditional block for Windows only? ---- - libgfortran/Makefile.am | 2 +- - libgfortran/Makefile.in | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/libgfortran/Makefile.am b/libgfortran/Makefile.am -index 31eb986..f8ef020 100644 ---- a/libgfortran/Makefile.am -+++ b/libgfortran/Makefile.am -@@ -50,7 +50,7 @@ libgfortranbegin_la_LINK = $(LINK) $(libgfortranbegin_la_LDFLAGS) - cafexeclib_LTLIBRARIES = libcaf_single.la - cafexeclibdir = $(libdir)/gcc/$(target_alias)/$(gcc_version)$(MULTISUBDIR) - libcaf_single_la_SOURCES = caf/single.c --libcaf_single_la_LDFLAGS = -static -+libcaf_single_la_LDFLAGS = -static -no-undefined - libcaf_single_la_DEPENDENCIES = caf/libcaf.h - libcaf_single_la_LINK = $(LINK) $(libcaf_single_la_LDFLAGS) - -diff --git a/libgfortran/Makefile.in b/libgfortran/Makefile.in -index 0f60e6e..8473026 100644 ---- a/libgfortran/Makefile.in -+++ b/libgfortran/Makefile.in -@@ -615,7 +615,7 @@ libgfortranbegin_la_LINK = $(LINK) $(libgfortranbegin_la_LDFLAGS) - cafexeclib_LTLIBRARIES = libcaf_single.la - cafexeclibdir = $(libdir)/gcc/$(target_alias)/$(gcc_version)$(MULTISUBDIR) - libcaf_single_la_SOURCES = caf/single.c --libcaf_single_la_LDFLAGS = -static -+libcaf_single_la_LDFLAGS = -static -no-undefined - libcaf_single_la_DEPENDENCIES = caf/libcaf.h - libcaf_single_la_LINK = $(LINK) $(libcaf_single_la_LDFLAGS) - @IEEE_SUPPORT_TRUE@fincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)$(MULTISUBDIR)/finclude --- -2.8.1 diff --git a/mingw-w64-cross-gcc/0408-gcc-6-branch-Windows-New-feature-to-allow-overriding.patch b/mingw-w64-cross-gcc/0408-gcc-6-branch-Windows-New-feature-to-allow-overriding.patch deleted file mode 100644 index 9899224c..00000000 --- a/mingw-w64-cross-gcc/0408-gcc-6-branch-Windows-New-feature-to-allow-overriding.patch +++ /dev/null @@ -1,44 +0,0 @@ -From d8cd8d0211dcd606a3753a6b3c36c19a7b1672dc Mon Sep 17 00:00:00 2001 -From: Ray Donnelly -Date: Wed, 5 Aug 2015 23:36:13 +0100 -Subject: [PATCH 05/19] master Windows: New feature to allow overriding - -lmsvcrt - -Added in support of the MinGW-w64 WIP feature "agile mscvrt dll" where -a process' loaded msvc runtime is used by a newly loaded DLL rather than -always using msvcrt.dll ---- - gcc/config/i386/cygming.opt | 3 +++ - gcc/config/i386/mingw32.h | 2 +- - 2 files changed, 4 insertions(+), 1 deletion(-) - -diff --git a/gcc/config/i386/cygming.opt b/gcc/config/i386/cygming.opt -index a9074bf..e1d89e2 100644 ---- a/gcc/config/i386/cygming.opt -+++ b/gcc/config/i386/cygming.opt -@@ -22,6 +22,9 @@ mconsole - Target RejectNegative - Create console application. - -+mcrtdll= -+Target RejectNegative Joined -+ - mdll - Target RejectNegative - Generate code for a DLL. -diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h -index 4ac5f68..f875e7b 100644 ---- a/gcc/config/i386/mingw32.h -+++ b/gcc/config/i386/mingw32.h -@@ -140,7 +140,7 @@ along with GCC; see the file COPYING3. If not see - #define REAL_LIBGCC_SPEC \ - "%{mthreads:-lmingwthrd} -lmingw32 \ - " SHARED_LIBGCC_SPEC " \ -- -lmoldname -lmingwex -lmsvcrt" -+ -lmoldname -lmingwex %{!mcrtdll=*:-lmsvcrt} %{mcrtdll=*:-l%*}" - - #undef STARTFILE_SPEC - #define STARTFILE_SPEC "%{shared|mdll:dllcrt2%O%s} \ --- -2.7.1 - diff --git a/mingw-w64-cross-gcc/0410-fix-using-large-pch.patch b/mingw-w64-cross-gcc/0410-fix-using-large-pch.patch deleted file mode 100644 index af8ebec0..00000000 --- a/mingw-w64-cross-gcc/0410-fix-using-large-pch.patch +++ /dev/null @@ -1,154 +0,0 @@ -From 22a67f6b18d2854bcdf740833cf4e1a0555c7295 Mon Sep 17 00:00:00 2001 -From: Martin Richter -Date: Wed, 5 Aug 2015 23:36:25 +0100 -Subject: [PATCH 10/15] Fix using large PCH - -The following patch fixes segfault when gt_pch_use_address -fails (returns -1). fatal_error now correctly shows an error -message and terminates the program. -I have basicly only reordered reads, and placed them after -the file mapping itself. Global pointers are changed only -after gt_pch_use_address succeeds, so in case of failure -they still contain valid addresses. - -This patch is meant for the master branch. However, it -should not be hard to modify it for others. - -https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940 -https://sourceforge.net/p/mingw-w64/bugs/382/ ---- - gcc/config/i386/host-mingw32.c | 10 ++------- - gcc/ggc-common.c | 51 +++++++++++++++++++++++++++++++++--------- - 2 files changed, 42 insertions(+), 19 deletions(-) - -diff --git a/gcc/config/i386/host-mingw32.c b/gcc/config/i386/host-mingw32.c -index aa17378..631d9c4 100644 ---- a/gcc/config/i386/host-mingw32.c -+++ b/gcc/config/i386/host-mingw32.c -@@ -42,9 +42,6 @@ static size_t mingw32_gt_pch_alloc_granularity (void); - - static inline void w32_error(const char*, const char*, int, const char*); - --/* FIXME: Is this big enough? */ --static const size_t pch_VA_max_size = 128 * 1024 * 1024; -- - /* Granularity for reserving address space. */ - static size_t va_granularity = 0x10000; - -@@ -86,9 +83,6 @@ static void * - mingw32_gt_pch_get_address (size_t size, int) - { - void* res; -- size = (size + va_granularity - 1) & ~(va_granularity - 1); -- if (size > pch_VA_max_size) -- return NULL; - - /* FIXME: We let system determine base by setting first arg to NULL. - Allocating at top of available address space avoids unnecessary -@@ -98,7 +92,7 @@ mingw32_gt_pch_get_address (size_t size, int) - If we allocate at bottom we need to reserve the address as early - as possible and at the same point in each invocation. */ - -- res = VirtualAlloc (NULL, pch_VA_max_size, -+ res = VirtualAlloc (NULL, size, - MEM_RESERVE | MEM_TOP_DOWN, - PAGE_NOACCESS); - if (!res) -@@ -148,7 +142,7 @@ mingw32_gt_pch_use_address (void *addr, size_t size, int fd, - - /* Offset must be also be a multiple of allocation granularity for - this to work. We can't change the offset. */ -- if ((offset & (va_granularity - 1)) != 0 || size > pch_VA_max_size) -+ if ((offset & (va_granularity - 1)) != 0) - return -1; - - -diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c -index 03fbe7d..3a5df8a 100644 ---- a/gcc/ggc-common.c -+++ b/gcc/ggc-common.c -@@ -603,7 +603,9 @@ gt_pch_restore (FILE *f) - size_t i; - struct mmap_info mmi; - int result; -- -+ long pch_tabs_off; -+ long pch_data_off; -+ - /* Delete any deletable objects. This makes ggc_pch_read much - faster, as it can be sure that no GCable objects remain other - than the ones just read in. */ -@@ -611,20 +613,24 @@ gt_pch_restore (FILE *f) - for (rti = *rt; rti->base != NULL; rti++) - memset (rti->base, 0, rti->stride); - -- /* Read in all the scalar variables. */ -+ /* We need to read tables after mapping, or fatal_error will -+ segfault when gt_pch_use_address returns -1. Skip them for now. */ -+ pch_tabs_off = ftell(f); -+ -+ /* Skip all the scalar variables. */ - for (rt = gt_pch_scalar_rtab; *rt; rt++) - for (rti = *rt; rti->base != NULL; rti++) -- if (fread (rti->base, rti->stride, 1, f) != 1) -- fatal_error (input_location, "can%'t read PCH file: %m"); -+ if (fseek (f, rti->stride, SEEK_CUR) != 0) -+ fatal_error (input_location, "can%'t read PCH file: %m"); - -- /* Read in all the global pointers, in 6 easy loops. */ -+ /* Skip all the global pointers. */ - for (rt = gt_ggc_rtab; *rt; rt++) - for (rti = *rt; rti->base != NULL; rti++) - for (i = 0; i < rti->nelt; i++) -- if (fread ((char *)rti->base + rti->stride * i, -- sizeof (void *), 1, f) != 1) -- fatal_error (input_location, "can%'t read PCH file: %m"); -- -+ if (fseek (f, sizeof (void *), SEEK_CUR) != 0) -+ fatal_error (input_location, "can%'t read PCH file: %m"); -+ -+ /* mmi still has to be read now. */ - if (fread (&mmi, sizeof (mmi), 1, f) != 1) - fatal_error (input_location, "can%'t read PCH file: %m"); - -@@ -635,12 +641,35 @@ gt_pch_restore (FILE *f) - if (result == 0) - { - if (fseek (f, mmi.offset, SEEK_SET) != 0 -- || fread (mmi.preferred_base, mmi.size, 1, f) != 1) -- fatal_error (input_location, "can%'t read PCH file: %m"); -+ || fread (mmi.preferred_base, mmi.size, 1, f) != 1) -+ fatal_error (input_location, "can%'t read PCH file: %m"); - } - else if (fseek (f, mmi.offset + mmi.size, SEEK_SET) != 0) - fatal_error (input_location, "can%'t read PCH file: %m"); -+ -+ /* File mapping done, read tables now. */ -+ pch_data_off = ftell(f); -+ -+ if (fseek (f, pch_tabs_off, SEEK_SET) != 0) -+ fatal_error (input_location, "can%'t read PCH file: %m"); - -+ /* Read in all the scalar variables. */ -+ for (rt = gt_pch_scalar_rtab; *rt; rt++) -+ for (rti = *rt; rti->base != NULL; rti++) -+ if (fread (rti->base, rti->stride, 1, f) != 1) -+ fatal_error (input_location, "can%'t read PCH file: %m"); -+ -+ /* Read in all the global pointers, in 6 easy loops. */ -+ for (rt = gt_ggc_rtab; *rt; rt++) -+ for (rti = *rt; rti->base != NULL; rti++) -+ for (i = 0; i < rti->nelt; i++) -+ if (fread ((char *)rti->base + rti->stride * i, -+ sizeof (void *), 1, f) != 1) -+ fatal_error (input_location, "can%'t read PCH file: %m"); -+ -+ if (fseek (f, pch_data_off, SEEK_SET) != 0) -+ fatal_error (input_location, "can%'t read PCH file: %m"); -+ - ggc_pch_read (f, mmi.preferred_base); - - gt_pch_restore_stringpool (); --- -2.8.1 - diff --git a/mingw-w64-cross-gcc/0415-disable-weak-refs-in-libstdc++.patch b/mingw-w64-cross-gcc/0415-disable-weak-refs-in-libstdc++.patch deleted file mode 100644 index ece5601f..00000000 --- a/mingw-w64-cross-gcc/0415-disable-weak-refs-in-libstdc++.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- gcc-6.1.0/libstdc++-v3/config/os/mingw32-w64/os_defines.h.orig 2016-01-04 14:30:49.999997000 +0000 -+++ gcc-6.1.0/libstdc++-v3/config/os/mingw32-w64/os_defines.h 2016-07-24 20:45:37.352669700 +0100 -@@ -76,6 +76,7 @@ - - #ifdef __x86_64__ - #define _GLIBCXX_LLP64 1 -+#define _GLIBCXX_USE_WEAK_REF 0 - #endif - - // Enable use of GetModuleHandleEx (requires Windows XP/2003) in diff --git a/mingw-w64-cross-gcc/0950-7.3.0-configure-msys2.patch b/mingw-w64-cross-gcc/0950-7.3.0-configure-msys2.patch deleted file mode 100644 index 213472e7..00000000 --- a/mingw-w64-cross-gcc/0950-7.3.0-configure-msys2.patch +++ /dev/null @@ -1,10836 +0,0 @@ -diff -Naur gcc-6.3.0-orig/compile gcc-6.3.0/compile ---- gcc-6.3.0-orig/compile 2014-11-16 17:07:13.000000000 +0300 -+++ gcc-6.3.0/compile 2017-01-24 12:04:10.878603400 +0300 -@@ -53,7 +53,7 @@ - MINGW*) - file_conv=mingw - ;; -- CYGWIN*) -+ CYGWIN*|MSYS*) - file_conv=cygwin - ;; - *) -@@ -67,7 +67,7 @@ - mingw/*) - file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` - ;; -- cygwin/*) -+ cygwin/*|msys/*) - file=`cygpath -m "$file" || echo "$file"` - ;; - wine/*) -diff -Naur gcc-6.3.0-orig/config/dfp.m4 gcc-6.3.0/config/dfp.m4 ---- gcc-6.3.0-orig/config/dfp.m4 2015-06-30 19:42:07.000000000 +0300 -+++ gcc-6.3.0/config/dfp.m4 2017-01-24 12:04:10.878603400 +0300 -@@ -23,7 +23,8 @@ - powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ - i?86*-*-elfiamcu | i?86*-*-gnu* | \ - i?86*-*-mingw* | x86_64*-*-mingw* | \ -- i?86*-*-cygwin* | x86_64*-*-cygwin*) -+ i?86*-*-cygwin* | x86_64*-*-cygwin* | \ -+ i?86*-*-msys* | x86_64*-*-msys*) - enable_decimal_float=yes - ;; - *) -diff -Naur gcc-6.3.0-orig/config/elf.m4 gcc-6.3.0/config/elf.m4 ---- gcc-6.3.0-orig/config/elf.m4 2015-02-18 11:01:03.000000000 +0300 -+++ gcc-6.3.0/config/elf.m4 2017-01-24 12:04:10.878603400 +0300 -@@ -15,7 +15,7 @@ - - target_elf=no - case $target in -- *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ -+ *-darwin* | *-aix* | *-cygwin* | *-msys* | *-mingw* | *-aout* | *-*coff* | \ - *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ - alpha*-dec-osf* | *-interix* | hppa[[12]]*-*-hpux* | \ - nvptx-*-none) -diff -Naur gcc-6.3.0-orig/config/lthostflags.m4 gcc-6.3.0/config/lthostflags.m4 ---- gcc-6.3.0-orig/config/lthostflags.m4 2010-12-06 03:50:04.000000000 +0300 -+++ gcc-6.3.0/config/lthostflags.m4 2017-01-24 12:04:10.878603400 +0300 -@@ -13,7 +13,7 @@ - AC_REQUIRE([AC_CANONICAL_SYSTEM]) - - case $host in -- *-cygwin* | *-mingw*) -+ *-cygwin* | *-mingw* | *-msys*) - # 'host' will be top-level target in the case of a target lib, - # we must compare to with_cross_host to decide if this is a native - # or cross-compiler and select where to install dlls appropriately. -diff -Naur gcc-6.3.0-orig/config/mmap.m4 gcc-6.3.0/config/mmap.m4 ---- gcc-6.3.0-orig/config/mmap.m4 2012-04-03 16:07:28.000000000 +0400 -+++ gcc-6.3.0/config/mmap.m4 2017-01-24 12:04:10.894203400 +0300 -@@ -42,7 +42,7 @@ - # Systems known to be in this category are Windows (all variants), - # VMS, and Darwin. - case "$host_os" in -- *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) -+ *vms* | cygwin* | msys* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) - gcc_cv_func_mmap_dev_zero=no ;; - *) - gcc_cv_func_mmap_dev_zero=yes;; -@@ -74,7 +74,7 @@ - # above for use of /dev/zero. - # Systems known to be in this category are Windows, VMS, and SCO Unix. - case "$host_os" in -- *vms* | cygwin* | pe | mingw* | sco* | udk* ) -+ *vms* | cygwin* | msys* | pe | mingw* | sco* | udk* ) - gcc_cv_func_mmap_anon=no ;; - *) - gcc_cv_func_mmap_anon=yes;; -diff -Naur gcc-6.3.0-orig/config/picflag.m4 gcc-6.3.0/config/picflag.m4 ---- gcc-6.3.0-orig/config/picflag.m4 2015-04-10 09:43:52.000000000 +0300 -+++ gcc-6.3.0/config/picflag.m4 2017-01-24 12:04:10.894203400 +0300 -@@ -25,6 +25,8 @@ - ;; - i[[34567]]86-*-cygwin* | x86_64-*-cygwin*) - ;; -+ i[[34567]]86-*-msys* | x86_64-*-msys*) -+ ;; - i[[34567]]86-*-mingw* | x86_64-*-mingw*) - ;; - i[[34567]]86-*-interix[[3-9]]*) -diff -Naur gcc-6.3.0-orig/config/target-posix gcc-6.3.0/config/target-posix ---- gcc-6.3.0-orig/config/target-posix 2017-01-24 12:03:46.930556900 +0300 -+++ gcc-6.3.0/config/target-posix 2017-01-24 12:04:10.894203400 +0300 -@@ -5,7 +5,7 @@ - ;; - *-*-solaris2* | *-*-hpux11*) - ;; -- *-*-darwin* | *-*-aix* | *-*-cygwin*) -+ *-*-darwin* | *-*-aix* | *-*-cygwin* | *-*-msys*) - ;; - *) - UNSUPPORTED=1 ;; -diff -Naur gcc-6.3.0-orig/config/tcl.m4 gcc-6.3.0/config/tcl.m4 ---- gcc-6.3.0-orig/config/tcl.m4 2015-07-24 21:20:44.000000000 +0300 -+++ gcc-6.3.0/config/tcl.m4 2017-01-24 12:04:10.894203400 +0300 -@@ -33,7 +33,7 @@ - - # First check to see if --with-tcl was specified. - case "${host}" in -- *-*-cygwin*) platDir="win" ;; -+ *-*-cygwin* | *-*-msys*) platDir="win" ;; - *) platDir="unix" ;; - esac - if test x"${with_tclconfig}" != x ; then -@@ -165,7 +165,7 @@ - - # then check for a private Tk library - case "${host}" in -- *-*-cygwin*) platDir="win" ;; -+ *-*-cygwin* | *-*-msys*) platDir="win" ;; - *) platDir="unix" ;; - esac - if test x"${ac_cv_c_tkconfig}" = x ; then -diff -Naur gcc-6.3.0-orig/config.guess gcc-6.3.0/config.guess ---- gcc-6.3.0-orig/config.guess 2016-01-01 00:13:28.000000000 +0300 -+++ gcc-6.3.0/config.guess 2017-01-24 12:04:10.894203400 +0300 -@@ -884,6 +884,9 @@ - amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) - echo x86_64-unknown-cygwin - exit ;; -+ amd64:MSYS*:*:* | x86_64:MSYS*:*:*) -+ echo x86_64-unknown-msys -+ exit ;; - p*:CYGWIN*:*) - echo powerpcle-unknown-cygwin - exit ;; -diff -Naur gcc-6.3.0-orig/config.rpath gcc-6.3.0/config.rpath ---- gcc-6.3.0-orig/config.rpath 2011-02-13 14:45:53.000000000 +0300 -+++ gcc-6.3.0/config.rpath 2017-01-24 12:04:10.925403500 +0300 -@@ -109,7 +109,7 @@ - hardcode_minus_L=no - - case "$host_os" in -- cygwin* | mingw* | pw32*) -+ cygwin* | msys* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -149,7 +149,7 @@ - ld_shlibs=no - fi - ;; -- cygwin* | mingw* | pw32*) -+ cygwin* | msys* | mingw* | pw32*) - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' -@@ -268,7 +268,7 @@ - ;; - bsdi4*) - ;; -- cygwin* | mingw* | pw32*) -+ cygwin* | msys* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -437,7 +437,7 @@ - ;; - bsdi4*) - ;; -- cygwin* | mingw* | pw32*) -+ cygwin* | msys* | mingw* | pw32*) - shrext=.dll - ;; - darwin* | rhapsody*) -diff -Naur gcc-7.3.0/configure.orig gcc-7.3.0/configure ---- gcc-7.3.0/configure.orig 2017-03-22 13:51:18.122275000 -0400 -+++ gcc-7.3.0/configure 2018-04-15 04:55:22.341328600 -0400 -@@ -3038,7 +3038,7 @@ fi - # Configure extra directories which are host specific - - case "${host}" in -- *-cygwin*) -+ *-cygwin* | *-msys*) - configdirs="$configdirs libtermcap" ;; - esac - -@@ -3480,7 +3480,7 @@ esac - # Disable the go frontend on systems where it is known to not work. Please keep - # this in sync with contrib/config-list.mk. - case "${target}" in --*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) -+*-*-darwin* | *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-aix*) - unsupported_languages="$unsupported_languages go" - ;; - esac -@@ -3493,7 +3493,7 @@ if test x$enable_libgo = x; then - # PR 46986 - noconfigdirs="$noconfigdirs target-libgo" - ;; -- *-*-cygwin* | *-*-mingw*) -+ *-*-cygwin* | *-*-msys* | *-*-mingw*) - noconfigdirs="$noconfigdirs target-libgo" - ;; - *-*-aix*) -@@ -3768,7 +3768,7 @@ case "${target}" in - i[3456789]86-*-mingw*) - target_configdirs="$target_configdirs target-winsup" - ;; -- *-*-cygwin*) -+ *-*-cygwin* | *-*-msys*) - target_configdirs="$target_configdirs target-libtermcap target-winsup" - noconfigdirs="$noconfigdirs target-libgloss" - # always build newlib if winsup directory is present. -@@ -3909,7 +3909,7 @@ case "${host}" in - i[3456789]86-*-msdosdjgpp*) - host_makefile_frag="config/mh-djgpp" - ;; -- *-cygwin*) -+ *-cygwin* | *-msys*) - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 - $as_echo_n "checking to see if cat works as expected... " >&6; } -@@ -6027,7 +6027,7 @@ fi - - target_elf=no - case $target in -- *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ -+ *-darwin* | *-aix* | *-cygwin* | *-msys* | *-mingw* | *-aout* | *-*coff* | \ - *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ - alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ - nvptx-*-none) -@@ -6045,7 +6045,7 @@ if test $target_elf = yes; then : - else - if test x"$default_enable_lto" = x"yes" ; then - case $target in -- *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; -+ *-apple-darwin[912]* | *-cygwin* | *-msys* | *-mingw* | *djgpp*) ;; - # On other non-ELF platforms, LTO has yet to be validated. - *) enable_lto=no ;; - esac -@@ -6056,7 +6056,7 @@ else - # warn during gcc/ subconfigure; unless you're bootstrapping with - # -flto it won't be needed until after installation anyway. - case $target in -- *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; -+ *-cygwin* | *-msys* | *-mingw* | *-apple-darwin* | *djgpp*) ;; - *) if test x"$enable_lto" = x"yes"; then - as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 - fi -@@ -6066,7 +6066,7 @@ else - # Among non-ELF, only Windows platforms support the lto-plugin so far. - # Build it unless LTO was explicitly disabled. - case $target in -- *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; -+ *-cygwin* | *-msys* | *-mingw*) build_lto_plugin=$enable_lto ;; - *) ;; - esac - -@@ -6965,7 +6965,7 @@ rm -f conftest* - case "${host}" in - *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; - *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; -- *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; -+ *-*-mingw* | *-*-cygwin | *-*-msys) RPATH_ENVVAR=PATH ;; - *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; - esac - -@@ -7478,7 +7478,7 @@ case " $target_configdirs " in - case " $target_configargs " in - *" --with-newlib "*) - case "$target" in -- *-cygwin*) -+ *-cygwin* | *-msys*) - FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' - ;; - esac -diff -aurp gcc-7.3.0/configure.ac.orig gcc-7.3.0/configure.ac ---- gcc-7.3.0/configure.ac.orig 2017-03-22 13:51:18.122275000 -0400 -+++ gcc-7.3.0/configure.ac 2018-04-15 04:29:38.170042200 -0400 -@@ -404,7 +404,7 @@ AC_ARG_ENABLE(compressed_debug_sections, - # Configure extra directories which are host specific - - case "${host}" in -- *-cygwin*) -+ *-cygwin* | *-msys*) - configdirs="$configdirs libtermcap" ;; - esac - -@@ -808,7 +808,7 @@ esac - # Disable the go frontend on systems where it is known to not work. Please keep - # this in sync with contrib/config-list.mk. - case "${target}" in --*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) -+*-*-darwin* | *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-aix*) - unsupported_languages="$unsupported_languages go" - ;; - esac -@@ -821,7 +821,7 @@ if test x$enable_libgo = x; then - # PR 46986 - noconfigdirs="$noconfigdirs target-libgo" - ;; -- *-*-cygwin* | *-*-mingw*) -+ *-*-cygwin* | *-*-msys* | *-*-mingw*) - noconfigdirs="$noconfigdirs target-libgo" - ;; - *-*-aix*) -@@ -1096,7 +1096,7 @@ case "${target}" in - i[[3456789]]86-*-mingw*) - target_configdirs="$target_configdirs target-winsup" - ;; -- *-*-cygwin*) -+ *-*-cygwin* | *-*-msys*) - target_configdirs="$target_configdirs target-libtermcap target-winsup" - noconfigdirs="$noconfigdirs target-libgloss" - # always build newlib if winsup directory is present. -@@ -1237,7 +1237,7 @@ case "${host}" in - i[[3456789]]86-*-msdosdjgpp*) - host_makefile_frag="config/mh-djgpp" - ;; -- *-cygwin*) -+ *-cygwin* | *-msys*) - ACX_CHECK_CYGWIN_CAT_WORKS - host_makefile_frag="config/mh-cygwin" - ;; -@@ -1727,7 +1727,7 @@ ACX_ELF_TARGET_IFELSE([# ELF platforms b - build_lto_plugin=yes - ],[if test x"$default_enable_lto" = x"yes" ; then - case $target in -- *-apple-darwin[[912]]* | *-cygwin* | *-mingw* | *djgpp*) ;; -+ *-apple-darwin[[912]]* | *-cygwin* | *-msys* | *-mingw* | *djgpp*) ;; - # On other non-ELF platforms, LTO has yet to be validated. - *) enable_lto=no ;; - esac -@@ -1738,7 +1738,7 @@ ACX_ELF_TARGET_IFELSE([# ELF platforms b - # warn during gcc/ subconfigure; unless you're bootstrapping with - # -flto it won't be needed until after installation anyway. - case $target in -- *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; -+ *-cygwin* | *-msys* | *-mingw* | *-apple-darwin* | *djgpp*) ;; - *) if test x"$enable_lto" = x"yes"; then - AC_MSG_ERROR([LTO support is not enabled for this target.]) - fi -@@ -1748,7 +1748,7 @@ ACX_ELF_TARGET_IFELSE([# ELF platforms b - # Among non-ELF, only Windows platforms support the lto-plugin so far. - # Build it unless LTO was explicitly disabled. - case $target in -- *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; -+ *-cygwin* | *-msys* | *-mingw*) build_lto_plugin=$enable_lto ;; - *) ;; - esac - ]) -@@ -2563,7 +2563,7 @@ rm -f conftest* - case "${host}" in - *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; - *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; -- *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; -+ *-*-mingw* | *-*-cygwin | *-*-msys) RPATH_ENVVAR=PATH ;; - *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; - esac - -@@ -3071,7 +3071,7 @@ case " $target_configdirs " in - case " $target_configargs " in - *" --with-newlib "*) - case "$target" in -- *-cygwin*) -+ *-cygwin* | *-msys*) - FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' - ;; - esac -diff -Naur gcc-6.3.0-orig/contrib/config-list.mk gcc-6.3.0/contrib/config-list.mk ---- gcc-6.3.0-orig/contrib/config-list.mk 2016-02-26 23:03:19.000000000 +0300 -+++ gcc-6.3.0/contrib/config-list.mk 2017-01-24 12:04:10.972203600 +0300 -@@ -103,7 +103,7 @@ - TGT=`echo $@ | awk 'BEGIN { FS = "OPT" }; { print $$1 }'` && \ - TGT=`../../gcc/config.sub $$TGT` && \ - case $$TGT in \ -- *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) \ -+ *-*-darwin* | *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-aix*) \ - ADDITIONAL_LANGUAGES=""; \ - ;; \ - *) \ -diff -Naur gcc-6.3.0-orig/fixincludes/configure gcc-6.3.0/fixincludes/configure ---- gcc-6.3.0-orig/fixincludes/configure 2016-12-21 10:53:16.000000000 +0300 -+++ gcc-6.3.0/fixincludes/configure 2017-01-24 12:04:10.987803600 +0300 -@@ -5246,7 +5246,7 @@ - # Systems known to be in this category are Windows (all variants), - # VMS, and Darwin. - case "$host_os" in -- *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) -+ *vms* | cygwin* | msys* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) - gcc_cv_func_mmap_dev_zero=no ;; - *) - gcc_cv_func_mmap_dev_zero=yes;; -@@ -5303,7 +5303,7 @@ - # above for use of /dev/zero. - # Systems known to be in this category are Windows, VMS, and SCO Unix. - case "$host_os" in -- *vms* | cygwin* | pe | mingw* | sco* | udk* ) -+ *vms* | cygwin* | msys* | pe | mingw* | sco* | udk* ) - gcc_cv_func_mmap_anon=no ;; - *) - gcc_cv_func_mmap_anon=yes;; -diff -Naur gcc-6.3.0-orig/fixincludes/mkfixinc.sh gcc-6.3.0/fixincludes/mkfixinc.sh ---- gcc-6.3.0-orig/fixincludes/mkfixinc.sh 2015-04-22 17:18:16.000000000 +0300 -+++ gcc-6.3.0/fixincludes/mkfixinc.sh 2017-01-24 12:04:10.987803600 +0300 -@@ -12,6 +12,9 @@ - # Check for special fix rules for particular targets - case $machine in - i?86-*-cygwin* | \ -+ x86_64-*-cygwin* | \ -+ i?86-*-msys* | \ -+ x86_64-*-msys* | \ - i?86-*-mingw32* | \ - x86_64-*-mingw32* | \ - i?86-*-interix* | \ -diff -Naur gcc-6.3.0-orig/gcc/ada/gcc-interface/Makefile.in gcc-6.3.0/gcc/ada/gcc-interface/Makefile.in ---- gcc-6.3.0-orig/gcc/ada/gcc-interface/Makefile.in 2017-01-24 12:02:45.347636100 +0300 -+++ gcc-6.3.0/gcc/ada/gcc-interface/Makefile.in 2017-01-24 12:04:11.003403600 +0300 -@@ -1735,15 +1735,15 @@ - indepsw.adb&5 - $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; } -@@ -12972,7 +12975,7 @@ else - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -13314,7 +13317,7 @@ bsdi[45]*) - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -13894,7 +13897,7 @@ case $host_os in - aix*) - symcode='[BCDT]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; - hpux*) -@@ -15508,7 +15511,7 @@ $as_echo_n "checking for $compiler optio - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -15590,7 +15593,7 @@ $as_echo_n "checking for $compiler optio - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' -@@ -16052,7 +16055,7 @@ $as_echo_n "checking whether the $compil - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -16167,7 +16170,7 @@ _LT_EOF - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' -@@ -16598,7 +16601,7 @@ if test -z "$aix_libpath"; then aix_libp - export_dynamic_flag_spec=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -17499,14 +17502,14 @@ bsdi[45]*) - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -17530,6 +17533,12 @@ cygwin* | mingw* | pw32* | cegcc*) - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -18166,7 +18175,7 @@ else - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; -@@ -19388,7 +19397,7 @@ if test -z "$aix_libpath"; then aix_libp - esac - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_CXX='-L$libdir' -@@ -20357,7 +20366,7 @@ $as_echo_n "checking for $compiler optio - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; -- mingw* | cygwin* | os2* | pw32* | cegcc*) -+ mingw* | msys* | cygwin* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -20897,7 +20906,7 @@ $as_echo_n "checking whether the $compil - pw32*) - export_symbols_cmds_CXX="$ltdll_cmds" - ;; -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' - ;; - *) -@@ -21161,14 +21170,14 @@ bsdi[45]*) - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -21191,6 +21200,11 @@ cygwin* | mingw* | pw32* | cegcc*) - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -23367,7 +23381,7 @@ else - test $ac_status = 0; }; } - then - case $target_os in -- win32 | pe | cygwin* | mingw32*) -+ win32 | pe | cygwin* | msys* | mingw32*) - # Need to check that we generated the correct relocation for the - # .debug_frame section. This was fixed for binutils 2.21. - gcc_cv_as_cfi_sections_directive=no -@@ -25294,7 +25308,7 @@ fi - - i[34567]86-*-* | x86_64-*-*) - case $target_os in -- cygwin*) -+ cygwin* | msys*) - # Full C++ conformance when using a shared libstdc++-v3 requires some - # support from the Cygwin DLL, which in more recent versions exports - # wrappers to aid in interposing and redirecting operators new, delete, -@@ -25320,7 +25334,7 @@ _ACEOF - - esac - case $target_os in -- cygwin* | pe | mingw32*) -+ cygwin* | msys* | pe | mingw32*) - # Recent binutils allows the three-operand form of ".comm" on PE. This - # definition is used unconditionally to initialise the default state of - # the target option variable that governs usage of the feature. -diff -aurp gcc-7.3.0/gcc/configure.ac.orig gcc-7.3.0/gcc/configure.ac ---- gcc-7.3.0/gcc/configure.ac.orig 2017-11-21 04:31:12.135035000 -0500 -+++ gcc-7.3.0/gcc/configure.ac 2018-04-15 05:32:13.163222700 -0400 -@@ -1850,7 +1850,7 @@ AS_HELP_STRING([--enable-win32-registry= - of the registry key])],,) - - case $host_os in -- win32 | pe | cygwin* | mingw32*) -+ win32 | pe | cygwin* | msys* | mingw32*) - if test "x$enable_win32_registry" != xno; then - AC_SEARCH_LIBS(RegOpenKeyExA, advapi32,, [enable_win32_registry=no]) - fi -@@ -2846,7 +2846,7 @@ gcc_GAS_CHECK_FEATURE([cfi sections dire - .cfi_startproc - .cfi_endproc], - [case $target_os in -- win32 | pe | cygwin* | mingw32*) -+ win32 | pe | cygwin* | msys* | mingw32*) - # Need to check that we generated the correct relocation for the - # .debug_frame section. This was fixed for binutils 2.21. - gcc_cv_as_cfi_sections_directive=no -@@ -3999,7 +3999,7 @@ changequote(,)dnl - i[34567]86-*-* | x86_64-*-*) - changequote([,])dnl - case $target_os in -- cygwin*) -+ cygwin* | msys*) - # Full C++ conformance when using a shared libstdc++-v3 requires some - # support from the Cygwin DLL, which in more recent versions exports - # wrappers to aid in interposing and redirecting operators new, delete, -@@ -4018,7 +4018,7 @@ changequote([,])dnl - Cygwin DLL exports wrappers to support libstdc++ function replacement.]) - esac - case $target_os in -- cygwin* | pe | mingw32*) -+ cygwin* | msys* | pe | mingw32*) - # Recent binutils allows the three-operand form of ".comm" on PE. This - # definition is used unconditionally to initialise the default state of - # the target option variable that governs usage of the feature. -diff -Naur gcc-6.3.0-orig/libada/configure gcc-6.3.0/libada/configure ---- gcc-6.3.0-orig/libada/configure 2016-12-21 10:53:24.000000000 +0300 -+++ gcc-6.3.0/libada/configure 2017-01-24 12:04:11.065803700 +0300 -@@ -2842,6 +2842,8 @@ - ;; - i[34567]86-*-cygwin* | x86_64-*-cygwin*) - ;; -+ i[34567]86-*-msys* | x86_64-*-msys*) -+ ;; - i[34567]86-*-mingw* | x86_64-*-mingw*) - ;; - i[34567]86-*-interix[3-9]*) -diff -Naur gcc-6.3.0-orig/libatomic/configure gcc-6.3.0/libatomic/configure ---- gcc-6.3.0-orig/libatomic/configure 2016-12-21 10:53:57.000000000 +0300 -+++ gcc-6.3.0/libatomic/configure 2017-01-24 12:04:11.081403700 +0300 -@@ -5380,7 +5380,7 @@ - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -5722,7 +5722,7 @@ - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -6302,7 +6302,7 @@ - aix*) - symcode='[BCDT]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; - hpux*) -@@ -8186,7 +8186,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -8268,7 +8268,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' -@@ -8730,7 +8730,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -8845,7 +8845,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' -@@ -9276,7 +9276,7 @@ - export_dynamic_flag_spec=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -10177,14 +10177,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -10208,6 +10208,12 @@ - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -10844,7 +10850,7 @@ - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; -@@ -11458,7 +11464,7 @@ - - - case $host in -- *-cygwin* | *-mingw*) -+ *-cygwin* | *-msys* | *-mingw*) - # 'host' will be top-level target in the case of a target lib, - # we must compare to with_cross_host to decide if this is a native - # or cross-compiler and select where to install dlls appropriately. -diff -Naur gcc-6.3.0-orig/libatomic/configure.tgt gcc-6.3.0/libatomic/configure.tgt ---- gcc-6.3.0-orig/libatomic/configure.tgt 2016-05-10 10:03:07.000000000 +0300 -+++ gcc-6.3.0/libatomic/configure.tgt 2017-01-24 12:04:11.081403700 +0300 -@@ -116,7 +116,7 @@ - *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu \ - | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly* \ - | *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11* \ -- | *-*-darwin* | *-*-aix* | *-*-cygwin*) -+ | *-*-darwin* | *-*-aix* | *-*-cygwin* | *-*-msys*) - # POSIX system. The OS is supported. - config_path="${config_path} posix" - ;; -diff -Naur gcc-6.3.0-orig/libbacktrace/configure gcc-6.3.0/libbacktrace/configure ---- gcc-6.3.0-orig/libbacktrace/configure 2015-12-18 07:36:11.000000000 +0300 -+++ gcc-6.3.0/libbacktrace/configure 2017-01-24 12:04:11.097003800 +0300 -@@ -5669,7 +5669,7 @@ - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -6011,7 +6011,7 @@ - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -6591,7 +6591,7 @@ - aix*) - symcode='[BCDT]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; - hpux*) -@@ -8206,7 +8206,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -8288,7 +8288,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' -@@ -8750,7 +8750,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -8865,7 +8865,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' -@@ -9296,7 +9296,7 @@ - export_dynamic_flag_spec=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -10197,14 +10197,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -10228,6 +10228,12 @@ - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -10864,7 +10870,7 @@ - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; -diff -Naur gcc-6.3.0-orig/libcc1/configure gcc-6.3.0/libcc1/configure ---- gcc-6.3.0-orig/libcc1/configure 2016-03-14 11:54:06.000000000 +0300 -+++ gcc-6.3.0/libcc1/configure 2017-01-24 12:04:11.112603800 +0300 -@@ -5079,7 +5079,7 @@ - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -5421,7 +5421,7 @@ - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -6001,7 +6001,7 @@ - aix*) - symcode='[BCDT]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; - hpux*) -@@ -7615,7 +7615,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -7697,7 +7697,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' -@@ -8159,7 +8159,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -8274,7 +8274,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' -@@ -8705,7 +8705,7 @@ - export_dynamic_flag_spec=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -9606,14 +9606,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -9637,6 +9637,12 @@ - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; -+ msys*) -+ # MSYS DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -10273,7 +10279,7 @@ - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; -@@ -11901,7 +11907,7 @@ - esac - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_CXX='-L$libdir' -@@ -12870,7 +12876,7 @@ - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; -- mingw* | cygwin* | os2* | pw32* | cegcc*) -+ mingw* | cygwin* | msys* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -13410,7 +13416,7 @@ - pw32*) - export_symbols_cmds_CXX="$ltdll_cmds" - ;; -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' - ;; - *) -@@ -13674,7 +13680,7 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no -@@ -13704,6 +13710,11 @@ - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - - ;; -+ msys*) -+ # MSYS DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -diff -Naur gcc-6.3.0-orig/libcilkrts/configure gcc-6.3.0/libcilkrts/configure ---- gcc-6.3.0-orig/libcilkrts/configure 2017-01-24 12:03:46.930556900 +0300 -+++ gcc-6.3.0/libcilkrts/configure 2017-01-24 12:04:11.112603800 +0300 -@@ -5604,7 +5604,7 @@ - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -5946,7 +5946,7 @@ - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -6526,7 +6526,7 @@ - aix*) - symcode='[BCDT]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; - hpux*) -@@ -8140,7 +8140,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -8222,7 +8222,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' -@@ -8684,7 +8684,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -8799,7 +8799,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' -@@ -9230,7 +9230,7 @@ - export_dynamic_flag_spec=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -10131,14 +10131,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -10162,6 +10162,12 @@ - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; -+ msys*) -+ # MSYS DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -10798,7 +10804,7 @@ - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; -@@ -12020,7 +12026,7 @@ - esac - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_CXX='-L$libdir' -@@ -12989,7 +12995,7 @@ - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; -- mingw* | cygwin* | os2* | pw32* | cegcc*) -+ mingw* | cygwin* | msys* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -13529,7 +13535,7 @@ - pw32*) - export_symbols_cmds_CXX="$ltdll_cmds" - ;; -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' - ;; - *) -@@ -13793,14 +13799,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -13823,6 +13829,11 @@ - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - - ;; -+ msys*) -+ # MSYS DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -14428,7 +14439,7 @@ - - - case $host in -- *-cygwin* | *-mingw*) -+ *-cygwin* | *-msys* | *-mingw*) - # 'host' will be top-level target in the case of a target lib, - # we must compare to with_cross_host to decide if this is a native - # or cross-compiler and select where to install dlls appropriately. -diff -Naur gcc-6.3.0-orig/libdecnumber/configure gcc-6.3.0/libdecnumber/configure ---- gcc-6.3.0-orig/libdecnumber/configure 2015-06-30 19:42:07.000000000 +0300 -+++ gcc-6.3.0/libdecnumber/configure 2017-01-24 12:04:11.128203800 +0300 -@@ -4616,7 +4616,8 @@ - powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ - i?86*-*-elfiamcu | i?86*-*-gnu* | \ - i?86*-*-mingw* | x86_64*-*-mingw* | \ -- i?86*-*-cygwin* | x86_64*-*-cygwin*) -+ i?86*-*-cygwin* | x86_64*-*-cygwin* | \ -+ i?86*-*-msys* | x86_64*-*-msys*) - enable_decimal_float=yes - ;; - *) -diff -Naur gcc-6.3.0-orig/libffi/acinclude.m4 gcc-6.3.0/libffi/acinclude.m4 ---- gcc-6.3.0-orig/libffi/acinclude.m4 2016-03-03 02:28:11.000000000 +0300 -+++ gcc-6.3.0/libffi/acinclude.m4 2017-01-24 12:04:11.128203800 +0300 -@@ -37,7 +37,7 @@ - # Systems known to be in this category are Windows (all variants), - # VMS, and Darwin. - case "$host_os" in -- vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) -+ vms* | cygwin* | msys* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) - ac_cv_func_mmap_dev_zero=no ;; - *) - ac_cv_func_mmap_dev_zero=yes;; -@@ -69,7 +69,7 @@ - # above for use of /dev/zero. - # Systems known to be in this category are Windows, VMS, and SCO Unix. - case "$host_os" in -- vms* | cygwin* | pe | mingw* | sco* | udk* ) -+ vms* | cygwin* | msys* | pe | mingw* | sco* | udk* ) - ac_cv_func_mmap_anon=no ;; - *) - ac_cv_func_mmap_anon=yes;; -diff -Naur gcc-6.3.0-orig/libffi/configure gcc-6.3.0/libffi/configure ---- gcc-6.3.0-orig/libffi/configure 2016-12-21 10:53:27.000000000 +0300 -+++ gcc-6.3.0/libffi/configure 2017-01-24 12:04:11.143803900 +0300 -@@ -5654,7 +5654,7 @@ - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -5996,7 +5996,7 @@ - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -6576,7 +6576,7 @@ - aix*) - symcode='[BCDT]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; - hpux*) -@@ -8461,7 +8461,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -8543,7 +8543,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' -@@ -9005,7 +9005,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -9120,7 +9120,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' -@@ -9551,7 +9551,7 @@ - export_dynamic_flag_spec=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -10452,14 +10452,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -10483,6 +10483,12 @@ - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -11119,7 +11125,7 @@ - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; -@@ -12341,7 +12347,7 @@ - esac - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_CXX='-L$libdir' -@@ -13310,7 +13316,7 @@ - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; -- mingw* | cygwin* | os2* | pw32* | cegcc*) -+ mingw* | cygwin* | msys* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -13850,7 +13856,7 @@ - pw32*) - export_symbols_cmds_CXX="$ltdll_cmds" - ;; -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' - ;; - *) -@@ -14114,14 +14120,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -14144,6 +14150,11 @@ - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - - ;; -+ msys*) -+ # MSYS DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -14888,7 +14899,7 @@ - # Systems known to be in this category are Windows (all variants), - # VMS, and Darwin. - case "$host_os" in -- vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) -+ vms* | cygwin* | msys* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) - ac_cv_func_mmap_dev_zero=no ;; - *) - ac_cv_func_mmap_dev_zero=yes;; -@@ -14945,7 +14956,7 @@ - # above for use of /dev/zero. - # Systems known to be in this category are Windows, VMS, and SCO Unix. - case "$host_os" in -- vms* | cygwin* | pe | mingw* | sco* | udk* ) -+ vms* | cygwin* | msys* | pe | mingw* | sco* | udk* ) - ac_cv_func_mmap_anon=no ;; - *) - ac_cv_func_mmap_anon=yes;; -diff -Naur gcc-6.3.0-orig/libffi/configure.host gcc-6.3.0/libffi/configure.host ---- gcc-6.3.0-orig/libffi/configure.host 2015-01-14 02:30:33.000000000 +0300 -+++ gcc-6.3.0/libffi/configure.host 2017-01-24 12:04:11.143803900 +0300 -@@ -64,15 +64,15 @@ - TARGET=X86_FREEBSD; TARGETDIR=x86 - ;; - -- i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix* \ -- | x86_64-*-cygwin* | x86_64-*-mingw*) -+ i?86-win32* | i?86-*-cygwin* | i?86-*-msys* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix* \ -+ | x86_64-*-cygwin* | x86_64-*-msys* | x86_64-*-mingw*) - TARGETDIR=x86 - if test $ac_cv_sizeof_size_t = 4; then - TARGET=X86_WIN32 - else - TARGET=X86_WIN64 - fi -- # All mingw/cygwin/win32 builds require -no-undefined for sharedlib. -+ # All mingw/cygwin/msys/win32 builds require -no-undefined for sharedlib. - # We must also check with_cross_host to decide if this is a native - # or cross-build and select where to install dlls appropriately. - if test -n "$with_cross_host" && -diff -Naur gcc-6.3.0-orig/libgcc/configure gcc-6.3.0/libgcc/configure ---- gcc-6.3.0-orig/libgcc/configure 2016-04-11 22:45:35.000000000 +0300 -+++ gcc-6.3.0/libgcc/configure 2017-01-24 12:04:11.159403900 +0300 -@@ -2319,6 +2319,8 @@ - ;; - i[34567]86-*-cygwin* | x86_64-*-cygwin*) - ;; -+ i[34567]86-*-msys* | x86_64-*-msys*) -+ ;; - i[34567]86-*-mingw* | x86_64-*-mingw*) - ;; - i[34567]86-*-interix[3-9]*) -@@ -4438,7 +4440,8 @@ - powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ - i?86*-*-elfiamcu | i?86*-*-gnu* | \ - i?86*-*-mingw* | x86_64*-*-mingw* | \ -- i?86*-*-cygwin* | x86_64*-*-cygwin*) -+ i?86*-*-cygwin* | x86_64*-*-cygwin* | \ -+ i?86*-*-msys* | x86_64*-*-msys*) - enable_decimal_float=yes - ;; - *) -diff -Naur gcc-6.3.0-orig/libgcc/gthr-posix.h gcc-6.3.0/libgcc/gthr-posix.h ---- gcc-6.3.0-orig/libgcc/gthr-posix.h 2016-01-04 17:30:50.000000000 +0300 -+++ gcc-6.3.0/libgcc/gthr-posix.h 2017-01-24 12:04:11.175003900 +0300 -@@ -82,7 +82,7 @@ - # define __GTHREAD_COND_INIT_FUNCTION __gthread_cond_init_function - #endif - --#if SUPPORTS_WEAK && GTHREAD_USE_WEAK -+#if SUPPORTS_WEAK && GTHREAD_USE_WEAK && !defined(__MINGW32__) - # ifndef __gthrw_pragma - # define __gthrw_pragma(pragma) - # endif -diff -Naur gcc-6.3.0-orig/libgfortran/acinclude.m4 gcc-6.3.0/libgfortran/acinclude.m4 ---- gcc-6.3.0-orig/libgfortran/acinclude.m4 2015-08-31 17:02:43.000000000 +0300 -+++ gcc-6.3.0/libgfortran/acinclude.m4 2017-01-24 12:04:11.175003900 +0300 -@@ -85,7 +85,7 @@ - [Define to 1 if the target supports #pragma weak]) - fi - case "$host" in -- *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* ) -+ *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-musl* ) - AC_DEFINE(GTHREAD_USE_WEAK, 0, - [Define to 0 if the target shouldn't use #pragma weak]) - ;; -diff -Naur gcc-6.3.0-orig/libgfortran/configure gcc-6.3.0/libgfortran/configure ---- gcc-6.3.0-orig/libgfortran/configure 2016-12-21 10:53:33.000000000 +0300 -+++ gcc-6.3.0/libgfortran/configure 2017-01-24 12:04:11.175003900 +0300 -@@ -6870,7 +6870,7 @@ - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -7212,7 +7212,7 @@ - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -7792,7 +7792,7 @@ - aix*) - symcode='[BCDT]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; - hpux*) -@@ -9411,7 +9411,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -9493,7 +9493,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' -@@ -9955,7 +9955,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -10070,7 +10070,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' -@@ -10507,7 +10507,7 @@ - export_dynamic_flag_spec=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -11411,14 +11411,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -11442,6 +11442,12 @@ - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -12081,7 +12087,7 @@ - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; -@@ -12710,7 +12716,7 @@ - - - case $host in -- *-cygwin* | *-mingw*) -+ *-cygwin* | *-msys* | *-mingw*) - # 'host' will be top-level target in the case of a target lib, - # we must compare to with_cross_host to decide if this is a native - # or cross-compiler and select where to install dlls appropriately. -@@ -13275,7 +13281,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -13357,7 +13363,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic_FC='-DDLL_EXPORT' -@@ -13804,7 +13810,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -13919,7 +13925,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_FC='-L$libdir' -@@ -14344,7 +14350,7 @@ - export_dynamic_flag_spec_FC=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -15042,14 +15048,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -15072,6 +15078,11 @@ - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -25992,7 +26003,7 @@ - - fi - case "$host" in -- *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* ) -+ *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-musl* ) - - $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h - -diff -Naur gcc-6.3.0-orig/libgo/config/libtool.m4 gcc-6.3.0/libgo/config/libtool.m4 ---- gcc-6.3.0-orig/libgo/config/libtool.m4 2014-11-12 06:51:36.000000000 +0300 -+++ gcc-6.3.0/libgo/config/libtool.m4 2017-01-24 12:04:11.190603900 +0300 -@@ -1496,7 +1496,7 @@ - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -1738,7 +1738,7 @@ - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; -@@ -2209,14 +2209,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -2240,6 +2240,12 @@ - m4_if([$1], [],[ - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' -+m4_if([$1], [],[ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' -@@ -3006,7 +3012,7 @@ - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -3290,7 +3296,7 @@ - [AC_REQUIRE([AC_CANONICAL_HOST])dnl - LIBM= - case $host in --*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) -+*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-msys* | *-*-haiku* | *-*-pw32* | *-*-darwin*) - # These system don't have libm, or don't need it - ;; - *-ncr-sysv4.3*) -@@ -3365,7 +3371,7 @@ - aix*) - symcode='[[BCDT]]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[[ABCDGISTW]]' - ;; - hpux*) -@@ -3612,7 +3618,7 @@ - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; -- mingw* | cygwin* | os2* | pw32* | cegcc*) -+ mingw* | msys* | cygwin* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -3925,7 +3931,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -4008,7 +4014,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - m4_if([$1], [GCJ], [], -@@ -4241,7 +4247,7 @@ - pw32*) - _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" - ;; -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' - ;; - *) -@@ -4293,7 +4299,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -4408,7 +4414,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' -@@ -4781,7 +4787,7 @@ - _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -5725,7 +5731,7 @@ - esac - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' -diff -Naur gcc-6.3.0-orig/libgo/config/ltmain.sh gcc-6.3.0/libgo/config/ltmain.sh ---- gcc-6.3.0-orig/libgo/config/ltmain.sh 2014-11-12 06:51:36.000000000 +0300 -+++ gcc-6.3.0/libgo/config/ltmain.sh 2017-01-24 12:04:11.190603900 +0300 -@@ -976,7 +976,7 @@ - - - case $host in -- *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* ) -+ *cygwin* | *msys* | *mingw* | *pw32* | *cegcc* | *solaris2* ) - # don't eliminate duplications in $postdeps and $predeps - opt_duplicate_compiler_generated_deps=: - ;; -@@ -1453,7 +1453,7 @@ - - # On Cygwin there's no "real" PIC flag so we must build both object types - case $host_os in -- cygwin* | mingw* | pw32* | os2* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | os2* | cegcc*) - pic_mode=default - ;; - esac -@@ -2279,7 +2279,7 @@ - 'exit $?' - tstripme="$stripme" - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - case $realname in - *.dll.a) - tstripme="" -@@ -2385,7 +2385,7 @@ - - # Do a test to see if this is really a libtool program. - case $host in -- *cygwin* | *mingw*) -+ *cygwin* | *msys* | *mingw*) - if func_ltwrapper_executable_p "$file"; then - func_ltwrapper_scriptname "$file" - wrapper=$func_ltwrapper_scriptname_result -@@ -2460,7 +2460,7 @@ - # remove .exe since cygwin /usr/bin/install will append another - # one anyway - case $install_prog,$host in -- */usr/bin/install*,*cygwin*) -+ */usr/bin/install*,*cygwin*|*/usr/bin/install*,*msys*) - case $file:$destfile in - *.exe:*.exe) - # this is ok -@@ -2595,7 +2595,7 @@ - $RM $export_symbols - ${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' < "$nlist" > "$export_symbols" - case $host in -- *cygwin* | *mingw* | *cegcc* ) -+ *cygwin* | *msys* | *mingw* | *cegcc* ) - echo EXPORTS > "$output_objdir/$outputname.def" - cat "$export_symbols" >> "$output_objdir/$outputname.def" - ;; -@@ -2607,7 +2607,7 @@ - $GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T - $MV "$nlist"T "$nlist" - case $host in -- *cygwin* | *mingw* | *cegcc* ) -+ *cygwin* | *msys* | *mingw* | *cegcc* ) - echo EXPORTS > "$output_objdir/$outputname.def" - cat "$nlist" >> "$output_objdir/$outputname.def" - ;; -@@ -2663,7 +2663,7 @@ - } lt_dlsymlist; - " - case $host in -- *cygwin* | *mingw* | *cegcc* ) -+ *cygwin* | *msys* | *mingw* | *cegcc* ) - echo >> "$output_objdir/$my_dlsyms" "\ - /* DATA imports from DLLs on WIN32 con't be const, because - runtime relocations are performed -- see ld's documentation -@@ -2749,7 +2749,7 @@ - # Transform the symbol file into the correct name. - symfileobj="$output_objdir/${my_outputname}S.$objext" - case $host in -- *cygwin* | *mingw* | *cegcc* ) -+ *cygwin* | *msys* | *mingw* | *cegcc* ) - if test -f "$output_objdir/$my_outputname.def"; then - compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` - finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` -@@ -3192,7 +3192,7 @@ - func_to_host_path_result=`( cmd //c echo "$1" ) 2>/dev/null | - $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` - ;; -- *cygwin* ) -+ *cygwin* | *msys* ) - func_to_host_path_result=`cygpath -w "$1" | - $SED -e "$lt_sed_naive_backslashify"` - ;; -@@ -3265,7 +3265,7 @@ - ( cmd //c echo "$func_to_host_pathlist_tmp1" ) 2>/dev/null | - $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` - ;; -- *cygwin* ) -+ *cygwin* | *msys* ) - func_to_host_pathlist_result=`cygpath -w -p "$func_to_host_pathlist_tmp1" | - $SED -e "$lt_sed_naive_backslashify"` - ;; -@@ -3571,7 +3571,7 @@ - { - EOF - case "$host" in -- *mingw* | *cygwin* ) -+ *mingw* | *cygwin* | *msys* ) - # make stdout use "unix" line endings - echo " setmode(1,_O_BINARY);" - ;; -@@ -4233,7 +4233,7 @@ - { - $opt_debug - case $host in -- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) -+ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) - # It is impossible to link a dll without this setting, and - # we shouldn't force the makefile maintainer to figure out - # which system we are compiling for in order to pass an extra -@@ -4713,7 +4713,7 @@ - ;; - esac - case $host in -- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) -+ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) - testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` - case :$dllsearchpath: in - *":$dir:"*) ;; -@@ -4733,7 +4733,7 @@ - -l*) - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then - case $host in -- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) -+ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) - # These systems don't actually have a C or math library (as such) - continue - ;; -@@ -4813,7 +4813,7 @@ - - -no-install) - case $host in -- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) -+ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) - # The PATH hackery in wrapper scripts is required on Windows - # and Darwin in order for the loader to find any dlls it needs. - func_warning "\`-no-install' is ignored for $host" -@@ -5772,7 +5772,7 @@ - if test -n "$library_names" && - { test "$use_static_libs" = no || test -z "$old_library"; }; then - case $host in -- *cygwin* | *mingw* | *cegcc*) -+ *cygwin* | *msys* | *mingw* | *cegcc*) - # No point in relinking DLLs because paths are not encoded - notinst_deplibs="$notinst_deplibs $lib" - need_relink=no -@@ -5842,7 +5842,7 @@ - elif test -n "$soname_spec"; then - # bleh windows - case $host in -- *cygwin* | mingw* | *cegcc*) -+ *cygwin* | *msys* | mingw* | *cegcc*) - func_arith $current - $age - major=$func_arith_result - versuffix="-$major" -@@ -6693,7 +6693,7 @@ - if test "$build_libtool_libs" = yes; then - if test -n "$rpath"; then - case $host in -- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) -+ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) - # these systems don't actually have a c library (as such)! - ;; - *-*-rhapsody* | *-*-darwin1.[012]) -@@ -7194,7 +7194,7 @@ - - orig_export_symbols= - case $host_os in -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - if test -n "$export_symbols" && test -z "$export_symbols_regex"; then - # exporting using user supplied symfile - if test "x`$SED 1q $export_symbols`" != xEXPORTS; then -@@ -7710,7 +7710,7 @@ - - prog) - case $host in -- *cygwin*) func_stripname '' '.exe' "$output" -+ *cygwin* | *msys*) func_stripname '' '.exe' "$output" - output=$func_stripname_result.exe;; - esac - test -n "$vinfo" && \ -@@ -7823,7 +7823,7 @@ - esac - fi - case $host in -- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) -+ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) - testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` - case :$dllsearchpath: in - *":$libdir:"*) ;; -@@ -7901,7 +7901,7 @@ - # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. - wrappers_required=no - ;; -- *cygwin* | *mingw* ) -+ *cygwin* | *msys* | *mingw* ) - if test "$build_libtool_libs" != yes; then - wrappers_required=no - fi -@@ -8029,14 +8029,14 @@ - esac - # test for cygwin because mv fails w/o .exe extensions - case $host in -- *cygwin*) -+ *cygwin* | *msys*) - exeext=.exe - func_stripname '' '.exe' "$outputname" - outputname=$func_stripname_result ;; - *) exeext= ;; - esac - case $host in -- *cygwin* | *mingw* ) -+ *cygwin* | *msys* | *mingw* ) - func_dirname_and_basename "$output" "" "." - output_name=$func_basename_result - output_path=$func_dirname_result -@@ -8343,7 +8343,7 @@ - # tests/bindir.at for full details. - tdlname=$dlname - case $host,$output,$installed,$module,$dlname in -- *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) -+ *cygwin*,*lai,yes,no,*.dll | *msys*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) - # If a -bindir argument was supplied, place the dll there. - if test "x$bindir" != x ; - then -diff -Naur gcc-6.3.0-orig/libgo/config/ltoptions.m4 gcc-6.3.0/libgo/config/ltoptions.m4 ---- gcc-6.3.0-orig/libgo/config/ltoptions.m4 2010-11-12 23:52:54.000000000 +0300 -+++ gcc-6.3.0/libgo/config/ltoptions.m4 2017-01-24 12:04:11.190603900 +0300 -@@ -126,7 +126,7 @@ - [enable_win32_dll=yes - - case $host in --*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) -+*-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) - AC_CHECK_TOOL(AS, as, false) - AC_CHECK_TOOL(DLLTOOL, dlltool, false) - AC_CHECK_TOOL(OBJDUMP, objdump, false) -diff -Naur gcc-6.3.0-orig/libgo/configure gcc-6.3.0/libgo/configure ---- gcc-6.3.0-orig/libgo/configure 2016-02-05 01:54:20.000000000 +0300 -+++ gcc-6.3.0/libgo/configure 2017-01-24 12:04:11.206204000 +0300 -@@ -5304,7 +5304,7 @@ - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -5646,7 +5646,7 @@ - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -6226,7 +6226,7 @@ - aix*) - symcode='[BCDT]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; - hpux*) -@@ -8201,7 +8201,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -8283,7 +8283,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' -@@ -8745,7 +8745,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -8860,7 +8860,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' -@@ -9291,7 +9291,7 @@ - export_dynamic_flag_spec=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -10192,14 +10192,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -10223,6 +10223,12 @@ - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -10859,7 +10865,7 @@ - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; -@@ -11633,7 +11639,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -11715,7 +11721,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic_GO='-DDLL_EXPORT' -@@ -12162,7 +12168,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -12277,7 +12283,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_GO='-L$libdir' -@@ -12708,7 +12714,7 @@ - export_dynamic_flag_spec_GO=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -diff -Naur gcc-6.3.0-orig/libgomp/configure gcc-6.3.0/libgomp/configure ---- gcc-6.3.0-orig/libgomp/configure 2016-12-21 10:53:46.000000000 +0300 -+++ gcc-6.3.0/libgomp/configure 2017-01-24 12:04:11.221804000 +0300 -@@ -5414,7 +5414,7 @@ - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -5756,7 +5756,7 @@ - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -6336,7 +6336,7 @@ - aix*) - symcode='[BCDT]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; - hpux*) -@@ -8220,7 +8220,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -8302,7 +8302,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' -@@ -8764,7 +8764,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -8879,7 +8879,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' -@@ -9310,7 +9310,7 @@ - export_dynamic_flag_spec=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -10211,14 +10211,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -10242,6 +10242,12 @@ - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -10878,7 +10884,7 @@ - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; -@@ -11492,7 +11498,7 @@ - - - case $host in -- *-cygwin* | *-mingw*) -+ *-cygwin* | *-msys* | *-mingw*) - # 'host' will be top-level target in the case of a target lib, - # we must compare to with_cross_host to decide if this is a native - # or cross-compiler and select where to install dlls appropriately. -@@ -12095,7 +12101,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -12177,7 +12183,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic_FC='-DDLL_EXPORT' -@@ -12624,7 +12630,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -12739,7 +12745,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_FC='-L$libdir' -@@ -13158,7 +13164,7 @@ - export_dynamic_flag_spec_FC=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -13853,14 +13859,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -13883,6 +13889,11 @@ - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -diff -Naur gcc-6.3.0-orig/libgomp/configure.tgt gcc-6.3.0/libgomp/configure.tgt ---- gcc-6.3.0-orig/libgomp/configure.tgt 2017-01-24 12:03:05.882276800 +0300 -+++ gcc-6.3.0/libgomp/configure.tgt 2017-01-24 12:04:11.221804000 +0300 -@@ -132,7 +132,7 @@ - esac - ;; - -- *-*-cygwin*) -+ *-*-cygwin*|*-*-msys*) - config_path="cygwin posix" - ;; - -diff -Naur gcc-6.3.0-orig/libiberty/configure gcc-6.3.0/libiberty/configure ---- gcc-6.3.0-orig/libiberty/configure 2017-01-24 12:01:22.991673200 +0300 -+++ gcc-6.3.0/libiberty/configure 2017-01-24 12:04:11.221804000 +0300 -@@ -5109,6 +5109,8 @@ - ;; - i[34567]86-*-cygwin* | x86_64-*-cygwin*) - ;; -+ i[34567]86-*-msys* | x86_64-*-msys*) -+ ;; - i[34567]86-*-mingw* | x86_64-*-mingw*) - ;; - i[34567]86-*-interix[3-9]*) -@@ -6174,7 +6176,7 @@ - - - case "${host}" in -- *-*-cygwin* | *-*-mingw*) -+ *-*-cygwin* | *-*-msys* | *-*-mingw*) - $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h - - $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h -diff -Naur gcc-6.3.0-orig/libiberty/configure.ac gcc-6.3.0/libiberty/configure.ac ---- gcc-6.3.0-orig/libiberty/configure.ac 2015-11-09 07:32:08.000000000 +0300 -+++ gcc-6.3.0/libiberty/configure.ac 2017-01-24 12:04:11.237404000 +0300 -@@ -549,7 +549,7 @@ - AC_SUBST(target_header_dir) - - case "${host}" in -- *-*-cygwin* | *-*-mingw*) -+ *-*-cygwin* | *-*-msys* | *-*-mingw*) - AC_DEFINE(HAVE_SYS_ERRLIST) - AC_DEFINE(HAVE_SYS_NERR) - ;; -diff -Naur gcc-6.3.0-orig/libitm/configure gcc-6.3.0/libitm/configure ---- gcc-6.3.0-orig/libitm/configure 2016-12-21 10:53:52.000000000 +0300 -+++ gcc-6.3.0/libitm/configure 2017-01-24 12:04:11.237404000 +0300 -@@ -6058,7 +6058,7 @@ - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -6400,7 +6400,7 @@ - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -6980,7 +6980,7 @@ - aix*) - symcode='[BCDT]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; - hpux*) -@@ -8865,7 +8865,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -8947,7 +8947,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' -@@ -9409,7 +9409,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -9524,7 +9524,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' -@@ -9955,7 +9955,7 @@ - export_dynamic_flag_spec=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -10856,14 +10856,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -10887,6 +10887,12 @@ - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -11523,7 +11529,7 @@ - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; -@@ -12745,7 +12751,7 @@ - esac - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_CXX='-L$libdir' -@@ -13714,7 +13720,7 @@ - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; -- mingw* | cygwin* | os2* | pw32* | cegcc*) -+ mingw* | msys* | cygwin* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -14254,7 +14260,7 @@ - pw32*) - export_symbols_cmds_CXX="$ltdll_cmds" - ;; -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' - ;; - *) -@@ -14518,14 +14524,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -14548,6 +14554,11 @@ - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -15839,7 +15850,7 @@ - # Systems known to be in this category are Windows (all variants), - # VMS, and Darwin. - case "$host_os" in -- *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) -+ *vms* | cygwin* | msys* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) - gcc_cv_func_mmap_dev_zero=no ;; - *) - gcc_cv_func_mmap_dev_zero=yes;; -@@ -15896,7 +15907,7 @@ - # above for use of /dev/zero. - # Systems known to be in this category are Windows, VMS, and SCO Unix. - case "$host_os" in -- *vms* | cygwin* | pe | mingw* | sco* | udk* ) -+ *vms* | cygwin* | msys* | pe | mingw* | sco* | udk* ) - gcc_cv_func_mmap_anon=no ;; - *) - gcc_cv_func_mmap_anon=yes;; -diff -Naur gcc-6.3.0-orig/libitm/configure.tgt gcc-6.3.0/libitm/configure.tgt ---- gcc-6.3.0-orig/libitm/configure.tgt 2017-01-24 12:03:26.433116600 +0300 -+++ gcc-6.3.0/libitm/configure.tgt 2017-01-24 12:04:11.237404000 +0300 -@@ -141,7 +141,7 @@ - *-*-gnu* | *-*-k*bsd*-gnu \ - | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* \ - | *-*-solaris2* | *-*-sysv4* | *-*-hpux11* \ -- | *-*-darwin* | *-*-aix* | *-*-dragonfly* | *-*-cygwin*) -+ | *-*-darwin* | *-*-aix* | *-*-dragonfly* | *-*-cygwin* | *-*-msys*) - # POSIX system. The OS is supported. - ;; - -diff -Naur gcc-6.3.0-orig/libmpx/configure gcc-6.3.0/libmpx/configure ---- gcc-6.3.0-orig/libmpx/configure 2015-07-16 11:36:02.000000000 +0300 -+++ gcc-6.3.0/libmpx/configure 2017-01-24 12:04:11.424604300 +0300 -@@ -5770,7 +5770,7 @@ - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -6112,7 +6112,7 @@ - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -6692,7 +6692,7 @@ - aix*) - symcode='[BCDT]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; - hpux*) -@@ -8305,7 +8305,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -8387,7 +8387,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' -@@ -8849,7 +8849,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -8964,7 +8964,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' -@@ -9395,7 +9395,7 @@ - export_dynamic_flag_spec=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -10296,14 +10296,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -10327,6 +10327,12 @@ - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; -+ msys*) -+ # MSYS DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -10963,7 +10969,7 @@ - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; -diff -Naur gcc-6.3.0-orig/libobjc/configure gcc-6.3.0/libobjc/configure ---- gcc-6.3.0-orig/libobjc/configure 2016-12-21 10:53:23.000000000 +0300 -+++ gcc-6.3.0/libobjc/configure 2017-01-24 12:04:11.440204400 +0300 -@@ -3324,7 +3324,7 @@ - - - case $host in -- *-cygwin* | *-mingw*) -+ *-cygwin* | *-msys* | *-mingw*) - # 'host' will be top-level target in the case of a target lib, - # we must compare to with_cross_host to decide if this is a native - # or cross-compiler and select where to install dlls appropriately. -@@ -3347,7 +3347,7 @@ - # Darwin needs -single_module when linking libobjc - extra_ldflags_libobjc='$(lt_host_flags) -Wl,-single_module' - ;; -- *-cygwin*|*-mingw*) -+ *-cygwin*|*-msys*|*-mingw*) - # Tell libtool to build DLLs on Windows - extra_ldflags_libobjc='$(lt_host_flags)' - ;; -@@ -3754,7 +3754,7 @@ - enable_win32_dll=yes - - case $host in --*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) -+*-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. - set dummy ${ac_tool_prefix}as; ac_word=$2 -@@ -4797,7 +4797,7 @@ - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -5136,7 +5136,7 @@ - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -5758,7 +5758,7 @@ - aix*) - symcode='[BCDT]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; - hpux*) -@@ -7646,7 +7646,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -7728,7 +7728,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' -@@ -8190,7 +8190,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -8305,7 +8305,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' -@@ -8742,7 +8742,7 @@ - export_dynamic_flag_spec=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -9646,14 +9646,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -9677,6 +9677,12 @@ - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -10316,7 +10322,7 @@ - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; -diff -Naur gcc-6.3.0-orig/libobjc/configure.ac gcc-6.3.0/libobjc/configure.ac ---- gcc-6.3.0-orig/libobjc/configure.ac 2016-01-04 17:30:50.000000000 +0300 -+++ gcc-6.3.0/libobjc/configure.ac 2017-01-24 12:04:11.440204400 +0300 -@@ -164,7 +164,7 @@ - # Darwin needs -single_module when linking libobjc - extra_ldflags_libobjc='$(lt_host_flags) -Wl,-single_module' - ;; -- *-cygwin*|*-mingw*) -+ *-cygwin*|*-msys*|*-mingw*) - # Tell libtool to build DLLs on Windows - extra_ldflags_libobjc='$(lt_host_flags)' - ;; -diff -Naur gcc-6.3.0-orig/liboffloadmic/configure gcc-6.3.0/liboffloadmic/configure ---- gcc-6.3.0-orig/liboffloadmic/configure 2015-07-24 21:20:44.000000000 +0300 -+++ gcc-6.3.0/liboffloadmic/configure 2017-01-24 12:04:11.455804400 +0300 -@@ -5643,7 +5643,7 @@ - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -5985,7 +5985,7 @@ - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -6565,7 +6565,7 @@ - aix*) - symcode='[BCDT]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; - hpux*) -@@ -8179,7 +8179,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -8261,7 +8261,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' -@@ -8723,7 +8723,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -8838,7 +8838,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' -@@ -9269,7 +9269,7 @@ - export_dynamic_flag_spec=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -10170,14 +10170,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -10201,6 +10201,12 @@ - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; -+ msys*) -+ # MSYS DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -10837,7 +10843,7 @@ - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; -@@ -12059,7 +12065,7 @@ - esac - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_CXX='-L$libdir' -@@ -13028,7 +13034,7 @@ - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; -- mingw* | cygwin* | os2* | pw32* | cegcc*) -+ mingw* | cygwin* | msys* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -13568,7 +13574,7 @@ - pw32*) - export_symbols_cmds_CXX="$ltdll_cmds" - ;; -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' - ;; - *) -@@ -13832,14 +13838,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -13862,6 +13868,11 @@ - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - - ;; -+ msys*) -+ # MSYS DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -diff -Naur gcc-6.3.0-orig/liboffloadmic/plugin/configure gcc-6.3.0/liboffloadmic/plugin/configure ---- gcc-6.3.0-orig/liboffloadmic/plugin/configure 2015-05-13 14:10:33.000000000 +0300 -+++ gcc-6.3.0/liboffloadmic/plugin/configure 2017-01-24 12:04:11.471404400 +0300 -@@ -5081,7 +5081,7 @@ - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -5423,7 +5423,7 @@ - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -6003,7 +6003,7 @@ - aix*) - symcode='[BCDT]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; - hpux*) -@@ -7886,7 +7886,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -7968,7 +7968,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' -@@ -8430,7 +8430,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -8545,7 +8545,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' -@@ -8976,7 +8976,7 @@ - export_dynamic_flag_spec=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -9877,14 +9877,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -9908,6 +9908,12 @@ - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; -+ msys*) -+ # MSYS DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -10544,7 +10550,7 @@ - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; -@@ -11766,7 +11772,7 @@ - esac - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_CXX='-L$libdir' -@@ -12735,7 +12741,7 @@ - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; -- mingw* | cygwin* | os2* | pw32* | cegcc*) -+ mingw* | cygwin* | msys* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -13275,7 +13281,7 @@ - pw32*) - export_symbols_cmds_CXX="$ltdll_cmds" - ;; -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' - ;; - *) -@@ -13539,14 +13545,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -13569,6 +13575,11 @@ - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - - ;; -+ msys*) -+ # MSYS DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -diff -Naur gcc-6.3.0-orig/libquadmath/configure gcc-6.3.0/libquadmath/configure ---- gcc-6.3.0-orig/libquadmath/configure 2015-05-13 14:27:43.000000000 +0300 -+++ gcc-6.3.0/libquadmath/configure 2017-01-24 12:04:11.487004500 +0300 -@@ -5073,7 +5073,7 @@ - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -5415,7 +5415,7 @@ - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -5995,7 +5995,7 @@ - aix*) - symcode='[BCDT]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; - hpux*) -@@ -7616,7 +7616,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -7698,7 +7698,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' -@@ -8160,7 +8160,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -8275,7 +8275,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' -@@ -8712,7 +8712,7 @@ - export_dynamic_flag_spec=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -9616,14 +9616,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -9647,6 +9647,12 @@ - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -10286,7 +10292,7 @@ - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; -@@ -10915,7 +10921,7 @@ - - - case $host in -- *-cygwin* | *-mingw*) -+ *-cygwin* | *-msys* | *-mingw*) - # 'host' will be top-level target in the case of a target lib, - # we must compare to with_cross_host to decide if this is a native - # or cross-compiler and select where to install dlls appropriately. -diff -Naur gcc-6.3.0-orig/libsanitizer/configure gcc-6.3.0/libsanitizer/configure ---- gcc-6.3.0-orig/libsanitizer/configure 2016-12-21 10:54:01.000000000 +0300 -+++ gcc-6.3.0/libsanitizer/configure 2017-01-24 12:04:11.502604500 +0300 -@@ -6567,7 +6567,7 @@ - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -6909,7 +6909,7 @@ - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -7489,7 +7489,7 @@ - aix*) - symcode='[BCDT]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; - hpux*) -@@ -9103,7 +9103,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -9185,7 +9185,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' -@@ -9647,7 +9647,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -9762,7 +9762,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' -@@ -10193,7 +10193,7 @@ - export_dynamic_flag_spec=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -11094,14 +11094,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -11125,6 +11125,12 @@ - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -11761,7 +11767,7 @@ - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; -@@ -12983,7 +12989,7 @@ - esac - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_CXX='-L$libdir' -@@ -13952,7 +13958,7 @@ - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; -- mingw* | cygwin* | os2* | pw32* | cegcc*) -+ mingw* | cygwin* | msys* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -14492,7 +14498,7 @@ - pw32*) - export_symbols_cmds_CXX="$ltdll_cmds" - ;; -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' - ;; - *) -@@ -14756,14 +14762,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -14786,6 +14792,11 @@ - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -diff -Naur gcc-6.3.0-orig/libssp/configure gcc-6.3.0/libssp/configure ---- gcc-6.3.0-orig/libssp/configure 2015-05-13 14:12:39.000000000 +0300 -+++ gcc-6.3.0/libssp/configure 2017-01-24 12:04:11.502604500 +0300 -@@ -5172,7 +5172,7 @@ - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -5514,7 +5514,7 @@ - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -6094,7 +6094,7 @@ - aix*) - symcode='[BCDT]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; - hpux*) -@@ -7715,7 +7715,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -7797,7 +7797,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' -@@ -8259,7 +8259,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -8374,7 +8374,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' -@@ -8811,7 +8811,7 @@ - export_dynamic_flag_spec=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -9715,14 +9715,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -9746,6 +9746,12 @@ - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -10385,7 +10391,7 @@ - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; -@@ -11014,7 +11020,7 @@ - - - case $host in -- *-cygwin* | *-mingw*) -+ *-cygwin* | *-msys* | *-mingw*) - # 'host' will be top-level target in the case of a target lib, - # we must compare to with_cross_host to decide if this is a native - # or cross-compiler and select where to install dlls appropriately. -diff -Naur gcc-6.3.0-orig/libstdc++-v3/acinclude.m4 gcc-6.3.0/libstdc++-v3/acinclude.m4 ---- gcc-6.3.0-orig/libstdc++-v3/acinclude.m4 2017-01-24 12:04:07.333396900 +0300 -+++ gcc-6.3.0/libstdc++-v3/acinclude.m4 2017-01-24 12:04:11.502604500 +0300 -@@ -643,7 +643,7 @@ - if $GLIBCXX_IS_NATIVE && test $is_hosted = yes && - test $enable_symvers != no; then - case "$host" in -- *-*-cygwin*) -+ *-*-cygwin* | *-*-msys*) - enable_abi_check=no ;; - *) - enable_abi_check=yes ;; -@@ -1428,7 +1428,7 @@ - if test x"$enable_libstdcxx_time" = x"auto"; then - - case "${target_os}" in -- cygwin*) -+ cygwin* | msys*) - ac_has_clock_monotonic=yes - ac_has_clock_realtime=yes - ac_has_nanosleep=yes -@@ -2761,7 +2761,7 @@ - vtv_cygmin=no - if test $enable_vtable_verify = yes; then - case ${target_os} in -- cygwin*|mingw32*) -+ cygwin*|msys*|mingw32*) - VTV_CXXFLAGS="-fvtable-verify=std -Wl,-lvtv,-u_vtable_map_vars_start,-u_vtable_map_vars_end" - VTV_CXXLINKFLAGS="-L${toplevel_builddir}/libvtv/.libs -Wl,--rpath -Wl,${toplevel_builddir}/libvtv/.libs" - vtv_cygmin=yes -diff -Naur gcc-7.3.0/libstdc++-v3/configure.orig gcc-7.3.0/libstdc++-v3/configure ---- gcc-7.3.0/libstdc++-v3/configure.orig 2018-04-15 06:04:48.198412400 -0400 -+++ gcc-7.3.0/libstdc++-v3/configure 2018-04-15 06:18:53.065279400 -0400 -@@ -5977,7 +5977,7 @@ else - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -6319,7 +6319,7 @@ bsdi[45]*) - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -6899,7 +6899,7 @@ case $host_os in - aix*) - symcode='[BCDT]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; - hpux*) -@@ -8649,7 +8649,7 @@ $as_echo_n "checking for $compiler optio - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -8731,7 +8731,7 @@ $as_echo_n "checking for $compiler optio - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' -@@ -9193,7 +9193,7 @@ $as_echo_n "checking whether the $compil - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -9308,7 +9308,7 @@ _LT_EOF - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' -@@ -9745,7 +9745,7 @@ if test -z "$aix_libpath"; then aix_libp - export_dynamic_flag_spec=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -10649,14 +10649,14 @@ bsdi[45]*) - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -10680,6 +10680,12 @@ cygwin* | mingw* | pw32* | cegcc*) - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -11319,7 +11325,7 @@ else - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; -@@ -12562,7 +12568,7 @@ if test -z "$aix_libpath"; then aix_libp - esac - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_CXX='-L$libdir' -@@ -13531,7 +13537,7 @@ $as_echo_n "checking for $compiler optio - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; -- mingw* | cygwin* | os2* | pw32* | cegcc*) -+ mingw* | msys* | cygwin* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -14071,7 +14077,7 @@ $as_echo_n "checking whether the $compil - pw32*) - export_symbols_cmds_CXX="$ltdll_cmds" - ;; -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' - ;; - *) -@@ -14335,14 +14341,14 @@ bsdi[45]*) - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -14365,6 +14371,11 @@ cygwin* | mingw* | pw32* | cegcc*) - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -14973,7 +14984,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - case $host in -- *-cygwin* | *-mingw*) -+ *-cygwin* | *-msys* | *-mingw*) - # 'host' will be top-level target in the case of a target lib, - # we must compare to with_cross_host to decide if this is a native - # or cross-compiler and select where to install dlls appropriately. -@@ -18131,7 +18142,7 @@ $as_echo "$enable_vtable_verify" >&6; } - vtv_cygmin=no - if test $enable_vtable_verify = yes; then - case ${target_os} in -- cygwin*|mingw32*) -+ cygwin*|msys*|mingw32*) - VTV_CXXFLAGS="-fvtable-verify=std -Wl,-lvtv,-u_vtable_map_vars_start,-u_vtable_map_vars_end" - VTV_CXXLINKFLAGS="-L${toplevel_builddir}/libvtv/.libs -Wl,--rpath -Wl,${toplevel_builddir}/libvtv/.libs" - vtv_cygmin=yes -@@ -20523,7 +20534,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - if test x"$enable_libstdcxx_time" = x"auto"; then - - case "${target_os}" in -- cygwin*) -+ cygwin* | msys*) - ac_has_clock_monotonic=yes - ac_has_clock_realtime=yes - ac_has_nanosleep=yes -@@ -53751,7 +53762,7 @@ $as_echo "#define HAVE_TLS 1" >>confdefs - ;; - esac - ;; -- *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-cygwin*) -+ *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-cygwin* | *-msys*) - - # All these tests are for C++; save the language and the compiler flags. - # The CXXFLAGS thing is suspicious, but based on similar bits previously -@@ -60167,6 +60178,5867 @@ _ACEOF - fi - - ;; -+ *-cygwin* | *-msys*) -+ -+ # All these tests are for C++; save the language and the compiler flags. -+ # The CXXFLAGS thing is suspicious, but based on similar bits previously -+ # found in GLIBCXX_CONFIGURE. -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ ac_test_CXXFLAGS="${CXXFLAGS+set}" -+ ac_save_CXXFLAGS="$CXXFLAGS" -+ -+ # Check for maintainer-mode bits. -+ if test x"$USE_MAINTAINER_MODE" = xno; then -+ WERROR='' -+ else -+ WERROR='-Werror' -+ fi -+ -+ # Check for -ffunction-sections -fdata-sections -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ that supports -ffunction-sections -fdata-sections" >&5 -+$as_echo_n "checking for g++ that supports -ffunction-sections -fdata-sections... " >&6; } -+ CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections' -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+int foo; void bar() { }; -+int -+main () -+{ -+ -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ ac_fdsections=yes -+else -+ ac_fdsections=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ if test "$ac_test_CXXFLAGS" = set; then -+ CXXFLAGS="$ac_save_CXXFLAGS" -+ else -+ # this is the suspicious part -+ CXXFLAGS='' -+ fi -+ if test x"$ac_fdsections" = x"yes"; then -+ SECTION_FLAGS='-ffunction-sections -fdata-sections' -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5 -+$as_echo "$ac_fdsections" >&6; } -+ -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+ -+ -+ -+ # If we're not using GNU ld, then there's no point in even trying these -+ # tests. Check for that first. We should have already tested for gld -+ # by now (in libtool), but require it now just to be safe... -+ test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' -+ test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' -+ -+ -+ -+ # The name set by libtool depends on the version of libtool. Shame on us -+ # for depending on an impl detail, but c'est la vie. Older versions used -+ # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on -+ # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually -+ # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't -+ # set (hence we're using an older libtool), then set it. -+ if test x${with_gnu_ld+set} != xset; then -+ if test x${ac_cv_prog_gnu_ld+set} != xset; then -+ # We got through "ac_require(ac_prog_ld)" and still not set? Huh? -+ with_gnu_ld=no -+ else -+ with_gnu_ld=$ac_cv_prog_gnu_ld -+ fi -+ fi -+ -+ # Start by getting the version number. I think the libtool test already -+ # does some of this, but throws away the result. -+ glibcxx_ld_is_gold=no -+ if test x"$with_gnu_ld" = x"yes"; then -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5 -+$as_echo_n "checking for ld version... " >&6; } -+ -+ if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then -+ glibcxx_ld_is_gold=yes -+ fi -+ ldver=`$LD --version 2>/dev/null | -+ sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'` -+ -+ glibcxx_gnu_ld_version=`echo $ldver | \ -+ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5 -+$as_echo "$glibcxx_gnu_ld_version" >&6; } -+ fi -+ -+ # Set --gc-sections. -+ glibcxx_have_gc_sections=no -+ if test "$glibcxx_ld_is_gold" = "yes"; then -+ if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then -+ glibcxx_have_gc_sections=yes -+ fi -+ else -+ glibcxx_gcsections_min_ld=21602 -+ if test x"$with_gnu_ld" = x"yes" && -+ test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then -+ glibcxx_have_gc_sections=yes -+ fi -+ fi -+ if test "$glibcxx_have_gc_sections" = "yes"; then -+ # Sufficiently young GNU ld it is! Joy and bunny rabbits! -+ # NB: This flag only works reliably after 2.16.1. Configure tests -+ # for this are difficult, so hard wire a value that should work. -+ -+ ac_test_CFLAGS="${CFLAGS+set}" -+ ac_save_CFLAGS="$CFLAGS" -+ CFLAGS='-Wl,--gc-sections' -+ -+ # Check for -Wl,--gc-sections -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5 -+$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; } -+ if test x$gcc_no_link = xyes; then -+ as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 -+fi -+cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+ int one(void) { return 1; } -+ int two(void) { return 2; } -+ -+int -+main () -+{ -+ two(); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_c_try_link "$LINENO"; then : -+ ac_gcsections=yes -+else -+ ac_gcsections=no -+fi -+rm -f core conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext -+ if test "$ac_gcsections" = "yes"; then -+ rm -f conftest.c -+ touch conftest.c -+ if $CC -c conftest.c; then -+ if $LD --gc-sections -o conftest conftest.o 2>&1 | \ -+ grep "Warning: gc-sections option ignored" > /dev/null; then -+ ac_gcsections=no -+ fi -+ fi -+ rm -f conftest.c conftest.o conftest -+ fi -+ if test "$ac_gcsections" = "yes"; then -+ SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5 -+$as_echo "$ac_gcsections" >&6; } -+ -+ if test "$ac_test_CFLAGS" = set; then -+ CFLAGS="$ac_save_CFLAGS" -+ else -+ # this is the suspicious part -+ CFLAGS='' -+ fi -+ fi -+ -+ # Set -z,relro. -+ # Note this is only for shared objects. -+ ac_ld_relro=no -+ if test x"$with_gnu_ld" = x"yes"; then -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5 -+$as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; } -+ cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"` -+ if test -n "$cxx_z_relo"; then -+ OPT_LDFLAGS="-Wl,-z,relro" -+ ac_ld_relro=yes -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5 -+$as_echo "$ac_ld_relro" >&6; } -+ fi -+ -+ # Set linker optimization flags. -+ if test x"$with_gnu_ld" = x"yes"; then -+ OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" -+ fi -+ -+ -+ -+ -+ -+ ac_test_CXXFLAGS="${CXXFLAGS+set}" -+ ac_save_CXXFLAGS="$CXXFLAGS" -+ CXXFLAGS='-fno-builtin -D_GNU_SOURCE' -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 -+$as_echo_n "checking for sin in -lm... " >&6; } -+if test "${ac_cv_lib_m_sin+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ ac_check_lib_save_LIBS=$LIBS -+LIBS="-lm $LIBS" -+if test x$gcc_no_link = xyes; then -+ as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 -+fi -+cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+ -+/* Override any GCC internal prototype to avoid an error. -+ Use char because int might match the return type of a GCC -+ builtin and then its argument prototype would still apply. */ -+#ifdef __cplusplus -+extern "C" -+#endif -+char sin (); -+int -+main () -+{ -+return sin (); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_c_try_link "$LINENO"; then : -+ ac_cv_lib_m_sin=yes -+else -+ ac_cv_lib_m_sin=no -+fi -+rm -f core conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext -+LIBS=$ac_check_lib_save_LIBS -+fi -+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 -+$as_echo "$ac_cv_lib_m_sin" >&6; } -+if test "x$ac_cv_lib_m_sin" = x""yes; then : -+ libm="-lm" -+fi -+ -+ ac_save_LIBS="$LIBS" -+ LIBS="$LIBS $libm" -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5 -+$as_echo_n "checking for isinf declaration... " >&6; } -+ if test x${glibcxx_cv_func_isinf_use+set} != xset; then -+ if test "${glibcxx_cv_func_isinf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ isinf(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_isinf_use=yes -+else -+ glibcxx_cv_func_isinf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5 -+$as_echo "$glibcxx_cv_func_isinf_use" >&6; } -+ -+ if test x$glibcxx_cv_func_isinf_use = x"yes"; then -+ for ac_func in isinf -+do : -+ ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf" -+if test "x$ac_cv_func_isinf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_ISINF 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinf declaration" >&5 -+$as_echo_n "checking for _isinf declaration... " >&6; } -+ if test x${glibcxx_cv_func__isinf_use+set} != xset; then -+ if test "${glibcxx_cv_func__isinf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ _isinf(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__isinf_use=yes -+else -+ glibcxx_cv_func__isinf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinf_use" >&5 -+$as_echo "$glibcxx_cv_func__isinf_use" >&6; } -+ -+ if test x$glibcxx_cv_func__isinf_use = x"yes"; then -+ for ac_func in _isinf -+do : -+ ac_fn_c_check_func "$LINENO" "_isinf" "ac_cv_func__isinf" -+if test "x$ac_cv_func__isinf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__ISINF 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5 -+$as_echo_n "checking for isnan declaration... " >&6; } -+ if test x${glibcxx_cv_func_isnan_use+set} != xset; then -+ if test "${glibcxx_cv_func_isnan_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ isnan(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_isnan_use=yes -+else -+ glibcxx_cv_func_isnan_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5 -+$as_echo "$glibcxx_cv_func_isnan_use" >&6; } -+ -+ if test x$glibcxx_cv_func_isnan_use = x"yes"; then -+ for ac_func in isnan -+do : -+ ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan" -+if test "x$ac_cv_func_isnan" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_ISNAN 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnan declaration" >&5 -+$as_echo_n "checking for _isnan declaration... " >&6; } -+ if test x${glibcxx_cv_func__isnan_use+set} != xset; then -+ if test "${glibcxx_cv_func__isnan_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ _isnan(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__isnan_use=yes -+else -+ glibcxx_cv_func__isnan_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnan_use" >&5 -+$as_echo "$glibcxx_cv_func__isnan_use" >&6; } -+ -+ if test x$glibcxx_cv_func__isnan_use = x"yes"; then -+ for ac_func in _isnan -+do : -+ ac_fn_c_check_func "$LINENO" "_isnan" "ac_cv_func__isnan" -+if test "x$ac_cv_func__isnan" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__ISNAN 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5 -+$as_echo_n "checking for finite declaration... " >&6; } -+ if test x${glibcxx_cv_func_finite_use+set} != xset; then -+ if test "${glibcxx_cv_func_finite_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ finite(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_finite_use=yes -+else -+ glibcxx_cv_func_finite_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5 -+$as_echo "$glibcxx_cv_func_finite_use" >&6; } -+ -+ if test x$glibcxx_cv_func_finite_use = x"yes"; then -+ for ac_func in finite -+do : -+ ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite" -+if test "x$ac_cv_func_finite" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_FINITE 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finite declaration" >&5 -+$as_echo_n "checking for _finite declaration... " >&6; } -+ if test x${glibcxx_cv_func__finite_use+set} != xset; then -+ if test "${glibcxx_cv_func__finite_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ _finite(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__finite_use=yes -+else -+ glibcxx_cv_func__finite_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finite_use" >&5 -+$as_echo "$glibcxx_cv_func__finite_use" >&6; } -+ -+ if test x$glibcxx_cv_func__finite_use = x"yes"; then -+ for ac_func in _finite -+do : -+ ac_fn_c_check_func "$LINENO" "_finite" "ac_cv_func__finite" -+if test "x$ac_cv_func__finite" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__FINITE 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5 -+$as_echo_n "checking for sincos declaration... " >&6; } -+ if test x${glibcxx_cv_func_sincos_use+set} != xset; then -+ if test "${glibcxx_cv_func_sincos_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ sincos(0, 0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_sincos_use=yes -+else -+ glibcxx_cv_func_sincos_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5 -+$as_echo "$glibcxx_cv_func_sincos_use" >&6; } -+ -+ if test x$glibcxx_cv_func_sincos_use = x"yes"; then -+ for ac_func in sincos -+do : -+ ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos" -+if test "x$ac_cv_func_sincos" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_SINCOS 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincos declaration" >&5 -+$as_echo_n "checking for _sincos declaration... " >&6; } -+ if test x${glibcxx_cv_func__sincos_use+set} != xset; then -+ if test "${glibcxx_cv_func__sincos_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ _sincos(0, 0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__sincos_use=yes -+else -+ glibcxx_cv_func__sincos_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincos_use" >&5 -+$as_echo "$glibcxx_cv_func__sincos_use" >&6; } -+ -+ if test x$glibcxx_cv_func__sincos_use = x"yes"; then -+ for ac_func in _sincos -+do : -+ ac_fn_c_check_func "$LINENO" "_sincos" "ac_cv_func__sincos" -+if test "x$ac_cv_func__sincos" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__SINCOS 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5 -+$as_echo_n "checking for fpclass declaration... " >&6; } -+ if test x${glibcxx_cv_func_fpclass_use+set} != xset; then -+ if test "${glibcxx_cv_func_fpclass_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ fpclass(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_fpclass_use=yes -+else -+ glibcxx_cv_func_fpclass_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5 -+$as_echo "$glibcxx_cv_func_fpclass_use" >&6; } -+ -+ if test x$glibcxx_cv_func_fpclass_use = x"yes"; then -+ for ac_func in fpclass -+do : -+ ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass" -+if test "x$ac_cv_func_fpclass" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_FPCLASS 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fpclass declaration" >&5 -+$as_echo_n "checking for _fpclass declaration... " >&6; } -+ if test x${glibcxx_cv_func__fpclass_use+set} != xset; then -+ if test "${glibcxx_cv_func__fpclass_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ _fpclass(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__fpclass_use=yes -+else -+ glibcxx_cv_func__fpclass_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fpclass_use" >&5 -+$as_echo "$glibcxx_cv_func__fpclass_use" >&6; } -+ -+ if test x$glibcxx_cv_func__fpclass_use = x"yes"; then -+ for ac_func in _fpclass -+do : -+ ac_fn_c_check_func "$LINENO" "_fpclass" "ac_cv_func__fpclass" -+if test "x$ac_cv_func__fpclass" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__FPCLASS 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5 -+$as_echo_n "checking for qfpclass declaration... " >&6; } -+ if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then -+ if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ qfpclass(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_qfpclass_use=yes -+else -+ glibcxx_cv_func_qfpclass_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5 -+$as_echo "$glibcxx_cv_func_qfpclass_use" >&6; } -+ -+ if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then -+ for ac_func in qfpclass -+do : -+ ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass" -+if test "x$ac_cv_func_qfpclass" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_QFPCLASS 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _qfpclass declaration" >&5 -+$as_echo_n "checking for _qfpclass declaration... " >&6; } -+ if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then -+ if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ _qfpclass(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__qfpclass_use=yes -+else -+ glibcxx_cv_func__qfpclass_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__qfpclass_use" >&5 -+$as_echo "$glibcxx_cv_func__qfpclass_use" >&6; } -+ -+ if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then -+ for ac_func in _qfpclass -+do : -+ ac_fn_c_check_func "$LINENO" "_qfpclass" "ac_cv_func__qfpclass" -+if test "x$ac_cv_func__qfpclass" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__QFPCLASS 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5 -+$as_echo_n "checking for hypot declaration... " >&6; } -+ if test x${glibcxx_cv_func_hypot_use+set} != xset; then -+ if test "${glibcxx_cv_func_hypot_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ hypot(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_hypot_use=yes -+else -+ glibcxx_cv_func_hypot_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5 -+$as_echo "$glibcxx_cv_func_hypot_use" >&6; } -+ -+ if test x$glibcxx_cv_func_hypot_use = x"yes"; then -+ for ac_func in hypot -+do : -+ ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot" -+if test "x$ac_cv_func_hypot" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_HYPOT 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypot declaration" >&5 -+$as_echo_n "checking for _hypot declaration... " >&6; } -+ if test x${glibcxx_cv_func__hypot_use+set} != xset; then -+ if test "${glibcxx_cv_func__hypot_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ _hypot(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__hypot_use=yes -+else -+ glibcxx_cv_func__hypot_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypot_use" >&5 -+$as_echo "$glibcxx_cv_func__hypot_use" >&6; } -+ -+ if test x$glibcxx_cv_func__hypot_use = x"yes"; then -+ for ac_func in _hypot -+do : -+ ac_fn_c_check_func "$LINENO" "_hypot" "ac_cv_func__hypot" -+if test "x$ac_cv_func__hypot" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__HYPOT 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5 -+$as_echo_n "checking for float trig functions... " >&6; } -+ if test "${glibcxx_cv_func_float_trig_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_float_trig_use=yes -+else -+ glibcxx_cv_func_float_trig_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+fi -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5 -+$as_echo "$glibcxx_cv_func_float_trig_use" >&6; } -+ if test x$glibcxx_cv_func_float_trig_use = x"yes"; then -+ for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf -+do : -+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -+eval as_val=\$$as_ac_var -+ if test "x$as_val" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _float trig functions" >&5 -+$as_echo_n "checking for _float trig functions... " >&6; } -+ if test "${glibcxx_cv_func__float_trig_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+_acosf (0); _asinf (0); _atanf (0); _cosf (0); _sinf (0); _tanf (0); _coshf (0); _sinhf (0); _tanhf (0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__float_trig_use=yes -+else -+ glibcxx_cv_func__float_trig_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+fi -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__float_trig_use" >&5 -+$as_echo "$glibcxx_cv_func__float_trig_use" >&6; } -+ if test x$glibcxx_cv_func__float_trig_use = x"yes"; then -+ for ac_func in _acosf _asinf _atanf _cosf _sinf _tanf _coshf _sinhf _tanhf -+do : -+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -+eval as_val=\$$as_ac_var -+ if test "x$as_val" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5 -+$as_echo_n "checking for float round functions... " >&6; } -+ if test "${glibcxx_cv_func_float_round_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ceilf (0); floorf (0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_float_round_use=yes -+else -+ glibcxx_cv_func_float_round_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+fi -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5 -+$as_echo "$glibcxx_cv_func_float_round_use" >&6; } -+ if test x$glibcxx_cv_func_float_round_use = x"yes"; then -+ for ac_func in ceilf floorf -+do : -+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -+eval as_val=\$$as_ac_var -+ if test "x$as_val" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _float round functions" >&5 -+$as_echo_n "checking for _float round functions... " >&6; } -+ if test "${glibcxx_cv_func__float_round_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+_ceilf (0); _floorf (0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__float_round_use=yes -+else -+ glibcxx_cv_func__float_round_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+fi -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__float_round_use" >&5 -+$as_echo "$glibcxx_cv_func__float_round_use" >&6; } -+ if test x$glibcxx_cv_func__float_round_use = x"yes"; then -+ for ac_func in _ceilf _floorf -+do : -+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -+eval as_val=\$$as_ac_var -+ if test "x$as_val" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5 -+$as_echo_n "checking for expf declaration... " >&6; } -+ if test x${glibcxx_cv_func_expf_use+set} != xset; then -+ if test "${glibcxx_cv_func_expf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ expf(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_expf_use=yes -+else -+ glibcxx_cv_func_expf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5 -+$as_echo "$glibcxx_cv_func_expf_use" >&6; } -+ -+ if test x$glibcxx_cv_func_expf_use = x"yes"; then -+ for ac_func in expf -+do : -+ ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf" -+if test "x$ac_cv_func_expf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_EXPF 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _expf declaration" >&5 -+$as_echo_n "checking for _expf declaration... " >&6; } -+ if test x${glibcxx_cv_func__expf_use+set} != xset; then -+ if test "${glibcxx_cv_func__expf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ _expf(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__expf_use=yes -+else -+ glibcxx_cv_func__expf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__expf_use" >&5 -+$as_echo "$glibcxx_cv_func__expf_use" >&6; } -+ -+ if test x$glibcxx_cv_func__expf_use = x"yes"; then -+ for ac_func in _expf -+do : -+ ac_fn_c_check_func "$LINENO" "_expf" "ac_cv_func__expf" -+if test "x$ac_cv_func__expf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__EXPF 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5 -+$as_echo_n "checking for isnanf declaration... " >&6; } -+ if test x${glibcxx_cv_func_isnanf_use+set} != xset; then -+ if test "${glibcxx_cv_func_isnanf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ isnanf(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_isnanf_use=yes -+else -+ glibcxx_cv_func_isnanf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5 -+$as_echo "$glibcxx_cv_func_isnanf_use" >&6; } -+ -+ if test x$glibcxx_cv_func_isnanf_use = x"yes"; then -+ for ac_func in isnanf -+do : -+ ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf" -+if test "x$ac_cv_func_isnanf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_ISNANF 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnanf declaration" >&5 -+$as_echo_n "checking for _isnanf declaration... " >&6; } -+ if test x${glibcxx_cv_func__isnanf_use+set} != xset; then -+ if test "${glibcxx_cv_func__isnanf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ _isnanf(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__isnanf_use=yes -+else -+ glibcxx_cv_func__isnanf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnanf_use" >&5 -+$as_echo "$glibcxx_cv_func__isnanf_use" >&6; } -+ -+ if test x$glibcxx_cv_func__isnanf_use = x"yes"; then -+ for ac_func in _isnanf -+do : -+ ac_fn_c_check_func "$LINENO" "_isnanf" "ac_cv_func__isnanf" -+if test "x$ac_cv_func__isnanf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__ISNANF 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5 -+$as_echo_n "checking for isinff declaration... " >&6; } -+ if test x${glibcxx_cv_func_isinff_use+set} != xset; then -+ if test "${glibcxx_cv_func_isinff_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ isinff(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_isinff_use=yes -+else -+ glibcxx_cv_func_isinff_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5 -+$as_echo "$glibcxx_cv_func_isinff_use" >&6; } -+ -+ if test x$glibcxx_cv_func_isinff_use = x"yes"; then -+ for ac_func in isinff -+do : -+ ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff" -+if test "x$ac_cv_func_isinff" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_ISINFF 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinff declaration" >&5 -+$as_echo_n "checking for _isinff declaration... " >&6; } -+ if test x${glibcxx_cv_func__isinff_use+set} != xset; then -+ if test "${glibcxx_cv_func__isinff_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ _isinff(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__isinff_use=yes -+else -+ glibcxx_cv_func__isinff_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinff_use" >&5 -+$as_echo "$glibcxx_cv_func__isinff_use" >&6; } -+ -+ if test x$glibcxx_cv_func__isinff_use = x"yes"; then -+ for ac_func in _isinff -+do : -+ ac_fn_c_check_func "$LINENO" "_isinff" "ac_cv_func__isinff" -+if test "x$ac_cv_func__isinff" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__ISINFF 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5 -+$as_echo_n "checking for atan2f declaration... " >&6; } -+ if test x${glibcxx_cv_func_atan2f_use+set} != xset; then -+ if test "${glibcxx_cv_func_atan2f_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ atan2f(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_atan2f_use=yes -+else -+ glibcxx_cv_func_atan2f_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5 -+$as_echo "$glibcxx_cv_func_atan2f_use" >&6; } -+ -+ if test x$glibcxx_cv_func_atan2f_use = x"yes"; then -+ for ac_func in atan2f -+do : -+ ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f" -+if test "x$ac_cv_func_atan2f" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_ATAN2F 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _atan2f declaration" >&5 -+$as_echo_n "checking for _atan2f declaration... " >&6; } -+ if test x${glibcxx_cv_func__atan2f_use+set} != xset; then -+ if test "${glibcxx_cv_func__atan2f_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ _atan2f(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__atan2f_use=yes -+else -+ glibcxx_cv_func__atan2f_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__atan2f_use" >&5 -+$as_echo "$glibcxx_cv_func__atan2f_use" >&6; } -+ -+ if test x$glibcxx_cv_func__atan2f_use = x"yes"; then -+ for ac_func in _atan2f -+do : -+ ac_fn_c_check_func "$LINENO" "_atan2f" "ac_cv_func__atan2f" -+if test "x$ac_cv_func__atan2f" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__ATAN2F 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5 -+$as_echo_n "checking for fabsf declaration... " >&6; } -+ if test x${glibcxx_cv_func_fabsf_use+set} != xset; then -+ if test "${glibcxx_cv_func_fabsf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ fabsf(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_fabsf_use=yes -+else -+ glibcxx_cv_func_fabsf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5 -+$as_echo "$glibcxx_cv_func_fabsf_use" >&6; } -+ -+ if test x$glibcxx_cv_func_fabsf_use = x"yes"; then -+ for ac_func in fabsf -+do : -+ ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf" -+if test "x$ac_cv_func_fabsf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_FABSF 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fabsf declaration" >&5 -+$as_echo_n "checking for _fabsf declaration... " >&6; } -+ if test x${glibcxx_cv_func__fabsf_use+set} != xset; then -+ if test "${glibcxx_cv_func__fabsf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ _fabsf(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__fabsf_use=yes -+else -+ glibcxx_cv_func__fabsf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fabsf_use" >&5 -+$as_echo "$glibcxx_cv_func__fabsf_use" >&6; } -+ -+ if test x$glibcxx_cv_func__fabsf_use = x"yes"; then -+ for ac_func in _fabsf -+do : -+ ac_fn_c_check_func "$LINENO" "_fabsf" "ac_cv_func__fabsf" -+if test "x$ac_cv_func__fabsf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__FABSF 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5 -+$as_echo_n "checking for fmodf declaration... " >&6; } -+ if test x${glibcxx_cv_func_fmodf_use+set} != xset; then -+ if test "${glibcxx_cv_func_fmodf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ fmodf(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_fmodf_use=yes -+else -+ glibcxx_cv_func_fmodf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5 -+$as_echo "$glibcxx_cv_func_fmodf_use" >&6; } -+ -+ if test x$glibcxx_cv_func_fmodf_use = x"yes"; then -+ for ac_func in fmodf -+do : -+ ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf" -+if test "x$ac_cv_func_fmodf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_FMODF 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fmodf declaration" >&5 -+$as_echo_n "checking for _fmodf declaration... " >&6; } -+ if test x${glibcxx_cv_func__fmodf_use+set} != xset; then -+ if test "${glibcxx_cv_func__fmodf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ _fmodf(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__fmodf_use=yes -+else -+ glibcxx_cv_func__fmodf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fmodf_use" >&5 -+$as_echo "$glibcxx_cv_func__fmodf_use" >&6; } -+ -+ if test x$glibcxx_cv_func__fmodf_use = x"yes"; then -+ for ac_func in _fmodf -+do : -+ ac_fn_c_check_func "$LINENO" "_fmodf" "ac_cv_func__fmodf" -+if test "x$ac_cv_func__fmodf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__FMODF 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5 -+$as_echo_n "checking for frexpf declaration... " >&6; } -+ if test x${glibcxx_cv_func_frexpf_use+set} != xset; then -+ if test "${glibcxx_cv_func_frexpf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ frexpf(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_frexpf_use=yes -+else -+ glibcxx_cv_func_frexpf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5 -+$as_echo "$glibcxx_cv_func_frexpf_use" >&6; } -+ -+ if test x$glibcxx_cv_func_frexpf_use = x"yes"; then -+ for ac_func in frexpf -+do : -+ ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf" -+if test "x$ac_cv_func_frexpf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_FREXPF 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _frexpf declaration" >&5 -+$as_echo_n "checking for _frexpf declaration... " >&6; } -+ if test x${glibcxx_cv_func__frexpf_use+set} != xset; then -+ if test "${glibcxx_cv_func__frexpf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ _frexpf(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__frexpf_use=yes -+else -+ glibcxx_cv_func__frexpf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__frexpf_use" >&5 -+$as_echo "$glibcxx_cv_func__frexpf_use" >&6; } -+ -+ if test x$glibcxx_cv_func__frexpf_use = x"yes"; then -+ for ac_func in _frexpf -+do : -+ ac_fn_c_check_func "$LINENO" "_frexpf" "ac_cv_func__frexpf" -+if test "x$ac_cv_func__frexpf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__FREXPF 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5 -+$as_echo_n "checking for hypotf declaration... " >&6; } -+ if test x${glibcxx_cv_func_hypotf_use+set} != xset; then -+ if test "${glibcxx_cv_func_hypotf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ hypotf(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_hypotf_use=yes -+else -+ glibcxx_cv_func_hypotf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5 -+$as_echo "$glibcxx_cv_func_hypotf_use" >&6; } -+ -+ if test x$glibcxx_cv_func_hypotf_use = x"yes"; then -+ for ac_func in hypotf -+do : -+ ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf" -+if test "x$ac_cv_func_hypotf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_HYPOTF 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypotf declaration" >&5 -+$as_echo_n "checking for _hypotf declaration... " >&6; } -+ if test x${glibcxx_cv_func__hypotf_use+set} != xset; then -+ if test "${glibcxx_cv_func__hypotf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ _hypotf(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__hypotf_use=yes -+else -+ glibcxx_cv_func__hypotf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypotf_use" >&5 -+$as_echo "$glibcxx_cv_func__hypotf_use" >&6; } -+ -+ if test x$glibcxx_cv_func__hypotf_use = x"yes"; then -+ for ac_func in _hypotf -+do : -+ ac_fn_c_check_func "$LINENO" "_hypotf" "ac_cv_func__hypotf" -+if test "x$ac_cv_func__hypotf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__HYPOTF 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5 -+$as_echo_n "checking for ldexpf declaration... " >&6; } -+ if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then -+ if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ ldexpf(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_ldexpf_use=yes -+else -+ glibcxx_cv_func_ldexpf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5 -+$as_echo "$glibcxx_cv_func_ldexpf_use" >&6; } -+ -+ if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then -+ for ac_func in ldexpf -+do : -+ ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf" -+if test "x$ac_cv_func_ldexpf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_LDEXPF 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ldexpf declaration" >&5 -+$as_echo_n "checking for _ldexpf declaration... " >&6; } -+ if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then -+ if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ _ldexpf(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__ldexpf_use=yes -+else -+ glibcxx_cv_func__ldexpf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__ldexpf_use" >&5 -+$as_echo "$glibcxx_cv_func__ldexpf_use" >&6; } -+ -+ if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then -+ for ac_func in _ldexpf -+do : -+ ac_fn_c_check_func "$LINENO" "_ldexpf" "ac_cv_func__ldexpf" -+if test "x$ac_cv_func__ldexpf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__LDEXPF 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5 -+$as_echo_n "checking for logf declaration... " >&6; } -+ if test x${glibcxx_cv_func_logf_use+set} != xset; then -+ if test "${glibcxx_cv_func_logf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ logf(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_logf_use=yes -+else -+ glibcxx_cv_func_logf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5 -+$as_echo "$glibcxx_cv_func_logf_use" >&6; } -+ -+ if test x$glibcxx_cv_func_logf_use = x"yes"; then -+ for ac_func in logf -+do : -+ ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf" -+if test "x$ac_cv_func_logf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_LOGF 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _logf declaration" >&5 -+$as_echo_n "checking for _logf declaration... " >&6; } -+ if test x${glibcxx_cv_func__logf_use+set} != xset; then -+ if test "${glibcxx_cv_func__logf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ _logf(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__logf_use=yes -+else -+ glibcxx_cv_func__logf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__logf_use" >&5 -+$as_echo "$glibcxx_cv_func__logf_use" >&6; } -+ -+ if test x$glibcxx_cv_func__logf_use = x"yes"; then -+ for ac_func in _logf -+do : -+ ac_fn_c_check_func "$LINENO" "_logf" "ac_cv_func__logf" -+if test "x$ac_cv_func__logf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__LOGF 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5 -+$as_echo_n "checking for log10f declaration... " >&6; } -+ if test x${glibcxx_cv_func_log10f_use+set} != xset; then -+ if test "${glibcxx_cv_func_log10f_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ log10f(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_log10f_use=yes -+else -+ glibcxx_cv_func_log10f_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5 -+$as_echo "$glibcxx_cv_func_log10f_use" >&6; } -+ -+ if test x$glibcxx_cv_func_log10f_use = x"yes"; then -+ for ac_func in log10f -+do : -+ ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f" -+if test "x$ac_cv_func_log10f" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_LOG10F 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _log10f declaration" >&5 -+$as_echo_n "checking for _log10f declaration... " >&6; } -+ if test x${glibcxx_cv_func__log10f_use+set} != xset; then -+ if test "${glibcxx_cv_func__log10f_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ _log10f(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__log10f_use=yes -+else -+ glibcxx_cv_func__log10f_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__log10f_use" >&5 -+$as_echo "$glibcxx_cv_func__log10f_use" >&6; } -+ -+ if test x$glibcxx_cv_func__log10f_use = x"yes"; then -+ for ac_func in _log10f -+do : -+ ac_fn_c_check_func "$LINENO" "_log10f" "ac_cv_func__log10f" -+if test "x$ac_cv_func__log10f" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__LOG10F 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5 -+$as_echo_n "checking for modff declaration... " >&6; } -+ if test x${glibcxx_cv_func_modff_use+set} != xset; then -+ if test "${glibcxx_cv_func_modff_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ modff(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_modff_use=yes -+else -+ glibcxx_cv_func_modff_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5 -+$as_echo "$glibcxx_cv_func_modff_use" >&6; } -+ -+ if test x$glibcxx_cv_func_modff_use = x"yes"; then -+ for ac_func in modff -+do : -+ ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff" -+if test "x$ac_cv_func_modff" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_MODFF 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modff declaration" >&5 -+$as_echo_n "checking for _modff declaration... " >&6; } -+ if test x${glibcxx_cv_func__modff_use+set} != xset; then -+ if test "${glibcxx_cv_func__modff_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ _modff(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__modff_use=yes -+else -+ glibcxx_cv_func__modff_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modff_use" >&5 -+$as_echo "$glibcxx_cv_func__modff_use" >&6; } -+ -+ if test x$glibcxx_cv_func__modff_use = x"yes"; then -+ for ac_func in _modff -+do : -+ ac_fn_c_check_func "$LINENO" "_modff" "ac_cv_func__modff" -+if test "x$ac_cv_func__modff" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__MODFF 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5 -+$as_echo_n "checking for modf declaration... " >&6; } -+ if test x${glibcxx_cv_func_modf_use+set} != xset; then -+ if test "${glibcxx_cv_func_modf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ modf(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_modf_use=yes -+else -+ glibcxx_cv_func_modf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5 -+$as_echo "$glibcxx_cv_func_modf_use" >&6; } -+ -+ if test x$glibcxx_cv_func_modf_use = x"yes"; then -+ for ac_func in modf -+do : -+ ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf" -+if test "x$ac_cv_func_modf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_MODF 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modf declaration" >&5 -+$as_echo_n "checking for _modf declaration... " >&6; } -+ if test x${glibcxx_cv_func__modf_use+set} != xset; then -+ if test "${glibcxx_cv_func__modf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ _modf(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__modf_use=yes -+else -+ glibcxx_cv_func__modf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modf_use" >&5 -+$as_echo "$glibcxx_cv_func__modf_use" >&6; } -+ -+ if test x$glibcxx_cv_func__modf_use = x"yes"; then -+ for ac_func in _modf -+do : -+ ac_fn_c_check_func "$LINENO" "_modf" "ac_cv_func__modf" -+if test "x$ac_cv_func__modf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__MODF 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5 -+$as_echo_n "checking for powf declaration... " >&6; } -+ if test x${glibcxx_cv_func_powf_use+set} != xset; then -+ if test "${glibcxx_cv_func_powf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ powf(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_powf_use=yes -+else -+ glibcxx_cv_func_powf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5 -+$as_echo "$glibcxx_cv_func_powf_use" >&6; } -+ -+ if test x$glibcxx_cv_func_powf_use = x"yes"; then -+ for ac_func in powf -+do : -+ ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf" -+if test "x$ac_cv_func_powf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_POWF 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _powf declaration" >&5 -+$as_echo_n "checking for _powf declaration... " >&6; } -+ if test x${glibcxx_cv_func__powf_use+set} != xset; then -+ if test "${glibcxx_cv_func__powf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ _powf(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__powf_use=yes -+else -+ glibcxx_cv_func__powf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__powf_use" >&5 -+$as_echo "$glibcxx_cv_func__powf_use" >&6; } -+ -+ if test x$glibcxx_cv_func__powf_use = x"yes"; then -+ for ac_func in _powf -+do : -+ ac_fn_c_check_func "$LINENO" "_powf" "ac_cv_func__powf" -+if test "x$ac_cv_func__powf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__POWF 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5 -+$as_echo_n "checking for sqrtf declaration... " >&6; } -+ if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then -+ if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ sqrtf(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_sqrtf_use=yes -+else -+ glibcxx_cv_func_sqrtf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5 -+$as_echo "$glibcxx_cv_func_sqrtf_use" >&6; } -+ -+ if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then -+ for ac_func in sqrtf -+do : -+ ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf" -+if test "x$ac_cv_func_sqrtf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_SQRTF 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sqrtf declaration" >&5 -+$as_echo_n "checking for _sqrtf declaration... " >&6; } -+ if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then -+ if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ _sqrtf(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__sqrtf_use=yes -+else -+ glibcxx_cv_func__sqrtf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sqrtf_use" >&5 -+$as_echo "$glibcxx_cv_func__sqrtf_use" >&6; } -+ -+ if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then -+ for ac_func in _sqrtf -+do : -+ ac_fn_c_check_func "$LINENO" "_sqrtf" "ac_cv_func__sqrtf" -+if test "x$ac_cv_func__sqrtf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__SQRTF 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5 -+$as_echo_n "checking for sincosf declaration... " >&6; } -+ if test x${glibcxx_cv_func_sincosf_use+set} != xset; then -+ if test "${glibcxx_cv_func_sincosf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ sincosf(0, 0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_sincosf_use=yes -+else -+ glibcxx_cv_func_sincosf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5 -+$as_echo "$glibcxx_cv_func_sincosf_use" >&6; } -+ -+ if test x$glibcxx_cv_func_sincosf_use = x"yes"; then -+ for ac_func in sincosf -+do : -+ ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf" -+if test "x$ac_cv_func_sincosf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_SINCOSF 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincosf declaration" >&5 -+$as_echo_n "checking for _sincosf declaration... " >&6; } -+ if test x${glibcxx_cv_func__sincosf_use+set} != xset; then -+ if test "${glibcxx_cv_func__sincosf_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ _sincosf(0, 0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__sincosf_use=yes -+else -+ glibcxx_cv_func__sincosf_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincosf_use" >&5 -+$as_echo "$glibcxx_cv_func__sincosf_use" >&6; } -+ -+ if test x$glibcxx_cv_func__sincosf_use = x"yes"; then -+ for ac_func in _sincosf -+do : -+ ac_fn_c_check_func "$LINENO" "_sincosf" "ac_cv_func__sincosf" -+if test "x$ac_cv_func__sincosf" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__SINCOSF 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5 -+$as_echo_n "checking for finitef declaration... " >&6; } -+ if test x${glibcxx_cv_func_finitef_use+set} != xset; then -+ if test "${glibcxx_cv_func_finitef_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ finitef(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_finitef_use=yes -+else -+ glibcxx_cv_func_finitef_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5 -+$as_echo "$glibcxx_cv_func_finitef_use" >&6; } -+ -+ if test x$glibcxx_cv_func_finitef_use = x"yes"; then -+ for ac_func in finitef -+do : -+ ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef" -+if test "x$ac_cv_func_finitef" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_FINITEF 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finitef declaration" >&5 -+$as_echo_n "checking for _finitef declaration... " >&6; } -+ if test x${glibcxx_cv_func__finitef_use+set} != xset; then -+ if test "${glibcxx_cv_func__finitef_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ _finitef(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__finitef_use=yes -+else -+ glibcxx_cv_func__finitef_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finitef_use" >&5 -+$as_echo "$glibcxx_cv_func__finitef_use" >&6; } -+ -+ if test x$glibcxx_cv_func__finitef_use = x"yes"; then -+ for ac_func in _finitef -+do : -+ ac_fn_c_check_func "$LINENO" "_finitef" "ac_cv_func__finitef" -+if test "x$ac_cv_func__finitef" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__FINITEF 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5 -+$as_echo_n "checking for long double trig functions... " >&6; } -+ if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_long_double_trig_use=yes -+else -+ glibcxx_cv_func_long_double_trig_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+fi -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5 -+$as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; } -+ if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then -+ for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl -+do : -+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -+eval as_val=\$$as_ac_var -+ if test "x$as_val" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _long double trig functions" >&5 -+$as_echo_n "checking for _long double trig functions... " >&6; } -+ if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+_acosl (0); _asinl (0); _atanl (0); _cosl (0); _sinl (0); _tanl (0); _coshl (0); _sinhl (0); _tanhl (0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__long_double_trig_use=yes -+else -+ glibcxx_cv_func__long_double_trig_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+fi -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__long_double_trig_use" >&5 -+$as_echo "$glibcxx_cv_func__long_double_trig_use" >&6; } -+ if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then -+ for ac_func in _acosl _asinl _atanl _cosl _sinl _tanl _coshl _sinhl _tanhl -+do : -+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -+eval as_val=\$$as_ac_var -+ if test "x$as_val" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5 -+$as_echo_n "checking for long double round functions... " >&6; } -+ if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ceill (0); floorl (0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_long_double_round_use=yes -+else -+ glibcxx_cv_func_long_double_round_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+fi -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5 -+$as_echo "$glibcxx_cv_func_long_double_round_use" >&6; } -+ if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then -+ for ac_func in ceill floorl -+do : -+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -+eval as_val=\$$as_ac_var -+ if test "x$as_val" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _long double round functions" >&5 -+$as_echo_n "checking for _long double round functions... " >&6; } -+ if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+_ceill (0); _floorl (0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__long_double_round_use=yes -+else -+ glibcxx_cv_func__long_double_round_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+fi -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__long_double_round_use" >&5 -+$as_echo "$glibcxx_cv_func__long_double_round_use" >&6; } -+ if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then -+ for ac_func in _ceill _floorl -+do : -+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -+eval as_val=\$$as_ac_var -+ if test "x$as_val" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5 -+$as_echo_n "checking for isnanl declaration... " >&6; } -+ if test x${glibcxx_cv_func_isnanl_use+set} != xset; then -+ if test "${glibcxx_cv_func_isnanl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ isnanl(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_isnanl_use=yes -+else -+ glibcxx_cv_func_isnanl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5 -+$as_echo "$glibcxx_cv_func_isnanl_use" >&6; } -+ -+ if test x$glibcxx_cv_func_isnanl_use = x"yes"; then -+ for ac_func in isnanl -+do : -+ ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl" -+if test "x$ac_cv_func_isnanl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_ISNANL 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnanl declaration" >&5 -+$as_echo_n "checking for _isnanl declaration... " >&6; } -+ if test x${glibcxx_cv_func__isnanl_use+set} != xset; then -+ if test "${glibcxx_cv_func__isnanl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ _isnanl(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__isnanl_use=yes -+else -+ glibcxx_cv_func__isnanl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnanl_use" >&5 -+$as_echo "$glibcxx_cv_func__isnanl_use" >&6; } -+ -+ if test x$glibcxx_cv_func__isnanl_use = x"yes"; then -+ for ac_func in _isnanl -+do : -+ ac_fn_c_check_func "$LINENO" "_isnanl" "ac_cv_func__isnanl" -+if test "x$ac_cv_func__isnanl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__ISNANL 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5 -+$as_echo_n "checking for isinfl declaration... " >&6; } -+ if test x${glibcxx_cv_func_isinfl_use+set} != xset; then -+ if test "${glibcxx_cv_func_isinfl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ isinfl(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_isinfl_use=yes -+else -+ glibcxx_cv_func_isinfl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5 -+$as_echo "$glibcxx_cv_func_isinfl_use" >&6; } -+ -+ if test x$glibcxx_cv_func_isinfl_use = x"yes"; then -+ for ac_func in isinfl -+do : -+ ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl" -+if test "x$ac_cv_func_isinfl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_ISINFL 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinfl declaration" >&5 -+$as_echo_n "checking for _isinfl declaration... " >&6; } -+ if test x${glibcxx_cv_func__isinfl_use+set} != xset; then -+ if test "${glibcxx_cv_func__isinfl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ _isinfl(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__isinfl_use=yes -+else -+ glibcxx_cv_func__isinfl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinfl_use" >&5 -+$as_echo "$glibcxx_cv_func__isinfl_use" >&6; } -+ -+ if test x$glibcxx_cv_func__isinfl_use = x"yes"; then -+ for ac_func in _isinfl -+do : -+ ac_fn_c_check_func "$LINENO" "_isinfl" "ac_cv_func__isinfl" -+if test "x$ac_cv_func__isinfl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__ISINFL 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5 -+$as_echo_n "checking for atan2l declaration... " >&6; } -+ if test x${glibcxx_cv_func_atan2l_use+set} != xset; then -+ if test "${glibcxx_cv_func_atan2l_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ atan2l(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_atan2l_use=yes -+else -+ glibcxx_cv_func_atan2l_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5 -+$as_echo "$glibcxx_cv_func_atan2l_use" >&6; } -+ -+ if test x$glibcxx_cv_func_atan2l_use = x"yes"; then -+ for ac_func in atan2l -+do : -+ ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l" -+if test "x$ac_cv_func_atan2l" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_ATAN2L 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _atan2l declaration" >&5 -+$as_echo_n "checking for _atan2l declaration... " >&6; } -+ if test x${glibcxx_cv_func__atan2l_use+set} != xset; then -+ if test "${glibcxx_cv_func__atan2l_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ _atan2l(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__atan2l_use=yes -+else -+ glibcxx_cv_func__atan2l_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__atan2l_use" >&5 -+$as_echo "$glibcxx_cv_func__atan2l_use" >&6; } -+ -+ if test x$glibcxx_cv_func__atan2l_use = x"yes"; then -+ for ac_func in _atan2l -+do : -+ ac_fn_c_check_func "$LINENO" "_atan2l" "ac_cv_func__atan2l" -+if test "x$ac_cv_func__atan2l" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__ATAN2L 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5 -+$as_echo_n "checking for expl declaration... " >&6; } -+ if test x${glibcxx_cv_func_expl_use+set} != xset; then -+ if test "${glibcxx_cv_func_expl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ expl(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_expl_use=yes -+else -+ glibcxx_cv_func_expl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5 -+$as_echo "$glibcxx_cv_func_expl_use" >&6; } -+ -+ if test x$glibcxx_cv_func_expl_use = x"yes"; then -+ for ac_func in expl -+do : -+ ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl" -+if test "x$ac_cv_func_expl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_EXPL 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _expl declaration" >&5 -+$as_echo_n "checking for _expl declaration... " >&6; } -+ if test x${glibcxx_cv_func__expl_use+set} != xset; then -+ if test "${glibcxx_cv_func__expl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ _expl(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__expl_use=yes -+else -+ glibcxx_cv_func__expl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__expl_use" >&5 -+$as_echo "$glibcxx_cv_func__expl_use" >&6; } -+ -+ if test x$glibcxx_cv_func__expl_use = x"yes"; then -+ for ac_func in _expl -+do : -+ ac_fn_c_check_func "$LINENO" "_expl" "ac_cv_func__expl" -+if test "x$ac_cv_func__expl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__EXPL 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5 -+$as_echo_n "checking for fabsl declaration... " >&6; } -+ if test x${glibcxx_cv_func_fabsl_use+set} != xset; then -+ if test "${glibcxx_cv_func_fabsl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ fabsl(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_fabsl_use=yes -+else -+ glibcxx_cv_func_fabsl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5 -+$as_echo "$glibcxx_cv_func_fabsl_use" >&6; } -+ -+ if test x$glibcxx_cv_func_fabsl_use = x"yes"; then -+ for ac_func in fabsl -+do : -+ ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl" -+if test "x$ac_cv_func_fabsl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_FABSL 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fabsl declaration" >&5 -+$as_echo_n "checking for _fabsl declaration... " >&6; } -+ if test x${glibcxx_cv_func__fabsl_use+set} != xset; then -+ if test "${glibcxx_cv_func__fabsl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ _fabsl(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__fabsl_use=yes -+else -+ glibcxx_cv_func__fabsl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fabsl_use" >&5 -+$as_echo "$glibcxx_cv_func__fabsl_use" >&6; } -+ -+ if test x$glibcxx_cv_func__fabsl_use = x"yes"; then -+ for ac_func in _fabsl -+do : -+ ac_fn_c_check_func "$LINENO" "_fabsl" "ac_cv_func__fabsl" -+if test "x$ac_cv_func__fabsl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__FABSL 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5 -+$as_echo_n "checking for fmodl declaration... " >&6; } -+ if test x${glibcxx_cv_func_fmodl_use+set} != xset; then -+ if test "${glibcxx_cv_func_fmodl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ fmodl(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_fmodl_use=yes -+else -+ glibcxx_cv_func_fmodl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5 -+$as_echo "$glibcxx_cv_func_fmodl_use" >&6; } -+ -+ if test x$glibcxx_cv_func_fmodl_use = x"yes"; then -+ for ac_func in fmodl -+do : -+ ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl" -+if test "x$ac_cv_func_fmodl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_FMODL 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fmodl declaration" >&5 -+$as_echo_n "checking for _fmodl declaration... " >&6; } -+ if test x${glibcxx_cv_func__fmodl_use+set} != xset; then -+ if test "${glibcxx_cv_func__fmodl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ _fmodl(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__fmodl_use=yes -+else -+ glibcxx_cv_func__fmodl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fmodl_use" >&5 -+$as_echo "$glibcxx_cv_func__fmodl_use" >&6; } -+ -+ if test x$glibcxx_cv_func__fmodl_use = x"yes"; then -+ for ac_func in _fmodl -+do : -+ ac_fn_c_check_func "$LINENO" "_fmodl" "ac_cv_func__fmodl" -+if test "x$ac_cv_func__fmodl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__FMODL 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5 -+$as_echo_n "checking for frexpl declaration... " >&6; } -+ if test x${glibcxx_cv_func_frexpl_use+set} != xset; then -+ if test "${glibcxx_cv_func_frexpl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ frexpl(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_frexpl_use=yes -+else -+ glibcxx_cv_func_frexpl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5 -+$as_echo "$glibcxx_cv_func_frexpl_use" >&6; } -+ -+ if test x$glibcxx_cv_func_frexpl_use = x"yes"; then -+ for ac_func in frexpl -+do : -+ ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl" -+if test "x$ac_cv_func_frexpl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_FREXPL 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _frexpl declaration" >&5 -+$as_echo_n "checking for _frexpl declaration... " >&6; } -+ if test x${glibcxx_cv_func__frexpl_use+set} != xset; then -+ if test "${glibcxx_cv_func__frexpl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ _frexpl(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__frexpl_use=yes -+else -+ glibcxx_cv_func__frexpl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__frexpl_use" >&5 -+$as_echo "$glibcxx_cv_func__frexpl_use" >&6; } -+ -+ if test x$glibcxx_cv_func__frexpl_use = x"yes"; then -+ for ac_func in _frexpl -+do : -+ ac_fn_c_check_func "$LINENO" "_frexpl" "ac_cv_func__frexpl" -+if test "x$ac_cv_func__frexpl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__FREXPL 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5 -+$as_echo_n "checking for hypotl declaration... " >&6; } -+ if test x${glibcxx_cv_func_hypotl_use+set} != xset; then -+ if test "${glibcxx_cv_func_hypotl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ hypotl(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_hypotl_use=yes -+else -+ glibcxx_cv_func_hypotl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5 -+$as_echo "$glibcxx_cv_func_hypotl_use" >&6; } -+ -+ if test x$glibcxx_cv_func_hypotl_use = x"yes"; then -+ for ac_func in hypotl -+do : -+ ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl" -+if test "x$ac_cv_func_hypotl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_HYPOTL 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypotl declaration" >&5 -+$as_echo_n "checking for _hypotl declaration... " >&6; } -+ if test x${glibcxx_cv_func__hypotl_use+set} != xset; then -+ if test "${glibcxx_cv_func__hypotl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ _hypotl(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__hypotl_use=yes -+else -+ glibcxx_cv_func__hypotl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypotl_use" >&5 -+$as_echo "$glibcxx_cv_func__hypotl_use" >&6; } -+ -+ if test x$glibcxx_cv_func__hypotl_use = x"yes"; then -+ for ac_func in _hypotl -+do : -+ ac_fn_c_check_func "$LINENO" "_hypotl" "ac_cv_func__hypotl" -+if test "x$ac_cv_func__hypotl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__HYPOTL 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5 -+$as_echo_n "checking for ldexpl declaration... " >&6; } -+ if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then -+ if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ ldexpl(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_ldexpl_use=yes -+else -+ glibcxx_cv_func_ldexpl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5 -+$as_echo "$glibcxx_cv_func_ldexpl_use" >&6; } -+ -+ if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then -+ for ac_func in ldexpl -+do : -+ ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl" -+if test "x$ac_cv_func_ldexpl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_LDEXPL 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ldexpl declaration" >&5 -+$as_echo_n "checking for _ldexpl declaration... " >&6; } -+ if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then -+ if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ _ldexpl(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__ldexpl_use=yes -+else -+ glibcxx_cv_func__ldexpl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__ldexpl_use" >&5 -+$as_echo "$glibcxx_cv_func__ldexpl_use" >&6; } -+ -+ if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then -+ for ac_func in _ldexpl -+do : -+ ac_fn_c_check_func "$LINENO" "_ldexpl" "ac_cv_func__ldexpl" -+if test "x$ac_cv_func__ldexpl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__LDEXPL 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5 -+$as_echo_n "checking for logl declaration... " >&6; } -+ if test x${glibcxx_cv_func_logl_use+set} != xset; then -+ if test "${glibcxx_cv_func_logl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ logl(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_logl_use=yes -+else -+ glibcxx_cv_func_logl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5 -+$as_echo "$glibcxx_cv_func_logl_use" >&6; } -+ -+ if test x$glibcxx_cv_func_logl_use = x"yes"; then -+ for ac_func in logl -+do : -+ ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl" -+if test "x$ac_cv_func_logl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_LOGL 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _logl declaration" >&5 -+$as_echo_n "checking for _logl declaration... " >&6; } -+ if test x${glibcxx_cv_func__logl_use+set} != xset; then -+ if test "${glibcxx_cv_func__logl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ _logl(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__logl_use=yes -+else -+ glibcxx_cv_func__logl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__logl_use" >&5 -+$as_echo "$glibcxx_cv_func__logl_use" >&6; } -+ -+ if test x$glibcxx_cv_func__logl_use = x"yes"; then -+ for ac_func in _logl -+do : -+ ac_fn_c_check_func "$LINENO" "_logl" "ac_cv_func__logl" -+if test "x$ac_cv_func__logl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__LOGL 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5 -+$as_echo_n "checking for log10l declaration... " >&6; } -+ if test x${glibcxx_cv_func_log10l_use+set} != xset; then -+ if test "${glibcxx_cv_func_log10l_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ log10l(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_log10l_use=yes -+else -+ glibcxx_cv_func_log10l_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5 -+$as_echo "$glibcxx_cv_func_log10l_use" >&6; } -+ -+ if test x$glibcxx_cv_func_log10l_use = x"yes"; then -+ for ac_func in log10l -+do : -+ ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l" -+if test "x$ac_cv_func_log10l" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_LOG10L 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _log10l declaration" >&5 -+$as_echo_n "checking for _log10l declaration... " >&6; } -+ if test x${glibcxx_cv_func__log10l_use+set} != xset; then -+ if test "${glibcxx_cv_func__log10l_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ _log10l(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__log10l_use=yes -+else -+ glibcxx_cv_func__log10l_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__log10l_use" >&5 -+$as_echo "$glibcxx_cv_func__log10l_use" >&6; } -+ -+ if test x$glibcxx_cv_func__log10l_use = x"yes"; then -+ for ac_func in _log10l -+do : -+ ac_fn_c_check_func "$LINENO" "_log10l" "ac_cv_func__log10l" -+if test "x$ac_cv_func__log10l" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__LOG10L 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5 -+$as_echo_n "checking for modfl declaration... " >&6; } -+ if test x${glibcxx_cv_func_modfl_use+set} != xset; then -+ if test "${glibcxx_cv_func_modfl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ modfl(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_modfl_use=yes -+else -+ glibcxx_cv_func_modfl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5 -+$as_echo "$glibcxx_cv_func_modfl_use" >&6; } -+ -+ if test x$glibcxx_cv_func_modfl_use = x"yes"; then -+ for ac_func in modfl -+do : -+ ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl" -+if test "x$ac_cv_func_modfl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_MODFL 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modfl declaration" >&5 -+$as_echo_n "checking for _modfl declaration... " >&6; } -+ if test x${glibcxx_cv_func__modfl_use+set} != xset; then -+ if test "${glibcxx_cv_func__modfl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ _modfl(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__modfl_use=yes -+else -+ glibcxx_cv_func__modfl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modfl_use" >&5 -+$as_echo "$glibcxx_cv_func__modfl_use" >&6; } -+ -+ if test x$glibcxx_cv_func__modfl_use = x"yes"; then -+ for ac_func in _modfl -+do : -+ ac_fn_c_check_func "$LINENO" "_modfl" "ac_cv_func__modfl" -+if test "x$ac_cv_func__modfl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__MODFL 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5 -+$as_echo_n "checking for powl declaration... " >&6; } -+ if test x${glibcxx_cv_func_powl_use+set} != xset; then -+ if test "${glibcxx_cv_func_powl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ powl(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_powl_use=yes -+else -+ glibcxx_cv_func_powl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5 -+$as_echo "$glibcxx_cv_func_powl_use" >&6; } -+ -+ if test x$glibcxx_cv_func_powl_use = x"yes"; then -+ for ac_func in powl -+do : -+ ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl" -+if test "x$ac_cv_func_powl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_POWL 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _powl declaration" >&5 -+$as_echo_n "checking for _powl declaration... " >&6; } -+ if test x${glibcxx_cv_func__powl_use+set} != xset; then -+ if test "${glibcxx_cv_func__powl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ _powl(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__powl_use=yes -+else -+ glibcxx_cv_func__powl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__powl_use" >&5 -+$as_echo "$glibcxx_cv_func__powl_use" >&6; } -+ -+ if test x$glibcxx_cv_func__powl_use = x"yes"; then -+ for ac_func in _powl -+do : -+ ac_fn_c_check_func "$LINENO" "_powl" "ac_cv_func__powl" -+if test "x$ac_cv_func__powl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__POWL 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5 -+$as_echo_n "checking for sqrtl declaration... " >&6; } -+ if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then -+ if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ sqrtl(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_sqrtl_use=yes -+else -+ glibcxx_cv_func_sqrtl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5 -+$as_echo "$glibcxx_cv_func_sqrtl_use" >&6; } -+ -+ if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then -+ for ac_func in sqrtl -+do : -+ ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl" -+if test "x$ac_cv_func_sqrtl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_SQRTL 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sqrtl declaration" >&5 -+$as_echo_n "checking for _sqrtl declaration... " >&6; } -+ if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then -+ if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ _sqrtl(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__sqrtl_use=yes -+else -+ glibcxx_cv_func__sqrtl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sqrtl_use" >&5 -+$as_echo "$glibcxx_cv_func__sqrtl_use" >&6; } -+ -+ if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then -+ for ac_func in _sqrtl -+do : -+ ac_fn_c_check_func "$LINENO" "_sqrtl" "ac_cv_func__sqrtl" -+if test "x$ac_cv_func__sqrtl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__SQRTL 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5 -+$as_echo_n "checking for sincosl declaration... " >&6; } -+ if test x${glibcxx_cv_func_sincosl_use+set} != xset; then -+ if test "${glibcxx_cv_func_sincosl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ sincosl(0, 0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_sincosl_use=yes -+else -+ glibcxx_cv_func_sincosl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5 -+$as_echo "$glibcxx_cv_func_sincosl_use" >&6; } -+ -+ if test x$glibcxx_cv_func_sincosl_use = x"yes"; then -+ for ac_func in sincosl -+do : -+ ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl" -+if test "x$ac_cv_func_sincosl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_SINCOSL 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincosl declaration" >&5 -+$as_echo_n "checking for _sincosl declaration... " >&6; } -+ if test x${glibcxx_cv_func__sincosl_use+set} != xset; then -+ if test "${glibcxx_cv_func__sincosl_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ _sincosl(0, 0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__sincosl_use=yes -+else -+ glibcxx_cv_func__sincosl_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincosl_use" >&5 -+$as_echo "$glibcxx_cv_func__sincosl_use" >&6; } -+ -+ if test x$glibcxx_cv_func__sincosl_use = x"yes"; then -+ for ac_func in _sincosl -+do : -+ ac_fn_c_check_func "$LINENO" "_sincosl" "ac_cv_func__sincosl" -+if test "x$ac_cv_func__sincosl" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__SINCOSL 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5 -+$as_echo_n "checking for finitel declaration... " >&6; } -+ if test x${glibcxx_cv_func_finitel_use+set} != xset; then -+ if test "${glibcxx_cv_func_finitel_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ finitel(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_finitel_use=yes -+else -+ glibcxx_cv_func_finitel_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5 -+$as_echo "$glibcxx_cv_func_finitel_use" >&6; } -+ -+ if test x$glibcxx_cv_func_finitel_use = x"yes"; then -+ for ac_func in finitel -+do : -+ ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel" -+if test "x$ac_cv_func_finitel" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_FINITEL 1 -+_ACEOF -+ -+fi -+done -+ -+ else -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finitel declaration" >&5 -+$as_echo_n "checking for _finitel declaration... " >&6; } -+ if test x${glibcxx_cv_func__finitel_use+set} != xset; then -+ if test "${glibcxx_cv_func__finitel_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+ #ifdef HAVE_IEEEFP_H -+ #include -+ #endif -+ -+int -+main () -+{ -+ _finitel(0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func__finitel_use=yes -+else -+ glibcxx_cv_func__finitel_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finitel_use" >&5 -+$as_echo "$glibcxx_cv_func__finitel_use" >&6; } -+ -+ if test x$glibcxx_cv_func__finitel_use = x"yes"; then -+ for ac_func in _finitel -+do : -+ ac_fn_c_check_func "$LINENO" "_finitel" "ac_cv_func__finitel" -+if test "x$ac_cv_func__finitel" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE__FINITEL 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ fi -+ -+ -+ -+ -+ LIBS="$ac_save_LIBS" -+ CXXFLAGS="$ac_save_CXXFLAGS" -+ -+ -+ ac_test_CXXFLAGS="${CXXFLAGS+set}" -+ ac_save_CXXFLAGS="$CXXFLAGS" -+ CXXFLAGS='-fno-builtin -D_GNU_SOURCE' -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5 -+$as_echo_n "checking for strtold declaration... " >&6; } -+ if test x${glibcxx_cv_func_strtold_use+set} != xset; then -+ if test "${glibcxx_cv_func_strtold_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ strtold(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_strtold_use=yes -+else -+ glibcxx_cv_func_strtold_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5 -+$as_echo "$glibcxx_cv_func_strtold_use" >&6; } -+ if test x$glibcxx_cv_func_strtold_use = x"yes"; then -+ for ac_func in strtold -+do : -+ ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold" -+if test "x$ac_cv_func_strtold" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_STRTOLD 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ -+ -+ -+ -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5 -+$as_echo_n "checking for strtof declaration... " >&6; } -+ if test x${glibcxx_cv_func_strtof_use+set} != xset; then -+ if test "${glibcxx_cv_func_strtof_use+set}" = set; then : -+ $as_echo_n "(cached) " >&6 -+else -+ -+ -+ ac_ext=cpp -+ac_cpp='$CXXCPP $CPPFLAGS' -+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -+ -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+#include -+int -+main () -+{ -+ strtof(0, 0); -+ ; -+ return 0; -+} -+_ACEOF -+if ac_fn_cxx_try_compile "$LINENO"; then : -+ glibcxx_cv_func_strtof_use=yes -+else -+ glibcxx_cv_func_strtof_use=no -+fi -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -+ ac_ext=c -+ac_cpp='$CPP $CPPFLAGS' -+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -+ac_compiler_gnu=$ac_cv_c_compiler_gnu -+ -+ -+fi -+ -+ fi -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5 -+$as_echo "$glibcxx_cv_func_strtof_use" >&6; } -+ if test x$glibcxx_cv_func_strtof_use = x"yes"; then -+ for ac_func in strtof -+do : -+ ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof" -+if test "x$ac_cv_func_strtof" = x""yes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_STRTOF 1 -+_ACEOF -+ -+fi -+done -+ -+ fi -+ -+ -+ -+ -+ CXXFLAGS="$ac_save_CXXFLAGS" -+ -+ ;; - *-mingw32*) - - # If we're not using GNU ld, then there's no point in even trying these -@@ -79969,7 +85841,7 @@ done - if $GLIBCXX_IS_NATIVE && test $is_hosted = yes && - test $enable_symvers != no; then - case "$host" in -- *-*-cygwin*) -+ *-*-cygwin* | *-*-msys*) - enable_abi_check=no ;; - *) - enable_abi_check=yes ;; -diff -Naur gcc-6.3.0-orig/libstdc++-v3/configure.host gcc-6.3.0/libstdc++-v3/configure.host ---- gcc-6.3.0-orig/libstdc++-v3/configure.host 2016-09-27 09:11:15.000000000 +0300 -+++ gcc-6.3.0/libstdc++-v3/configure.host 2017-01-24 12:04:11.565004600 +0300 -@@ -230,7 +230,7 @@ - # Plain BSD attempts to share FreeBSD files. - os_include_dir="os/bsd/freebsd" - ;; -- cygwin*) -+ cygwin* | msys*) - os_include_dir="os/newlib" - OPT_LDFLAGS="${OPT_LDFLAGS} \$(lt_host_flags)" - ;; -diff -Naur gcc-7.3.0/libstdc++-v3/crossconfig.m4.orig gcc-7.3.0/libstdc++-v3/crossconfig.m4 ---- gcc-7.3.0/libstdc++-v3/crossconfig.m4.orig 2018-04-15 06:45:42.193203400 -0400 -+++ gcc-7.3.0/libstdc++-v3/crossconfig.m4 2018-04-15 06:48:58.341848300 -0400 -@@ -182,7 +182,7 @@ case "${host}" in - ;; - esac - ;; -- *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-cygwin*) -+ *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-cygwin* | *-msys*) - GLIBCXX_CHECK_COMPILER_FEATURES - GLIBCXX_CHECK_LINKER_FEATURES - GLIBCXX_CHECK_MATH_SUPPORT -diff -Naur gcc-6.3.0-orig/libtool.m4 gcc-6.3.0/libtool.m4 ---- gcc-6.3.0-orig/libtool.m4 2015-11-26 16:20:59.000000000 +0300 -+++ gcc-6.3.0/libtool.m4 2017-01-24 12:04:11.611804700 +0300 -@@ -1491,7 +1491,7 @@ - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -1733,7 +1733,7 @@ - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; -@@ -2204,14 +2204,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -2235,6 +2235,12 @@ - m4_if([$1], [],[ - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' -+m4_if([$1], [],[ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' -@@ -3001,7 +3007,7 @@ - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -3285,7 +3291,7 @@ - [AC_REQUIRE([AC_CANONICAL_HOST])dnl - LIBM= - case $host in --*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) -+*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-msys* | *-*-haiku* | *-*-pw32* | *-*-darwin*) - # These system don't have libm, or don't need it - ;; - *-ncr-sysv4.3*) -@@ -3360,7 +3366,7 @@ - aix*) - symcode='[[BCDT]]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[[ABCDGISTW]]' - ;; - hpux*) -@@ -3607,7 +3613,7 @@ - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; -- mingw* | cygwin* | os2* | pw32* | cegcc*) -+ mingw* | msys* | cygwin* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -3920,7 +3926,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -4003,7 +4009,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - m4_if([$1], [GCJ], [], -@@ -4236,7 +4242,7 @@ - pw32*) - _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" - ;; -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' - ;; - *) -@@ -4288,7 +4294,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -4403,7 +4409,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' -@@ -4776,7 +4782,7 @@ - _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -5720,7 +5726,7 @@ - esac - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' -diff -Naur gcc-6.3.0-orig/libvtv/configure gcc-6.3.0/libvtv/configure ---- gcc-6.3.0-orig/libvtv/configure 2016-12-21 10:54:07.000000000 +0300 -+++ gcc-6.3.0/libvtv/configure 2017-01-24 12:04:11.611804700 +0300 -@@ -6601,7 +6601,7 @@ - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -6943,7 +6943,7 @@ - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -7523,7 +7523,7 @@ - aix*) - symcode='[BCDT]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; - hpux*) -@@ -9137,7 +9137,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -9219,7 +9219,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' -@@ -9681,7 +9681,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -9796,7 +9796,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' -@@ -10227,7 +10227,7 @@ - export_dynamic_flag_spec=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -11128,14 +11128,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -11159,6 +11159,12 @@ - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; -+ msys*) -+ # MSYS DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -11795,7 +11801,7 @@ - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; -@@ -13017,7 +13023,7 @@ - esac - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_CXX='-L$libdir' -@@ -13986,7 +13992,7 @@ - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; -- mingw* | cygwin* | os2* | pw32* | cegcc*) -+ mingw* | cygwin* | msys* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -14526,7 +14532,7 @@ - pw32*) - export_symbols_cmds_CXX="$ltdll_cmds" - ;; -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' - ;; - *) -@@ -14790,14 +14796,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -14820,6 +14826,11 @@ - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - - ;; -+ msys*) -+ # MSYS DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -15425,7 +15436,7 @@ - - - case $host in -- *-cygwin* | *-mingw*) -+ *-cygwin* | *-msys* | *-mingw*) - # 'host' will be top-level target in the case of a target lib, - # we must compare to with_cross_host to decide if this is a native - # or cross-compiler and select where to install dlls appropriately. -@@ -15468,7 +15479,7 @@ - fi - - case "$target_os" in -- cygwin*|mingw32*) -+ cygwin*|msys*|mingw32*) - vtv_cygmin="yes" - ;; - *) -diff -Naur gcc-6.3.0-orig/libvtv/configure.ac gcc-6.3.0/libvtv/configure.ac ---- gcc-6.3.0-orig/libvtv/configure.ac 2015-12-02 21:18:51.000000000 +0300 -+++ gcc-6.3.0/libvtv/configure.ac 2017-01-24 12:04:11.627404700 +0300 -@@ -177,7 +177,7 @@ - fi - - case "$target_os" in -- cygwin*|mingw32*) -+ cygwin*|msys*|mingw32*) - vtv_cygmin="yes" - ;; - *) -diff -Naur gcc-6.3.0-orig/libvtv/configure.tgt gcc-6.3.0/libvtv/configure.tgt ---- gcc-6.3.0-orig/libvtv/configure.tgt 2015-11-25 13:30:25.000000000 +0300 -+++ gcc-6.3.0/libvtv/configure.tgt 2017-01-24 12:04:11.627404700 +0300 -@@ -35,6 +35,9 @@ - x86_64-*-cygwin* | i?86-*-cygwin*) - VTV_SUPPORTED=yes - ;; -+ x86_64-*-msys* | i?86-*-msys*) -+ VTV_SUPPORTED=yes -+ ;; - x86_64-*-mingw* | i?86-*-mingw*) - VTV_SUPPORTED=yes - ;; -diff -Naur gcc-6.3.0-orig/ltmain.sh gcc-6.3.0/ltmain.sh ---- gcc-6.3.0-orig/ltmain.sh 2014-02-04 13:31:38.000000000 +0400 -+++ gcc-6.3.0/ltmain.sh 2017-01-24 12:04:11.643004700 +0300 -@@ -976,7 +976,7 @@ - - - case $host in -- *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* ) -+ *cygwin* | *msys* | *mingw* | *pw32* | *cegcc* | *solaris2* ) - # don't eliminate duplications in $postdeps and $predeps - opt_duplicate_compiler_generated_deps=: - ;; -@@ -1453,7 +1453,7 @@ - - # On Cygwin there's no "real" PIC flag so we must build both object types - case $host_os in -- cygwin* | mingw* | pw32* | os2* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | os2* | cegcc*) - pic_mode=default - ;; - esac -@@ -2279,7 +2279,7 @@ - 'exit $?' - tstripme="$stripme" - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - case $realname in - *.dll.a) - tstripme="" -@@ -2385,7 +2385,7 @@ - - # Do a test to see if this is really a libtool program. - case $host in -- *cygwin* | *mingw*) -+ *cygwin* | *msys* | *mingw*) - if func_ltwrapper_executable_p "$file"; then - func_ltwrapper_scriptname "$file" - wrapper=$func_ltwrapper_scriptname_result -@@ -2460,7 +2460,7 @@ - # remove .exe since cygwin /usr/bin/install will append another - # one anyway - case $install_prog,$host in -- */usr/bin/install*,*cygwin*) -+ */usr/bin/install*,*cygwin*|*/usr/bin/install*,*msys*) - case $file:$destfile in - *.exe:*.exe) - # this is ok -@@ -2595,7 +2595,7 @@ - $RM $export_symbols - ${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' < "$nlist" > "$export_symbols" - case $host in -- *cygwin* | *mingw* | *cegcc* ) -+ *cygwin* | *msys* | *mingw* | *cegcc* ) - echo EXPORTS > "$output_objdir/$outputname.def" - cat "$export_symbols" >> "$output_objdir/$outputname.def" - ;; -@@ -2607,7 +2607,7 @@ - $GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T - $MV "$nlist"T "$nlist" - case $host in -- *cygwin* | *mingw* | *cegcc* ) -+ *cygwin* | *msys* | *mingw* | *cegcc* ) - echo EXPORTS > "$output_objdir/$outputname.def" - cat "$nlist" >> "$output_objdir/$outputname.def" - ;; -@@ -2663,7 +2663,7 @@ - } lt_dlsymlist; - " - case $host in -- *cygwin* | *mingw* | *cegcc* ) -+ *cygwin* | *msys* | *mingw* | *cegcc* ) - echo >> "$output_objdir/$my_dlsyms" "\ - /* DATA imports from DLLs on WIN32 con't be const, because - runtime relocations are performed -- see ld's documentation -@@ -2749,7 +2749,7 @@ - # Transform the symbol file into the correct name. - symfileobj="$output_objdir/${my_outputname}S.$objext" - case $host in -- *cygwin* | *mingw* | *cegcc* ) -+ *cygwin* | *msys* | *mingw* | *cegcc* ) - if test -f "$output_objdir/$my_outputname.def"; then - compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` - finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` -@@ -3192,7 +3192,7 @@ - func_to_host_path_result=`( cmd //c echo "$1" ) 2>/dev/null | - $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` - ;; -- *cygwin* ) -+ *cygwin* | *msys* ) - func_to_host_path_result=`cygpath -w "$1" | - $SED -e "$lt_sed_naive_backslashify"` - ;; -@@ -3265,7 +3265,7 @@ - ( cmd //c echo "$func_to_host_pathlist_tmp1" ) 2>/dev/null | - $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` - ;; -- *cygwin* ) -+ *cygwin* | *msys* ) - func_to_host_pathlist_result=`cygpath -w -p "$func_to_host_pathlist_tmp1" | - $SED -e "$lt_sed_naive_backslashify"` - ;; -@@ -3571,7 +3571,7 @@ - { - EOF - case "$host" in -- *mingw* | *cygwin* ) -+ *mingw* | *cygwin* | *msys*) - # make stdout use "unix" line endings - echo " setmode(1,_O_BINARY);" - ;; -@@ -4233,7 +4233,7 @@ - { - $opt_debug - case $host in -- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) -+ *-*-cygwin* | *-*-msys | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) - # It is impossible to link a dll without this setting, and - # we shouldn't force the makefile maintainer to figure out - # which system we are compiling for in order to pass an extra -@@ -4713,7 +4713,7 @@ - ;; - esac - case $host in -- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) -+ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) - testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` - case :$dllsearchpath: in - *":$dir:"*) ;; -@@ -4733,7 +4733,7 @@ - -l*) - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then - case $host in -- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) -+ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) - # These systems don't actually have a C or math library (as such) - continue - ;; -@@ -4813,7 +4813,7 @@ - - -no-install) - case $host in -- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) -+ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) - # The PATH hackery in wrapper scripts is required on Windows - # and Darwin in order for the loader to find any dlls it needs. - func_warning "\`-no-install' is ignored for $host" -@@ -5772,7 +5772,7 @@ - if test -n "$library_names" && - { test "$use_static_libs" = no || test -z "$old_library"; }; then - case $host in -- *cygwin* | *mingw* | *cegcc*) -+ *cygwin* | *msys* | *mingw* | *cegcc*) - # No point in relinking DLLs because paths are not encoded - notinst_deplibs="$notinst_deplibs $lib" - need_relink=no -@@ -5842,7 +5842,7 @@ - elif test -n "$soname_spec"; then - # bleh windows - case $host in -- *cygwin* | mingw* | *cegcc*) -+ *cygwin* | *msys* | mingw* | *cegcc*) - func_arith $current - $age - major=$func_arith_result - versuffix="-$major" -@@ -6693,7 +6693,7 @@ - if test "$build_libtool_libs" = yes; then - if test -n "$rpath"; then - case $host in -- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) -+ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) - # these systems don't actually have a c library (as such)! - ;; - *-*-rhapsody* | *-*-darwin1.[012]) -@@ -7194,7 +7194,7 @@ - - orig_export_symbols= - case $host_os in -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - if test -n "$export_symbols" && test -z "$export_symbols_regex"; then - # exporting using user supplied symfile - if test "x`$SED 1q $export_symbols`" != xEXPORTS; then -@@ -7710,7 +7710,7 @@ - - prog) - case $host in -- *cygwin*) func_stripname '' '.exe' "$output" -+ *cygwin* | *msys*) func_stripname '' '.exe' "$output" - output=$func_stripname_result.exe;; - esac - test -n "$vinfo" && \ -@@ -7823,7 +7823,7 @@ - esac - fi - case $host in -- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) -+ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) - testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` - case :$dllsearchpath: in - *":$libdir:"*) ;; -@@ -7901,7 +7901,7 @@ - # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. - wrappers_required=no - ;; -- *cygwin* | *mingw* ) -+ *cygwin* | *msys* | *mingw* ) - if test "$build_libtool_libs" != yes; then - wrappers_required=no - fi -@@ -8029,14 +8029,14 @@ - esac - # test for cygwin because mv fails w/o .exe extensions - case $host in -- *cygwin*) -+ *cygwin* | *msys*) - exeext=.exe - func_stripname '' '.exe' "$outputname" - outputname=$func_stripname_result ;; - *) exeext= ;; - esac - case $host in -- *cygwin* | *mingw* ) -+ *cygwin* | *msys* | *mingw* ) - func_dirname_and_basename "$output" "" "." - output_name=$func_basename_result - output_path=$func_dirname_result -@@ -8343,7 +8343,7 @@ - # tests/bindir.at for full details. - tdlname=$dlname - case $host,$output,$installed,$module,$dlname in -- *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) -+ *cygwin*,*lai,yes,no,*.dll | *msys*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) - # If a -bindir argument was supplied, place the dll there. - if test "x$bindir" != x ; - then -diff -Naur gcc-6.3.0-orig/lto-plugin/configure gcc-6.3.0/lto-plugin/configure ---- gcc-6.3.0-orig/lto-plugin/configure 2015-07-02 11:30:07.000000000 +0300 -+++ gcc-6.3.0/lto-plugin/configure 2017-01-24 12:04:11.658604800 +0300 -@@ -5988,7 +5988,7 @@ - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -6330,7 +6330,7 @@ - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -6910,7 +6910,7 @@ - aix*) - symcode='[BCDT]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; - hpux*) -@@ -8525,7 +8525,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -8607,7 +8607,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' -@@ -9069,7 +9069,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -9184,7 +9184,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' -@@ -9615,7 +9615,7 @@ - export_dynamic_flag_spec=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -10516,14 +10516,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -10547,6 +10547,12 @@ - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -11183,7 +11189,7 @@ - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; -@@ -11797,7 +11803,7 @@ - - - case $host in -- *-cygwin* | *-mingw*) -+ *-cygwin* | *-msys* | *-mingw*) - # 'host' will be top-level target in the case of a target lib, - # we must compare to with_cross_host to decide if this is a native - # or cross-compiler and select where to install dlls appropriately. -diff -Naur gcc-6.3.0-orig/ltoptions.m4 gcc-6.3.0/ltoptions.m4 ---- gcc-6.3.0-orig/ltoptions.m4 2009-12-05 20:18:53.000000000 +0300 -+++ gcc-6.3.0/ltoptions.m4 2017-01-24 12:04:11.658604800 +0300 -@@ -126,7 +126,7 @@ - [enable_win32_dll=yes - - case $host in --*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) -+*-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) - AC_CHECK_TOOL(AS, as, false) - AC_CHECK_TOOL(DLLTOOL, dlltool, false) - AC_CHECK_TOOL(OBJDUMP, objdump, false) -diff -Naur gcc-6.3.0-orig/zlib/configure gcc-6.3.0/zlib/configure ---- gcc-6.3.0-orig/zlib/configure 2015-05-13 14:31:32.000000000 +0300 -+++ gcc-6.3.0/zlib/configure 2017-01-24 12:04:11.674204800 +0300 -@@ -4642,7 +4642,7 @@ - lt_cv_sys_max_cmd_len=-1; - ;; - -- cygwin* | mingw* | cegcc*) -+ cygwin* | msys* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, -@@ -4984,7 +4984,7 @@ - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - --cygwin*) -+cygwin* | msys*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' -@@ -5564,7 +5564,7 @@ - aix*) - symcode='[BCDT]' - ;; --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; - hpux*) -@@ -7454,7 +7454,7 @@ - # PIC is the default for these OSes. - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style -@@ -7536,7 +7536,7 @@ - fi - ;; - -- mingw* | cygwin* | pw32* | os2* | cegcc*) -+ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' -@@ -7998,7 +7998,7 @@ - extract_expsyms_cmds= - - case $host_os in -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -@@ -8113,7 +8113,7 @@ - fi - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' -@@ -8550,7 +8550,7 @@ - export_dynamic_flag_spec=-rdynamic - ;; - -- cygwin* | mingw* | pw32* | cegcc*) -+ cygwin* | msys* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is -@@ -9454,14 +9454,14 @@ - # libtool to hard-code these into programs - ;; - --cygwin* | mingw* | pw32* | cegcc*) -+cygwin* | msys* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in -- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ -@@ -9485,6 +9485,12 @@ - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; -+ msys*) -+ # Msys DLLs use 'msys-' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" -+ ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -@@ -10124,7 +10130,7 @@ - lt_cv_dlopen_libs= - ;; - -- cygwin*) -+ cygwin* | msys*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; diff --git a/mingw-w64-cross-gcc/0950-9.1.0-configure-msys2.patch b/mingw-w64-cross-gcc/0950-9.1.0-configure-msys2.patch new file mode 100644 index 00000000..2f42b3bb --- /dev/null +++ b/mingw-w64-cross-gcc/0950-9.1.0-configure-msys2.patch @@ -0,0 +1,5013 @@ +diff -Naur gcc-9.1.0-orig/compile gcc-9.1.0/compile +--- gcc-9.1.0-orig/compile 2014-11-16 17:07:13.000000000 +0300 ++++ gcc-9.1.0/compile 2019-07-04 09:06:52.535790200 +0300 +@@ -53,7 +53,7 @@ + MINGW*) + file_conv=mingw + ;; +- CYGWIN*) ++ CYGWIN*|MSYS*) + file_conv=cygwin + ;; + *) +@@ -67,7 +67,7 @@ + mingw/*) + file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` + ;; +- cygwin/*) ++ cygwin/*|msys/*) + file=`cygpath -m "$file" || echo "$file"` + ;; + wine/*) +diff -Naur gcc-9.1.0-orig/config/dfp.m4 gcc-9.1.0/config/dfp.m4 +--- gcc-9.1.0-orig/config/dfp.m4 2018-07-05 23:28:01.000000000 +0300 ++++ gcc-9.1.0/config/dfp.m4 2019-07-04 09:06:52.535790200 +0300 +@@ -23,7 +23,8 @@ + powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ + i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \ + i?86*-*-mingw* | x86_64*-*-mingw* | \ +- i?86*-*-cygwin* | x86_64*-*-cygwin*) ++ i?86*-*-cygwin* | x86_64*-*-cygwin* | \ ++ i?86*-*-msys* | x86_64*-*-msys*) + enable_decimal_float=yes + ;; + *) +diff -Naur gcc-9.1.0-orig/config/elf.m4 gcc-9.1.0/config/elf.m4 +--- gcc-9.1.0-orig/config/elf.m4 2016-12-08 02:16:03.000000000 +0300 ++++ gcc-9.1.0/config/elf.m4 2019-07-04 09:06:52.535790200 +0300 +@@ -15,7 +15,7 @@ + + target_elf=no + case $target in +- *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ ++ *-darwin* | *-aix* | *-cygwin* | *-msys* | *-mingw* | *-aout* | *-*coff* | \ + *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ + alpha*-dec-osf* | *-interix* | hppa[[12]]*-*-hpux* | \ + nvptx-*-none) +diff -Naur gcc-9.1.0-orig/config/lthostflags.m4 gcc-9.1.0/config/lthostflags.m4 +--- gcc-9.1.0-orig/config/lthostflags.m4 2010-12-06 03:50:04.000000000 +0300 ++++ gcc-9.1.0/config/lthostflags.m4 2019-07-04 09:06:52.551390300 +0300 +@@ -13,7 +13,7 @@ + AC_REQUIRE([AC_CANONICAL_SYSTEM]) + + case $host in +- *-cygwin* | *-mingw*) ++ *-cygwin* | *-mingw* | *-msys*) + # 'host' will be top-level target in the case of a target lib, + # we must compare to with_cross_host to decide if this is a native + # or cross-compiler and select where to install dlls appropriately. +diff -Naur gcc-9.1.0-orig/config/mmap.m4 gcc-9.1.0/config/mmap.m4 +--- gcc-9.1.0-orig/config/mmap.m4 2012-04-03 16:07:28.000000000 +0400 ++++ gcc-9.1.0/config/mmap.m4 2019-07-04 09:06:52.551390300 +0300 +@@ -42,7 +42,7 @@ + # Systems known to be in this category are Windows (all variants), + # VMS, and Darwin. + case "$host_os" in +- *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) ++ *vms* | cygwin* | msys* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) + gcc_cv_func_mmap_dev_zero=no ;; + *) + gcc_cv_func_mmap_dev_zero=yes;; +@@ -74,7 +74,7 @@ + # above for use of /dev/zero. + # Systems known to be in this category are Windows, VMS, and SCO Unix. + case "$host_os" in +- *vms* | cygwin* | pe | mingw* | sco* | udk* ) ++ *vms* | cygwin* | msys* | pe | mingw* | sco* | udk* ) + gcc_cv_func_mmap_anon=no ;; + *) + gcc_cv_func_mmap_anon=yes;; +diff -Naur gcc-9.1.0-orig/config/picflag.m4 gcc-9.1.0/config/picflag.m4 +--- gcc-9.1.0-orig/config/picflag.m4 2017-01-04 11:29:34.000000000 +0300 ++++ gcc-9.1.0/config/picflag.m4 2019-07-04 09:06:52.551390300 +0300 +@@ -25,6 +25,8 @@ + ;; + i[[34567]]86-*-cygwin* | x86_64-*-cygwin*) + ;; ++ i[[34567]]86-*-msys* | x86_64-*-msys*) ++ ;; + i[[34567]]86-*-mingw* | x86_64-*-mingw*) + ;; + i[[34567]]86-*-interix[[3-9]]*) +diff -Naur gcc-9.1.0-orig/config/tcl.m4 gcc-9.1.0/config/tcl.m4 +--- gcc-9.1.0-orig/config/tcl.m4 2015-07-24 21:20:44.000000000 +0300 ++++ gcc-9.1.0/config/tcl.m4 2019-07-04 09:06:52.551390300 +0300 +@@ -33,7 +33,7 @@ + + # First check to see if --with-tcl was specified. + case "${host}" in +- *-*-cygwin*) platDir="win" ;; ++ *-*-cygwin* | *-*-msys*) platDir="win" ;; + *) platDir="unix" ;; + esac + if test x"${with_tclconfig}" != x ; then +@@ -165,7 +165,7 @@ + + # then check for a private Tk library + case "${host}" in +- *-*-cygwin*) platDir="win" ;; ++ *-*-cygwin* | *-*-msys*) platDir="win" ;; + *) platDir="unix" ;; + esac + if test x"${ac_cv_c_tkconfig}" = x ; then +diff -Naur gcc-9.1.0-orig/config.guess gcc-9.1.0/config.guess +--- gcc-9.1.0-orig/config.guess 2019-01-03 14:28:27.000000000 +0300 ++++ gcc-9.1.0/config.guess 2019-07-04 09:06:52.551390300 +0300 +@@ -909,6 +909,9 @@ + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) + echo x86_64-pc-cygwin + exit ;; ++ amd64:MSYS*:*:* | x86_64:MSYS*:*:*) ++ echo x86_64-unknown-msys ++ exit ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" + exit ;; +diff -Naur gcc-9.1.0-orig/config.rpath gcc-9.1.0/config.rpath +--- gcc-9.1.0-orig/config.rpath 2011-02-13 14:45:53.000000000 +0300 ++++ gcc-9.1.0/config.rpath 2019-07-04 09:06:52.566990300 +0300 +@@ -109,7 +109,7 @@ + hardcode_minus_L=no + + case "$host_os" in +- cygwin* | mingw* | pw32*) ++ cygwin* | msys* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -149,7 +149,7 @@ + ld_shlibs=no + fi + ;; +- cygwin* | mingw* | pw32*) ++ cygwin* | msys* | mingw* | pw32*) + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' +@@ -268,7 +268,7 @@ + ;; + bsdi4*) + ;; +- cygwin* | mingw* | pw32*) ++ cygwin* | msys* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -437,7 +437,7 @@ + ;; + bsdi4*) + ;; +- cygwin* | mingw* | pw32*) ++ cygwin* | msys* | mingw* | pw32*) + shrext=.dll + ;; + darwin* | rhapsody*) +diff -Naur gcc-9.1.0-orig/configure gcc-9.1.0/configure +--- gcc-9.1.0-orig/configure 2019-04-14 12:52:22.000000000 +0300 ++++ gcc-9.1.0/configure 2019-07-04 09:06:52.566990300 +0300 +@@ -3086,7 +3086,7 @@ + # Configure extra directories which are host specific + + case "${host}" in +- *-cygwin*) ++ *-cygwin* | *-msys*) + configdirs="$configdirs libtermcap" ;; + esac + +@@ -3521,7 +3521,7 @@ + # Disable the go frontend on systems where it is known to not work. Please keep + # this in sync with contrib/config-list.mk. + case "${target}" in +-*-*-darwin* | *-*-cygwin* | *-*-mingw*) ++*-*-darwin* | *-*-cygwin* | *-*-msys* | *-*-mingw*) + unsupported_languages="$unsupported_languages go" + ;; + esac +@@ -3534,7 +3534,7 @@ + # PR 46986 + noconfigdirs="$noconfigdirs target-libgo" + ;; +- *-*-cygwin* | *-*-mingw*) ++ *-*-cygwin* | *-*-msys* | *-*-mingw*) + noconfigdirs="$noconfigdirs target-libgo" + ;; + esac +@@ -3804,7 +3804,7 @@ + i[3456789]86-*-mingw*) + target_configdirs="$target_configdirs target-winsup" + ;; +- *-*-cygwin*) ++ *-*-cygwin* | *-*-msys*) + target_configdirs="$target_configdirs target-libtermcap target-winsup" + noconfigdirs="$noconfigdirs target-libgloss" + # always build newlib if winsup directory is present. +@@ -3949,7 +3949,7 @@ + i[3456789]86-*-msdosdjgpp*) + host_makefile_frag="config/mh-djgpp" + ;; +- *-cygwin*) ++ *-cygwin* | *-msys*) + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 + $as_echo_n "checking to see if cat works as expected... " >&6; } +@@ -6093,7 +6093,7 @@ + + target_elf=no + case $target in +- *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ ++ *-darwin* | *-aix* | *-cygwin* | *-msys* | *-mingw* | *-aout* | *-*coff* | \ + *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ + alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ + nvptx-*-none) +@@ -6111,7 +6111,7 @@ + else + if test x"$default_enable_lto" = x"yes" ; then + case $target in +- *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; ++ *-apple-darwin[912]* | *-cygwin* | *-msys* | *-mingw* | *djgpp*) ;; + # On other non-ELF platforms, LTO has yet to be validated. + *) enable_lto=no ;; + esac +@@ -6122,7 +6122,7 @@ + # warn during gcc/ subconfigure; unless you're bootstrapping with + # -flto it won't be needed until after installation anyway. + case $target in +- *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; ++ *-cygwin* | *-msys* | *-mingw* | *-apple-darwin* | *djgpp*) ;; + *) if test x"$enable_lto" = x"yes"; then + as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 + fi +@@ -6132,7 +6132,7 @@ + # Among non-ELF, only Windows platforms support the lto-plugin so far. + # Build it unless LTO was explicitly disabled. + case $target in +- *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; ++ *-cygwin* | *-msys* | *-mingw*) build_lto_plugin=$enable_lto ;; + *) ;; + esac + +@@ -7096,7 +7096,7 @@ + case "${host}" in + *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; + *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; +- *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; ++ *-*-mingw* | *-*-cygwin | *-*-msys) RPATH_ENVVAR=PATH ;; + *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; + esac + +@@ -7609,7 +7609,7 @@ + case " $target_configargs " in + *" --with-newlib "*) + case "$target" in +- *-cygwin*) ++ *-cygwin* | *-msys*) + FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' + ;; + esac +diff -Naur gcc-9.1.0-orig/configure.ac gcc-9.1.0/configure.ac +--- gcc-9.1.0-orig/configure.ac 2019-04-14 12:52:22.000000000 +0300 ++++ gcc-9.1.0/configure.ac 2019-07-04 09:06:52.566990300 +0300 +@@ -403,7 +403,7 @@ + # Configure extra directories which are host specific + + case "${host}" in +- *-cygwin*) ++ *-cygwin* | *-msys*) + configdirs="$configdirs libtermcap" ;; + esac + +@@ -803,7 +803,7 @@ + # Disable the go frontend on systems where it is known to not work. Please keep + # this in sync with contrib/config-list.mk. + case "${target}" in +-*-*-darwin* | *-*-cygwin* | *-*-mingw*) ++*-*-darwin* | *-*-cygwin* | *-*-msys* | *-*-mingw*) + unsupported_languages="$unsupported_languages go" + ;; + esac +@@ -816,7 +816,7 @@ + # PR 46986 + noconfigdirs="$noconfigdirs target-libgo" + ;; +- *-*-cygwin* | *-*-mingw*) ++ *-*-cygwin* | *-*-msys* | *-*-mingw*) + noconfigdirs="$noconfigdirs target-libgo" + ;; + esac +@@ -1086,7 +1086,7 @@ + i[[3456789]]86-*-mingw*) + target_configdirs="$target_configdirs target-winsup" + ;; +- *-*-cygwin*) ++ *-*-cygwin* | *-*-msys*) + target_configdirs="$target_configdirs target-libtermcap target-winsup" + noconfigdirs="$noconfigdirs target-libgloss" + # always build newlib if winsup directory is present. +@@ -1231,7 +1231,7 @@ + i[[3456789]]86-*-msdosdjgpp*) + host_makefile_frag="config/mh-djgpp" + ;; +- *-cygwin*) ++ *-cygwin* | *-msys*) + ACX_CHECK_CYGWIN_CAT_WORKS + host_makefile_frag="config/mh-cygwin" + ;; +@@ -1723,7 +1723,7 @@ + build_lto_plugin=yes + ],[if test x"$default_enable_lto" = x"yes" ; then + case $target in +- *-apple-darwin[[912]]* | *-cygwin* | *-mingw* | *djgpp*) ;; ++ *-apple-darwin[[912]]* | *-cygwin* | *-msys* | *-mingw* | *djgpp*) ;; + # On other non-ELF platforms, LTO has yet to be validated. + *) enable_lto=no ;; + esac +@@ -1734,7 +1734,7 @@ + # warn during gcc/ subconfigure; unless you're bootstrapping with + # -flto it won't be needed until after installation anyway. + case $target in +- *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; ++ *-cygwin* | *-msys* | *-mingw* | *-apple-darwin* | *djgpp*) ;; + *) if test x"$enable_lto" = x"yes"; then + AC_MSG_ERROR([LTO support is not enabled for this target.]) + fi +@@ -1744,7 +1744,7 @@ + # Among non-ELF, only Windows platforms support the lto-plugin so far. + # Build it unless LTO was explicitly disabled. + case $target in +- *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; ++ *-cygwin* | *-msys* | *-mingw*) build_lto_plugin=$enable_lto ;; + *) ;; + esac + ]) +@@ -2617,7 +2617,7 @@ + case "${host}" in + *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; + *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; +- *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; ++ *-*-mingw* | *-*-cygwin | *-*-msys) RPATH_ENVVAR=PATH ;; + *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; + esac + +@@ -3125,7 +3125,7 @@ + case " $target_configargs " in + *" --with-newlib "*) + case "$target" in +- *-cygwin*) ++ *-cygwin* | *-msys*) + FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' + ;; + esac +diff -Naur gcc-9.1.0-orig/contrib/config-list.mk gcc-9.1.0/contrib/config-list.mk +--- gcc-9.1.0-orig/contrib/config-list.mk 2019-01-17 15:34:28.000000000 +0300 ++++ gcc-9.1.0/contrib/config-list.mk 2019-07-04 09:06:52.566990300 +0300 +@@ -123,7 +123,7 @@ + TGT=`echo $@ | awk 'BEGIN { FS = "OPT" }; { print $$1 }'` && \ + TGT=`$(GCC_SRC_DIR)/config.sub $$TGT` && \ + case $$TGT in \ +- *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) \ ++ *-*-darwin* | *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-aix*) \ + ADDITIONAL_LANGUAGES=""; \ + ;; \ + *) \ +diff -Naur gcc-9.1.0-orig/fixincludes/configure gcc-9.1.0/fixincludes/configure +--- gcc-9.1.0-orig/fixincludes/configure 2018-10-31 20:03:16.000000000 +0300 ++++ gcc-9.1.0/fixincludes/configure 2019-07-04 09:06:52.582590300 +0300 +@@ -5347,7 +5347,7 @@ + # Systems known to be in this category are Windows (all variants), + # VMS, and Darwin. + case "$host_os" in +- *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) ++ *vms* | cygwin* | msys* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) + gcc_cv_func_mmap_dev_zero=no ;; + *) + gcc_cv_func_mmap_dev_zero=yes;; +@@ -5404,7 +5404,7 @@ + # above for use of /dev/zero. + # Systems known to be in this category are Windows, VMS, and SCO Unix. + case "$host_os" in +- *vms* | cygwin* | pe | mingw* | sco* | udk* ) ++ *vms* | cygwin* | msys* | pe | mingw* | sco* | udk* ) + gcc_cv_func_mmap_anon=no ;; + *) + gcc_cv_func_mmap_anon=yes;; +diff -Naur gcc-9.1.0-orig/fixincludes/mkfixinc.sh gcc-9.1.0/fixincludes/mkfixinc.sh +--- gcc-9.1.0-orig/fixincludes/mkfixinc.sh 2016-06-22 00:57:20.000000000 +0300 ++++ gcc-9.1.0/fixincludes/mkfixinc.sh 2019-07-04 09:06:52.582590300 +0300 +@@ -12,6 +12,9 @@ + # Check for special fix rules for particular targets + case $machine in + i?86-*-cygwin* | \ ++ x86_64-*-cygwin* | \ ++ i?86-*-msys* | \ ++ x86_64-*-msys* | \ + i?86-*-mingw32* | \ + x86_64-*-mingw32* | \ + powerpc-*-eabisim* | \ +diff -Naur gcc-9.1.0-orig/gcc/ada/Makefile.rtl gcc-9.1.0/gcc/ada/Makefile.rtl +--- gcc-9.1.0-orig/gcc/ada/Makefile.rtl 2019-07-04 09:00:42.500639800 +0300 ++++ gcc-9.1.0/gcc/ada/Makefile.rtl 2019-07-04 09:06:52.582590300 +0300 +@@ -1946,15 +1946,15 @@ + EH_MECHANISM=-gcc + endif + +-# Cygwin/Mingw32 +-ifeq ($(strip $(filter-out cygwin% mingw32% pe,$(target_os))),) ++# Cygwin/MSYS/Mingw32 ++ifeq ($(strip $(filter-out cygwin% msys% mingw32% pe,$(target_os))),) + # Cygwin provides a full Posix environment, and so we use the default + # versions g-socthi rather than the Windows-specific MinGW version. + # Ideally we would use all the default versions for Cygwin and none + # of the MinGW versions, but for historical reasons the Cygwin port + # has always been a CygMing frankenhybrid and it is a long-term project + # to disentangle them. +- ifeq ($(strip $(filter-out cygwin%,$(target_os))),) ++ ifeq ($(strip $(filter-out cygwin% msys%,$(target_os))),) + LIBGNAT_TARGET_PAIRS = \ + g-socthi.ads&5 + $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; } +@@ -13185,7 +13188,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -13527,7 +13530,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -14107,7 +14110,7 @@ + aix*) + symcode='[BCDT]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; + hpux*) +@@ -15721,7 +15724,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -15803,7 +15806,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' +@@ -16265,7 +16268,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -16380,7 +16383,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' +@@ -16811,7 +16814,7 @@ + export_dynamic_flag_spec=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -17712,14 +17715,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -17743,6 +17746,12 @@ + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -18379,7 +18388,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; +@@ -19601,7 +19610,7 @@ + esac + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' +@@ -20570,7 +20579,7 @@ + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; +- mingw* | cygwin* | os2* | pw32* | cegcc*) ++ mingw* | msys* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -21110,7 +21119,7 @@ + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + ;; + *) +@@ -21374,14 +21383,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -21404,6 +21413,11 @@ + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -23636,7 +23650,7 @@ + test $ac_status = 0; }; } + then + case $target_os in +- win32 | pe | cygwin* | mingw32*) ++ win32 | pe | cygwin* | msys* | mingw32*) + # Need to check that we generated the correct relocation for the + # .debug_frame section. This was fixed for binutils 2.21. + gcc_cv_as_cfi_sections_directive=no +@@ -25887,7 +25901,7 @@ + + i[34567]86-*-* | x86_64-*-*) + case $target_os in +- cygwin*) ++ cygwin* | msys*) + # Full C++ conformance when using a shared libstdc++-v3 requires some + # support from the Cygwin DLL, which in more recent versions exports + # wrappers to aid in interposing and redirecting operators new, delete, +@@ -25913,7 +25927,7 @@ + + esac + case $target_os in +- cygwin* | pe | mingw32*) ++ cygwin* | msys* | pe | mingw32*) + # Recent binutils allows the three-operand form of ".comm" on PE. This + # definition is used unconditionally to initialise the default state of + # the target option variable that governs usage of the feature. +diff -Naur gcc-9.1.0-orig/gcc/configure.ac gcc-9.1.0/gcc/configure.ac +--- gcc-9.1.0-orig/gcc/configure.ac 2019-04-15 10:39:20.000000000 +0300 ++++ gcc-9.1.0/gcc/configure.ac 2019-07-04 09:06:52.598190300 +0300 +@@ -1906,7 +1906,7 @@ + of the registry key])],,) + + case $host_os in +- win32 | pe | cygwin* | mingw32*) ++ win32 | pe | cygwin* | msys* | mingw32*) + if test "x$enable_win32_registry" != xno; then + AC_SEARCH_LIBS(RegOpenKeyExA, advapi32,, [enable_win32_registry=no]) + fi +@@ -2938,7 +2938,7 @@ + .cfi_startproc + .cfi_endproc], + [case $target_os in +- win32 | pe | cygwin* | mingw32*) ++ win32 | pe | cygwin* | msys* | mingw32*) + # Need to check that we generated the correct relocation for the + # .debug_frame section. This was fixed for binutils 2.21. + gcc_cv_as_cfi_sections_directive=no +@@ -4302,7 +4302,7 @@ + i[34567]86-*-* | x86_64-*-*) + changequote([,])dnl + case $target_os in +- cygwin*) ++ cygwin* | msys*) + # Full C++ conformance when using a shared libstdc++-v3 requires some + # support from the Cygwin DLL, which in more recent versions exports + # wrappers to aid in interposing and redirecting operators new, delete, +@@ -4321,7 +4321,7 @@ + Cygwin DLL exports wrappers to support libstdc++ function replacement.]) + esac + case $target_os in +- cygwin* | pe | mingw32*) ++ cygwin* | msys* | pe | mingw32*) + # Recent binutils allows the three-operand form of ".comm" on PE. This + # definition is used unconditionally to initialise the default state of + # the target option variable that governs usage of the feature. +diff -Naur gcc-9.1.0-orig/libada/configure gcc-9.1.0/libada/configure +--- gcc-9.1.0-orig/libada/configure 2019-05-03 11:01:59.000000000 +0300 ++++ gcc-9.1.0/libada/configure 2019-07-04 09:06:52.598190300 +0300 +@@ -3147,6 +3147,8 @@ + ;; + i[34567]86-*-cygwin* | x86_64-*-cygwin*) + ;; ++ i[34567]86-*-msys* | x86_64-*-msys*) ++ ;; + i[34567]86-*-mingw* | x86_64-*-mingw*) + ;; + i[34567]86-*-interix[3-9]*) +diff -Naur gcc-9.1.0-orig/libatomic/configure gcc-9.1.0/libatomic/configure +--- gcc-9.1.0-orig/libatomic/configure 2019-05-03 11:01:59.000000000 +0300 ++++ gcc-9.1.0/libatomic/configure 2019-07-04 09:06:52.613790400 +0300 +@@ -5625,7 +5625,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -5967,7 +5967,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -6547,7 +6547,7 @@ + aix*) + symcode='[BCDT]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; + hpux*) +@@ -8430,7 +8430,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -8512,7 +8512,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' +@@ -8974,7 +8974,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -9089,7 +9089,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' +@@ -9520,7 +9520,7 @@ + export_dynamic_flag_spec=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -10421,14 +10421,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -10452,6 +10452,12 @@ + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -11088,7 +11094,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; +@@ -11702,7 +11708,7 @@ + + + case $host in +- *-cygwin* | *-mingw*) ++ *-cygwin* | *-msys* | *-mingw*) + # 'host' will be top-level target in the case of a target lib, + # we must compare to with_cross_host to decide if this is a native + # or cross-compiler and select where to install dlls appropriately. +diff -Naur gcc-9.1.0-orig/libatomic/configure.tgt gcc-9.1.0/libatomic/configure.tgt +--- gcc-9.1.0-orig/libatomic/configure.tgt 2019-01-01 15:31:55.000000000 +0300 ++++ gcc-9.1.0/libatomic/configure.tgt 2019-07-04 09:06:52.613790400 +0300 +@@ -137,7 +137,7 @@ + *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu \ + | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly* \ + | *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11* \ +- | *-*-darwin* | *-*-aix* | *-*-cygwin*) ++ | *-*-darwin* | *-*-aix* | *-*-cygwin* | *-*-msys*) + # POSIX system. The OS is supported. + config_path="${config_path} posix" + ;; +diff -Naur gcc-9.1.0-orig/libbacktrace/configure gcc-9.1.0/libbacktrace/configure +--- gcc-9.1.0-orig/libbacktrace/configure 2019-05-03 11:01:59.000000000 +0300 ++++ gcc-9.1.0/libbacktrace/configure 2019-07-04 09:06:52.613790400 +0300 +@@ -6030,7 +6030,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -6372,7 +6372,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -6952,7 +6952,7 @@ + aix*) + symcode='[BCDT]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; + hpux*) +@@ -8567,7 +8567,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -8649,7 +8649,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' +@@ -9111,7 +9111,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -9226,7 +9226,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' +@@ -9657,7 +9657,7 @@ + export_dynamic_flag_spec=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -10558,14 +10558,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -10589,6 +10589,12 @@ + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -11225,7 +11231,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; +diff -Naur gcc-9.1.0-orig/libcc1/configure gcc-9.1.0/libcc1/configure +--- gcc-9.1.0-orig/libcc1/configure 2018-10-31 20:03:16.000000000 +0300 ++++ gcc-9.1.0/libcc1/configure 2019-07-04 09:06:52.629390400 +0300 +@@ -5314,7 +5314,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -5656,7 +5656,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -6236,7 +6236,7 @@ + aix*) + symcode='[BCDT]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; + hpux*) +@@ -7850,7 +7850,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -7932,7 +7932,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' +@@ -8394,7 +8394,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -8509,7 +8509,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' +@@ -8940,7 +8940,7 @@ + export_dynamic_flag_spec=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -9841,14 +9841,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -9872,6 +9872,12 @@ + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; ++ msys*) ++ # MSYS DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -10508,7 +10514,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; +@@ -12136,7 +12142,7 @@ + esac + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' +@@ -13105,7 +13111,7 @@ + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; +- mingw* | cygwin* | os2* | pw32* | cegcc*) ++ mingw* | cygwin* | msys* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -13645,7 +13651,7 @@ + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + ;; + *) +@@ -13909,7 +13915,7 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no +@@ -13939,6 +13945,11 @@ + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + ;; ++ msys*) ++ # MSYS DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +diff -Naur gcc-9.1.0-orig/libdecnumber/configure gcc-9.1.0/libdecnumber/configure +--- gcc-9.1.0-orig/libdecnumber/configure 2018-10-31 20:03:16.000000000 +0300 ++++ gcc-9.1.0/libdecnumber/configure 2019-07-04 09:06:52.629390400 +0300 +@@ -4764,7 +4764,8 @@ + powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ + i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \ + i?86*-*-mingw* | x86_64*-*-mingw* | \ +- i?86*-*-cygwin* | x86_64*-*-cygwin*) ++ i?86*-*-cygwin* | x86_64*-*-cygwin* | \ ++ i?86*-*-msys* | x86_64*-*-msys*) + enable_decimal_float=yes + ;; + *) +diff -Naur gcc-9.1.0-orig/libffi/acinclude.m4 gcc-9.1.0/libffi/acinclude.m4 +--- gcc-9.1.0-orig/libffi/acinclude.m4 2016-03-03 02:28:11.000000000 +0300 ++++ gcc-9.1.0/libffi/acinclude.m4 2019-07-04 09:06:52.629390400 +0300 +@@ -37,7 +37,7 @@ + # Systems known to be in this category are Windows (all variants), + # VMS, and Darwin. + case "$host_os" in +- vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) ++ vms* | cygwin* | msys* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) + ac_cv_func_mmap_dev_zero=no ;; + *) + ac_cv_func_mmap_dev_zero=yes;; +@@ -69,7 +69,7 @@ + # above for use of /dev/zero. + # Systems known to be in this category are Windows, VMS, and SCO Unix. + case "$host_os" in +- vms* | cygwin* | pe | mingw* | sco* | udk* ) ++ vms* | cygwin* | msys* | pe | mingw* | sco* | udk* ) + ac_cv_func_mmap_anon=no ;; + *) + ac_cv_func_mmap_anon=yes;; +diff -Naur gcc-9.1.0-orig/libffi/configure gcc-9.1.0/libffi/configure +--- gcc-9.1.0-orig/libffi/configure 2018-10-31 20:03:16.000000000 +0300 ++++ gcc-9.1.0/libffi/configure 2019-07-04 09:06:52.644990400 +0300 +@@ -5821,7 +5821,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -6163,7 +6163,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -6743,7 +6743,7 @@ + aix*) + symcode='[BCDT]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; + hpux*) +@@ -8627,7 +8627,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -8709,7 +8709,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' +@@ -9171,7 +9171,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -9286,7 +9286,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' +@@ -9717,7 +9717,7 @@ + export_dynamic_flag_spec=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -10618,14 +10618,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -10649,6 +10649,12 @@ + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -11285,7 +11291,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; +@@ -12507,7 +12513,7 @@ + esac + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' +@@ -13476,7 +13482,7 @@ + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; +- mingw* | cygwin* | os2* | pw32* | cegcc*) ++ mingw* | cygwin* | msys* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -14016,7 +14022,7 @@ + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + ;; + *) +@@ -14280,14 +14286,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -14310,6 +14316,11 @@ + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + ;; ++ msys*) ++ # MSYS DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -15052,7 +15063,7 @@ + # Systems known to be in this category are Windows (all variants), + # VMS, and Darwin. + case "$host_os" in +- vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) ++ vms* | cygwin* | msys* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) + ac_cv_func_mmap_dev_zero=no ;; + *) + ac_cv_func_mmap_dev_zero=yes;; +@@ -15109,7 +15120,7 @@ + # above for use of /dev/zero. + # Systems known to be in this category are Windows, VMS, and SCO Unix. + case "$host_os" in +- vms* | cygwin* | pe | mingw* | sco* | udk* ) ++ vms* | cygwin* | msys* | pe | mingw* | sco* | udk* ) + ac_cv_func_mmap_anon=no ;; + *) + ac_cv_func_mmap_anon=yes;; +diff -Naur gcc-9.1.0-orig/libffi/configure.host gcc-9.1.0/libffi/configure.host +--- gcc-9.1.0-orig/libffi/configure.host 2018-05-08 13:29:16.000000000 +0300 ++++ gcc-9.1.0/libffi/configure.host 2019-07-04 09:06:52.644990400 +0300 +@@ -64,15 +64,15 @@ + TARGET=X86_FREEBSD; TARGETDIR=x86 + ;; + +- i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix* \ +- | x86_64-*-cygwin* | x86_64-*-mingw*) ++ i?86-win32* | i?86-*-cygwin* | i?86-*-msys* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix* \ ++ | x86_64-*-cygwin* | x86_64-*-msys* | x86_64-*-mingw*) + TARGETDIR=x86 + if test $ac_cv_sizeof_size_t = 4; then + TARGET=X86_WIN32 + else + TARGET=X86_WIN64 + fi +- # All mingw/cygwin/win32 builds require -no-undefined for sharedlib. ++ # All mingw/cygwin/msys/win32 builds require -no-undefined for sharedlib. + # We must also check with_cross_host to decide if this is a native + # or cross-build and select where to install dlls appropriately. + if test -n "$with_cross_host" && +diff -Naur gcc-9.1.0-orig/libgcc/configure gcc-9.1.0/libgcc/configure +--- gcc-9.1.0-orig/libgcc/configure 2018-10-31 20:03:16.000000000 +0300 ++++ gcc-9.1.0/libgcc/configure 2019-07-04 09:06:52.644990400 +0300 +@@ -2386,6 +2386,8 @@ + ;; + i[34567]86-*-cygwin* | x86_64-*-cygwin*) + ;; ++ i[34567]86-*-msys* | x86_64-*-msys*) ++ ;; + i[34567]86-*-mingw* | x86_64-*-mingw*) + ;; + i[34567]86-*-interix[3-9]*) +@@ -4727,7 +4729,8 @@ + powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ + i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \ + i?86*-*-mingw* | x86_64*-*-mingw* | \ +- i?86*-*-cygwin* | x86_64*-*-cygwin*) ++ i?86*-*-cygwin* | x86_64*-*-cygwin* | \ ++ i?86*-*-msys* | x86_64*-*-msys*) + enable_decimal_float=yes + ;; + *) +diff -Naur gcc-9.1.0-orig/libgcc/gthr-posix.h gcc-9.1.0/libgcc/gthr-posix.h +--- gcc-9.1.0-orig/libgcc/gthr-posix.h 2019-01-05 03:57:30.000000000 +0300 ++++ gcc-9.1.0/libgcc/gthr-posix.h 2019-07-04 09:06:52.644990400 +0300 +@@ -82,7 +82,7 @@ + # define __GTHREAD_COND_INIT_FUNCTION __gthread_cond_init_function + #endif + +-#if SUPPORTS_WEAK && GTHREAD_USE_WEAK ++#if SUPPORTS_WEAK && GTHREAD_USE_WEAK && !defined(__MINGW32__) + # ifndef __gthrw_pragma + # define __gthrw_pragma(pragma) + # endif +diff -Naur gcc-9.1.0-orig/libgfortran/acinclude.m4 gcc-9.1.0/libgfortran/acinclude.m4 +--- gcc-9.1.0-orig/libgfortran/acinclude.m4 2018-11-22 10:58:29.000000000 +0300 ++++ gcc-9.1.0/libgfortran/acinclude.m4 2019-07-04 09:06:52.660590400 +0300 +@@ -88,7 +88,7 @@ + [Define to 1 if the target supports #pragma weak]) + fi + case "$host" in +- *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* ) ++ *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-musl* ) + AC_DEFINE(GTHREAD_USE_WEAK, 0, + [Define to 0 if the target shouldn't use #pragma weak]) + ;; +diff -Naur gcc-9.1.0-orig/libgfortran/configure gcc-9.1.0/libgfortran/configure +--- gcc-9.1.0-orig/libgfortran/configure 2019-05-03 11:01:59.000000000 +0300 ++++ gcc-9.1.0/libgfortran/configure 2019-07-04 09:06:52.660590400 +0300 +@@ -7192,7 +7192,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -7534,7 +7534,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -8114,7 +8114,7 @@ + aix*) + symcode='[BCDT]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; + hpux*) +@@ -9733,7 +9733,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -9815,7 +9815,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' +@@ -10277,7 +10277,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -10392,7 +10392,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' +@@ -10829,7 +10829,7 @@ + export_dynamic_flag_spec=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -11733,14 +11733,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -11764,6 +11764,12 @@ + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -12403,7 +12409,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; +@@ -13032,7 +13038,7 @@ + + + case $host in +- *-cygwin* | *-mingw*) ++ *-cygwin* | *-msys* | *-mingw*) + # 'host' will be top-level target in the case of a target lib, + # we must compare to with_cross_host to decide if this is a native + # or cross-compiler and select where to install dlls appropriately. +@@ -13602,7 +13608,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -13684,7 +13690,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_FC='-DDLL_EXPORT' +@@ -14131,7 +14137,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -14246,7 +14252,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_FC='-L$libdir' +@@ -14671,7 +14677,7 @@ + export_dynamic_flag_spec_FC=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -15369,14 +15375,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -15399,6 +15405,11 @@ + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -26363,7 +26374,7 @@ + + fi + case "$host" in +- *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* ) ++ *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-musl* ) + + $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h + +diff -Naur gcc-9.1.0-orig/libgo/config/libtool.m4 gcc-9.1.0/libgo/config/libtool.m4 +--- gcc-9.1.0-orig/libgo/config/libtool.m4 2018-10-31 23:46:17.000000000 +0300 ++++ gcc-9.1.0/libgo/config/libtool.m4 2019-07-04 09:06:52.676190500 +0300 +@@ -1496,7 +1496,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -1738,7 +1738,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; +@@ -2209,14 +2209,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -2240,6 +2240,12 @@ + m4_if([$1], [],[ + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ++m4_if([$1], [],[ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' +@@ -3006,7 +3012,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -3290,7 +3296,7 @@ + [AC_REQUIRE([AC_CANONICAL_HOST])dnl + LIBM= + case $host in +-*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) ++*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-msys* | *-*-haiku* | *-*-pw32* | *-*-darwin*) + # These system don't have libm, or don't need it + ;; + *-ncr-sysv4.3*) +@@ -3365,7 +3371,7 @@ + aix*) + symcode='[[BCDT]]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[[ABCDGISTW]]' + ;; + hpux*) +@@ -3612,7 +3618,7 @@ + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; +- mingw* | cygwin* | os2* | pw32* | cegcc*) ++ mingw* | msys* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -3925,7 +3931,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -4008,7 +4014,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + m4_if([$1], [GCJ], [], +@@ -4241,7 +4247,7 @@ + pw32*) + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" + ;; +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' + ;; + *) +@@ -4293,7 +4299,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -4408,7 +4414,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' +@@ -4781,7 +4787,7 @@ + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -5725,7 +5731,7 @@ + esac + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' +diff -Naur gcc-9.1.0-orig/libgo/config/ltmain.sh gcc-9.1.0/libgo/config/ltmain.sh +--- gcc-9.1.0-orig/libgo/config/ltmain.sh 2014-11-12 06:51:36.000000000 +0300 ++++ gcc-9.1.0/libgo/config/ltmain.sh 2019-07-04 09:06:52.676190500 +0300 +@@ -976,7 +976,7 @@ + + + case $host in +- *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* ) ++ *cygwin* | *msys* | *mingw* | *pw32* | *cegcc* | *solaris2* ) + # don't eliminate duplications in $postdeps and $predeps + opt_duplicate_compiler_generated_deps=: + ;; +@@ -1453,7 +1453,7 @@ + + # On Cygwin there's no "real" PIC flag so we must build both object types + case $host_os in +- cygwin* | mingw* | pw32* | os2* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | os2* | cegcc*) + pic_mode=default + ;; + esac +@@ -2279,7 +2279,7 @@ + 'exit $?' + tstripme="$stripme" + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + case $realname in + *.dll.a) + tstripme="" +@@ -2385,7 +2385,7 @@ + + # Do a test to see if this is really a libtool program. + case $host in +- *cygwin* | *mingw*) ++ *cygwin* | *msys* | *mingw*) + if func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + wrapper=$func_ltwrapper_scriptname_result +@@ -2460,7 +2460,7 @@ + # remove .exe since cygwin /usr/bin/install will append another + # one anyway + case $install_prog,$host in +- */usr/bin/install*,*cygwin*) ++ */usr/bin/install*,*cygwin*|*/usr/bin/install*,*msys*) + case $file:$destfile in + *.exe:*.exe) + # this is ok +@@ -2595,7 +2595,7 @@ + $RM $export_symbols + ${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' < "$nlist" > "$export_symbols" + case $host in +- *cygwin* | *mingw* | *cegcc* ) ++ *cygwin* | *msys* | *mingw* | *cegcc* ) + echo EXPORTS > "$output_objdir/$outputname.def" + cat "$export_symbols" >> "$output_objdir/$outputname.def" + ;; +@@ -2607,7 +2607,7 @@ + $GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T + $MV "$nlist"T "$nlist" + case $host in +- *cygwin* | *mingw* | *cegcc* ) ++ *cygwin* | *msys* | *mingw* | *cegcc* ) + echo EXPORTS > "$output_objdir/$outputname.def" + cat "$nlist" >> "$output_objdir/$outputname.def" + ;; +@@ -2663,7 +2663,7 @@ + } lt_dlsymlist; + " + case $host in +- *cygwin* | *mingw* | *cegcc* ) ++ *cygwin* | *msys* | *mingw* | *cegcc* ) + echo >> "$output_objdir/$my_dlsyms" "\ + /* DATA imports from DLLs on WIN32 con't be const, because + runtime relocations are performed -- see ld's documentation +@@ -2749,7 +2749,7 @@ + # Transform the symbol file into the correct name. + symfileobj="$output_objdir/${my_outputname}S.$objext" + case $host in +- *cygwin* | *mingw* | *cegcc* ) ++ *cygwin* | *msys* | *mingw* | *cegcc* ) + if test -f "$output_objdir/$my_outputname.def"; then + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` +@@ -3192,7 +3192,7 @@ + func_to_host_path_result=`( cmd //c echo "$1" ) 2>/dev/null | + $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` + ;; +- *cygwin* ) ++ *cygwin* | *msys* ) + func_to_host_path_result=`cygpath -w "$1" | + $SED -e "$lt_sed_naive_backslashify"` + ;; +@@ -3265,7 +3265,7 @@ + ( cmd //c echo "$func_to_host_pathlist_tmp1" ) 2>/dev/null | + $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` + ;; +- *cygwin* ) ++ *cygwin* | *msys* ) + func_to_host_pathlist_result=`cygpath -w -p "$func_to_host_pathlist_tmp1" | + $SED -e "$lt_sed_naive_backslashify"` + ;; +@@ -3571,7 +3571,7 @@ + { + EOF + case "$host" in +- *mingw* | *cygwin* ) ++ *mingw* | *cygwin* | *msys* ) + # make stdout use "unix" line endings + echo " setmode(1,_O_BINARY);" + ;; +@@ -4233,7 +4233,7 @@ + { + $opt_debug + case $host in +- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) ++ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + # It is impossible to link a dll without this setting, and + # we shouldn't force the makefile maintainer to figure out + # which system we are compiling for in order to pass an extra +@@ -4713,7 +4713,7 @@ + ;; + esac + case $host in +- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) ++ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$dir:"*) ;; +@@ -4733,7 +4733,7 @@ + -l*) + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then + case $host in +- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) ++ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) + # These systems don't actually have a C or math library (as such) + continue + ;; +@@ -4813,7 +4813,7 @@ + + -no-install) + case $host in +- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) ++ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) + # The PATH hackery in wrapper scripts is required on Windows + # and Darwin in order for the loader to find any dlls it needs. + func_warning "\`-no-install' is ignored for $host" +@@ -5772,7 +5772,7 @@ + if test -n "$library_names" && + { test "$use_static_libs" = no || test -z "$old_library"; }; then + case $host in +- *cygwin* | *mingw* | *cegcc*) ++ *cygwin* | *msys* | *mingw* | *cegcc*) + # No point in relinking DLLs because paths are not encoded + notinst_deplibs="$notinst_deplibs $lib" + need_relink=no +@@ -5842,7 +5842,7 @@ + elif test -n "$soname_spec"; then + # bleh windows + case $host in +- *cygwin* | mingw* | *cegcc*) ++ *cygwin* | *msys* | mingw* | *cegcc*) + func_arith $current - $age + major=$func_arith_result + versuffix="-$major" +@@ -6693,7 +6693,7 @@ + if test "$build_libtool_libs" = yes; then + if test -n "$rpath"; then + case $host in +- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) ++ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) + # these systems don't actually have a c library (as such)! + ;; + *-*-rhapsody* | *-*-darwin1.[012]) +@@ -7194,7 +7194,7 @@ + + orig_export_symbols= + case $host_os in +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then + # exporting using user supplied symfile + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then +@@ -7710,7 +7710,7 @@ + + prog) + case $host in +- *cygwin*) func_stripname '' '.exe' "$output" ++ *cygwin* | *msys*) func_stripname '' '.exe' "$output" + output=$func_stripname_result.exe;; + esac + test -n "$vinfo" && \ +@@ -7823,7 +7823,7 @@ + esac + fi + case $host in +- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) ++ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$libdir:"*) ;; +@@ -7901,7 +7901,7 @@ + # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. + wrappers_required=no + ;; +- *cygwin* | *mingw* ) ++ *cygwin* | *msys* | *mingw* ) + if test "$build_libtool_libs" != yes; then + wrappers_required=no + fi +@@ -8029,14 +8029,14 @@ + esac + # test for cygwin because mv fails w/o .exe extensions + case $host in +- *cygwin*) ++ *cygwin* | *msys*) + exeext=.exe + func_stripname '' '.exe' "$outputname" + outputname=$func_stripname_result ;; + *) exeext= ;; + esac + case $host in +- *cygwin* | *mingw* ) ++ *cygwin* | *msys* | *mingw* ) + func_dirname_and_basename "$output" "" "." + output_name=$func_basename_result + output_path=$func_dirname_result +@@ -8343,7 +8343,7 @@ + # tests/bindir.at for full details. + tdlname=$dlname + case $host,$output,$installed,$module,$dlname in +- *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) ++ *cygwin*,*lai,yes,no,*.dll | *msys*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) + # If a -bindir argument was supplied, place the dll there. + if test "x$bindir" != x ; + then +diff -Naur gcc-9.1.0-orig/libgo/config/ltoptions.m4 gcc-9.1.0/libgo/config/ltoptions.m4 +--- gcc-9.1.0-orig/libgo/config/ltoptions.m4 2010-11-12 23:52:54.000000000 +0300 ++++ gcc-9.1.0/libgo/config/ltoptions.m4 2019-07-04 09:06:52.676190500 +0300 +@@ -126,7 +126,7 @@ + [enable_win32_dll=yes + + case $host in +-*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) ++*-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + AC_CHECK_TOOL(AS, as, false) + AC_CHECK_TOOL(DLLTOOL, dlltool, false) + AC_CHECK_TOOL(OBJDUMP, objdump, false) +diff -Naur gcc-9.1.0-orig/libgo/configure gcc-9.1.0/libgo/configure +--- gcc-9.1.0-orig/libgo/configure 2019-02-28 01:35:10.000000000 +0300 ++++ gcc-9.1.0/libgo/configure 2019-07-04 09:06:52.676190500 +0300 +@@ -5523,7 +5523,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -5865,7 +5865,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -6445,7 +6445,7 @@ + aix*) + symcode='[BCDT]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; + hpux*) +@@ -8419,7 +8419,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -8501,7 +8501,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' +@@ -8963,7 +8963,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -9078,7 +9078,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' +@@ -9509,7 +9509,7 @@ + export_dynamic_flag_spec=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -10410,14 +10410,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -10441,6 +10441,12 @@ + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -11077,7 +11083,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; +@@ -11851,7 +11857,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -11933,7 +11939,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_GO='-DDLL_EXPORT' +@@ -12380,7 +12386,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -12495,7 +12501,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_GO='-L$libdir' +@@ -12926,7 +12932,7 @@ + export_dynamic_flag_spec_GO=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +diff -Naur gcc-9.1.0-orig/libgomp/configure gcc-9.1.0/libgomp/configure +--- gcc-9.1.0-orig/libgomp/configure 2019-05-03 11:01:59.000000000 +0300 ++++ gcc-9.1.0/libgomp/configure 2019-07-04 09:06:52.691790500 +0300 +@@ -5663,7 +5663,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -6005,7 +6005,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -6585,7 +6585,7 @@ + aix*) + symcode='[BCDT]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; + hpux*) +@@ -8468,7 +8468,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -8550,7 +8550,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' +@@ -9012,7 +9012,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -9127,7 +9127,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' +@@ -9558,7 +9558,7 @@ + export_dynamic_flag_spec=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -10459,14 +10459,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -10490,6 +10490,12 @@ + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -11126,7 +11132,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; +@@ -11740,7 +11746,7 @@ + + + case $host in +- *-cygwin* | *-mingw*) ++ *-cygwin* | *-msys* | *-mingw*) + # 'host' will be top-level target in the case of a target lib, + # we must compare to with_cross_host to decide if this is a native + # or cross-compiler and select where to install dlls appropriately. +@@ -12348,7 +12354,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -12430,7 +12436,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_FC='-DDLL_EXPORT' +@@ -12877,7 +12883,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -12992,7 +12998,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_FC='-L$libdir' +@@ -13411,7 +13417,7 @@ + export_dynamic_flag_spec_FC=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -14106,14 +14112,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -14136,6 +14142,11 @@ + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +diff -Naur gcc-9.1.0-orig/libgomp/configure.tgt gcc-9.1.0/libgomp/configure.tgt +--- gcc-9.1.0-orig/libgomp/configure.tgt 2019-07-04 09:00:42.563039900 +0300 ++++ gcc-9.1.0/libgomp/configure.tgt 2019-07-04 09:06:52.691790500 +0300 +@@ -132,7 +132,7 @@ + esac + ;; + +- *-*-cygwin*) ++ *-*-cygwin*|*-*-msys*) + config_path="cygwin posix" + ;; + +diff -Naur gcc-9.1.0-orig/libhsail-rt/configure gcc-9.1.0/libhsail-rt/configure +--- gcc-9.1.0-orig/libhsail-rt/configure 2018-10-31 20:03:16.000000000 +0300 ++++ gcc-9.1.0/libhsail-rt/configure 2019-07-04 09:06:52.707390500 +0300 +@@ -5478,7 +5478,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -5820,7 +5820,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -6400,7 +6400,7 @@ + aix*) + symcode='[BCDT]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; + hpux*) +@@ -8282,7 +8282,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -8364,7 +8364,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' +@@ -8826,7 +8826,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -8941,7 +8941,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' +@@ -9372,7 +9372,7 @@ + export_dynamic_flag_spec=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -10273,14 +10273,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -10304,6 +10304,12 @@ + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; ++ msys*) ++ # MSYS DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -10940,7 +10946,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; +@@ -12162,7 +12168,7 @@ + esac + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' +@@ -13131,7 +13137,7 @@ + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; +- mingw* | cygwin* | os2* | pw32* | cegcc*) ++ mingw* | cygwin* | msys* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -13671,7 +13677,7 @@ + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + ;; + *) +@@ -13935,14 +13941,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -13965,6 +13971,11 @@ + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + ;; ++ msys*) ++ # MSYS DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +diff -Naur gcc-9.1.0-orig/libiberty/configure gcc-9.1.0/libiberty/configure +--- gcc-9.1.0-orig/libiberty/configure 2019-07-04 09:00:42.360239600 +0300 ++++ gcc-9.1.0/libiberty/configure 2019-07-04 09:06:52.707390500 +0300 +@@ -5183,6 +5183,8 @@ + ;; + i[34567]86-*-cygwin* | x86_64-*-cygwin*) + ;; ++ i[34567]86-*-msys* | x86_64-*-msys*) ++ ;; + i[34567]86-*-mingw* | x86_64-*-mingw*) + ;; + i[34567]86-*-interix[3-9]*) +@@ -6255,7 +6257,7 @@ + + + case "${host}" in +- *-*-cygwin* | *-*-mingw*) ++ *-*-cygwin* | *-*-msys* | *-*-mingw*) + $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h + + $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h +diff -Naur gcc-9.1.0-orig/libiberty/configure.ac gcc-9.1.0/libiberty/configure.ac +--- gcc-9.1.0-orig/libiberty/configure.ac 2018-10-31 20:03:16.000000000 +0300 ++++ gcc-9.1.0/libiberty/configure.ac 2019-07-04 09:06:52.707390500 +0300 +@@ -549,7 +549,7 @@ + AC_SUBST(target_header_dir) + + case "${host}" in +- *-*-cygwin* | *-*-mingw*) ++ *-*-cygwin* | *-*-msys* | *-*-mingw*) + AC_DEFINE(HAVE_SYS_ERRLIST) + AC_DEFINE(HAVE_SYS_NERR) + ;; +diff -Naur gcc-9.1.0-orig/libitm/configure gcc-9.1.0/libitm/configure +--- gcc-9.1.0-orig/libitm/configure 2019-05-03 11:01:59.000000000 +0300 ++++ gcc-9.1.0/libitm/configure 2019-07-04 09:06:52.722990600 +0300 +@@ -6301,7 +6301,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -6643,7 +6643,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -7223,7 +7223,7 @@ + aix*) + symcode='[BCDT]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; + hpux*) +@@ -9107,7 +9107,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -9189,7 +9189,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' +@@ -9651,7 +9651,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -9766,7 +9766,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' +@@ -10197,7 +10197,7 @@ + export_dynamic_flag_spec=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -11098,14 +11098,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -11129,6 +11129,12 @@ + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -11765,7 +11771,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; +@@ -12987,7 +12993,7 @@ + esac + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' +@@ -13956,7 +13962,7 @@ + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; +- mingw* | cygwin* | os2* | pw32* | cegcc*) ++ mingw* | msys* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -14496,7 +14502,7 @@ + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + ;; + *) +@@ -14760,14 +14766,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -14790,6 +14796,11 @@ + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -16075,7 +16086,7 @@ + # Systems known to be in this category are Windows (all variants), + # VMS, and Darwin. + case "$host_os" in +- *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) ++ *vms* | cygwin* | msys* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) + gcc_cv_func_mmap_dev_zero=no ;; + *) + gcc_cv_func_mmap_dev_zero=yes;; +@@ -16132,7 +16143,7 @@ + # above for use of /dev/zero. + # Systems known to be in this category are Windows, VMS, and SCO Unix. + case "$host_os" in +- *vms* | cygwin* | pe | mingw* | sco* | udk* ) ++ *vms* | cygwin* | msys* | pe | mingw* | sco* | udk* ) + gcc_cv_func_mmap_anon=no ;; + *) + gcc_cv_func_mmap_anon=yes;; +diff -Naur gcc-9.1.0-orig/libitm/configure.tgt gcc-9.1.0/libitm/configure.tgt +--- gcc-9.1.0-orig/libitm/configure.tgt 2019-07-04 09:00:42.609840000 +0300 ++++ gcc-9.1.0/libitm/configure.tgt 2019-07-04 09:06:52.722990600 +0300 +@@ -141,7 +141,7 @@ + *-*-gnu* | *-*-k*bsd*-gnu \ + | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* \ + | *-*-solaris2* | *-*-sysv4* | *-*-hpux11* \ +- | *-*-darwin* | *-*-aix* | *-*-dragonfly* | *-*-cygwin*) ++ | *-*-darwin* | *-*-aix* | *-*-dragonfly* | *-*-cygwin* | *-*-msys*) + # POSIX system. The OS is supported. + ;; + +diff -Naur gcc-9.1.0-orig/libobjc/configure gcc-9.1.0/libobjc/configure +--- gcc-9.1.0-orig/libobjc/configure 2019-05-03 11:01:59.000000000 +0300 ++++ gcc-9.1.0/libobjc/configure 2019-07-04 09:06:52.722990600 +0300 +@@ -3385,7 +3385,7 @@ + + + case $host in +- *-cygwin* | *-mingw*) ++ *-cygwin* | *-msys* | *-mingw*) + # 'host' will be top-level target in the case of a target lib, + # we must compare to with_cross_host to decide if this is a native + # or cross-compiler and select where to install dlls appropriately. +@@ -3408,7 +3408,7 @@ + # Darwin needs -single_module when linking libobjc + extra_ldflags_libobjc='$(lt_host_flags) -Wl,-single_module' + ;; +- *-cygwin*|*-mingw*) ++ *-cygwin*|*-msys*|*-mingw*) + # Tell libtool to build DLLs on Windows + extra_ldflags_libobjc='$(lt_host_flags)' + ;; +@@ -3901,7 +3901,7 @@ + enable_win32_dll=yes + + case $host in +-*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) ++*-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. + set dummy ${ac_tool_prefix}as; ac_word=$2 +@@ -4944,7 +4944,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -5283,7 +5283,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -5905,7 +5905,7 @@ + aix*) + symcode='[BCDT]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; + hpux*) +@@ -7791,7 +7791,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -7873,7 +7873,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' +@@ -8335,7 +8335,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -8450,7 +8450,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' +@@ -8887,7 +8887,7 @@ + export_dynamic_flag_spec=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -9791,14 +9791,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -9822,6 +9822,12 @@ + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -10461,7 +10467,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; +diff -Naur gcc-9.1.0-orig/libobjc/configure.ac gcc-9.1.0/libobjc/configure.ac +--- gcc-9.1.0-orig/libobjc/configure.ac 2019-01-01 15:31:55.000000000 +0300 ++++ gcc-9.1.0/libobjc/configure.ac 2019-07-04 09:06:52.722990600 +0300 +@@ -143,7 +143,7 @@ + # Darwin needs -single_module when linking libobjc + extra_ldflags_libobjc='$(lt_host_flags) -Wl,-single_module' + ;; +- *-cygwin*|*-mingw*) ++ *-cygwin*|*-msys*|*-mingw*) + # Tell libtool to build DLLs on Windows + extra_ldflags_libobjc='$(lt_host_flags)' + ;; +diff -Naur gcc-9.1.0-orig/liboffloadmic/configure gcc-9.1.0/liboffloadmic/configure +--- gcc-9.1.0-orig/liboffloadmic/configure 2018-10-31 20:03:16.000000000 +0300 ++++ gcc-9.1.0/liboffloadmic/configure 2019-07-04 09:06:52.738590600 +0300 +@@ -5937,7 +5937,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -6279,7 +6279,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -6859,7 +6859,7 @@ + aix*) + symcode='[BCDT]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; + hpux*) +@@ -8473,7 +8473,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -8555,7 +8555,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' +@@ -9017,7 +9017,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -9132,7 +9132,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' +@@ -9563,7 +9563,7 @@ + export_dynamic_flag_spec=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -10464,14 +10464,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -10495,6 +10495,12 @@ + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; ++ msys*) ++ # MSYS DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -11131,7 +11137,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; +@@ -12353,7 +12359,7 @@ + esac + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' +@@ -13322,7 +13328,7 @@ + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; +- mingw* | cygwin* | os2* | pw32* | cegcc*) ++ mingw* | cygwin* | msys* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -13862,7 +13868,7 @@ + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + ;; + *) +@@ -14126,14 +14132,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -14156,6 +14162,11 @@ + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + ;; ++ msys*) ++ # MSYS DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +diff -Naur gcc-9.1.0-orig/liboffloadmic/plugin/configure gcc-9.1.0/liboffloadmic/plugin/configure +--- gcc-9.1.0-orig/liboffloadmic/plugin/configure 2018-10-31 20:03:16.000000000 +0300 ++++ gcc-9.1.0/liboffloadmic/plugin/configure 2019-07-04 09:06:52.738590600 +0300 +@@ -5316,7 +5316,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -5658,7 +5658,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -6238,7 +6238,7 @@ + aix*) + symcode='[BCDT]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; + hpux*) +@@ -8120,7 +8120,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -8202,7 +8202,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' +@@ -8664,7 +8664,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -8779,7 +8779,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' +@@ -9210,7 +9210,7 @@ + export_dynamic_flag_spec=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -10111,14 +10111,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -10142,6 +10142,12 @@ + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; ++ msys*) ++ # MSYS DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -10778,7 +10784,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; +@@ -12000,7 +12006,7 @@ + esac + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' +@@ -12969,7 +12975,7 @@ + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; +- mingw* | cygwin* | os2* | pw32* | cegcc*) ++ mingw* | cygwin* | msys* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -13509,7 +13515,7 @@ + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + ;; + *) +@@ -13773,14 +13779,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -13803,6 +13809,11 @@ + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + ;; ++ msys*) ++ # MSYS DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +diff -Naur gcc-9.1.0-orig/libphobos/configure gcc-9.1.0/libphobos/configure +--- gcc-9.1.0-orig/libphobos/configure 2019-05-03 11:01:59.000000000 +0300 ++++ gcc-9.1.0/libphobos/configure 2019-07-04 09:23:20.086580500 +0300 +@@ -6174,7 +6174,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -6516,7 +6516,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -7096,7 +7096,7 @@ + aix*) + symcode='[BCDT]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; + hpux*) +@@ -8710,7 +8710,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -8792,7 +8792,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' +@@ -9254,7 +9254,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -9369,7 +9369,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' +@@ -9800,7 +9800,7 @@ + export_dynamic_flag_spec=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -10701,14 +10701,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -10732,6 +10732,12 @@ + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; ++ msys*) ++ # MSYS DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -11368,7 +11374,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; +@@ -12167,7 +12173,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -12249,7 +12255,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_D='-DDLL_EXPORT' +@@ -12696,7 +12702,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -12811,7 +12817,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_D='-L$libdir' +@@ -13242,7 +13248,7 @@ + export_dynamic_flag_spec_D=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -14128,7 +14134,7 @@ + + + case "$druntime_cv_target_os" in +- aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;; ++ aix*|*bsd*|cygwin*|msys*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;; + esac + if test -n "$d_have_unix" && test "$enable_unix" = auto ; then + enable_unix=yes +diff -Naur gcc-9.1.0-orig/libphobos/m4/druntime/os.m4 gcc-9.1.0/libphobos/m4/druntime/os.m4 +--- gcc-9.1.0-orig/libphobos/m4/druntime/os.m4 2019-04-14 12:30:42.000000000 +0300 ++++ gcc-9.1.0/libphobos/m4/druntime/os.m4 2019-07-04 09:23:46.887427600 +0300 +@@ -65,7 +65,7 @@ + :,[enable_unix=auto]) + + case "$druntime_cv_target_os" in +- aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;; ++ aix*|*bsd*|cygwin*|msys*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;; + esac + if test -n "$d_have_unix" && test "$enable_unix" = auto ; then + enable_unix=yes +diff -Naur gcc-9.1.0-orig/libquadmath/configure gcc-9.1.0/libquadmath/configure +--- gcc-9.1.0-orig/libquadmath/configure 2018-10-31 20:03:16.000000000 +0300 ++++ gcc-9.1.0/libquadmath/configure 2019-07-04 09:06:52.754190600 +0300 +@@ -5310,7 +5310,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -5652,7 +5652,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -6232,7 +6232,7 @@ + aix*) + symcode='[BCDT]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; + hpux*) +@@ -7853,7 +7853,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -7935,7 +7935,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' +@@ -8397,7 +8397,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -8512,7 +8512,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' +@@ -8949,7 +8949,7 @@ + export_dynamic_flag_spec=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -9853,14 +9853,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -9884,6 +9884,12 @@ + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -10523,7 +10529,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; +@@ -11152,7 +11158,7 @@ + + + case $host in +- *-cygwin* | *-mingw*) ++ *-cygwin* | *-msys* | *-mingw*) + # 'host' will be top-level target in the case of a target lib, + # we must compare to with_cross_host to decide if this is a native + # or cross-compiler and select where to install dlls appropriately. +diff -Naur gcc-9.1.0-orig/libsanitizer/configure gcc-9.1.0/libsanitizer/configure +--- gcc-9.1.0-orig/libsanitizer/configure 2018-10-31 20:03:16.000000000 +0300 ++++ gcc-9.1.0/libsanitizer/configure 2019-07-04 09:06:52.754190600 +0300 +@@ -6868,7 +6868,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -7210,7 +7210,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -7790,7 +7790,7 @@ + aix*) + symcode='[BCDT]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; + hpux*) +@@ -9404,7 +9404,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -9486,7 +9486,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' +@@ -9948,7 +9948,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -10063,7 +10063,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' +@@ -10494,7 +10494,7 @@ + export_dynamic_flag_spec=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -11395,14 +11395,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -11426,6 +11426,12 @@ + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -12062,7 +12068,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; +@@ -13284,7 +13290,7 @@ + esac + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' +@@ -14253,7 +14259,7 @@ + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; +- mingw* | cygwin* | os2* | pw32* | cegcc*) ++ mingw* | cygwin* | msys* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -14793,7 +14799,7 @@ + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + ;; + *) +@@ -15057,14 +15063,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -15087,6 +15093,11 @@ + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +diff -Naur gcc-9.1.0-orig/libssp/configure gcc-9.1.0/libssp/configure +--- gcc-9.1.0-orig/libssp/configure 2018-10-31 20:03:16.000000000 +0300 ++++ gcc-9.1.0/libssp/configure 2019-07-04 09:06:52.769790600 +0300 +@@ -5492,7 +5492,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -5834,7 +5834,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -6414,7 +6414,7 @@ + aix*) + symcode='[BCDT]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; + hpux*) +@@ -8035,7 +8035,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -8117,7 +8117,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' +@@ -8579,7 +8579,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -8694,7 +8694,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' +@@ -9131,7 +9131,7 @@ + export_dynamic_flag_spec=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -10035,14 +10035,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -10066,6 +10066,12 @@ + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -10705,7 +10711,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; +@@ -11334,7 +11340,7 @@ + + + case $host in +- *-cygwin* | *-mingw*) ++ *-cygwin* | *-msys* | *-mingw*) + # 'host' will be top-level target in the case of a target lib, + # we must compare to with_cross_host to decide if this is a native + # or cross-compiler and select where to install dlls appropriately. +diff -Naur gcc-9.1.0-orig/libstdc++-v3/acinclude.m4 gcc-9.1.0/libstdc++-v3/acinclude.m4 +--- gcc-9.1.0-orig/libstdc++-v3/acinclude.m4 2019-07-04 09:00:42.656640100 +0300 ++++ gcc-9.1.0/libstdc++-v3/acinclude.m4 2019-07-04 09:06:52.769790600 +0300 +@@ -603,7 +603,7 @@ + if $GLIBCXX_IS_NATIVE && test $is_hosted = yes && + test $enable_symvers != no; then + case "$host" in +- *-*-cygwin*) ++ *-*-cygwin* | *-*-msys*) + enable_abi_check=no ;; + *) + enable_abi_check=yes ;; +@@ -1397,7 +1397,7 @@ + if test x"$enable_libstdcxx_time" = x"auto"; then + + case "${target_os}" in +- cygwin*) ++ cygwin* | msys*) + ac_has_clock_monotonic=yes + ac_has_clock_realtime=yes + ac_has_nanosleep=yes +@@ -2760,7 +2760,7 @@ + vtv_cygmin=no + if test $enable_vtable_verify = yes; then + case ${target_os} in +- cygwin*|mingw32*) ++ cygwin*|msys*|mingw32*) + VTV_CXXFLAGS="-fvtable-verify=std -Wl,-lvtv,-u_vtable_map_vars_start,-u_vtable_map_vars_end" + VTV_CXXLINKFLAGS="-L${toplevel_builddir}/libvtv/.libs -Wl,--rpath -Wl,${toplevel_builddir}/libvtv/.libs" + vtv_cygmin=yes +diff -Naur gcc-9.1.0-orig/libstdc++-v3/configure gcc-9.1.0/libstdc++-v3/configure +--- gcc-9.1.0-orig/libstdc++-v3/configure 2019-07-04 09:00:42.687840200 +0300 ++++ gcc-9.1.0/libstdc++-v3/configure 2019-07-04 09:06:52.785390700 +0300 +@@ -6222,7 +6222,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -6564,7 +6564,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -7144,7 +7144,7 @@ + aix*) + symcode='[BCDT]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; + hpux*) +@@ -8893,7 +8893,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -8975,7 +8975,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' +@@ -9437,7 +9437,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -9552,7 +9552,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' +@@ -9989,7 +9989,7 @@ + export_dynamic_flag_spec=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -10893,14 +10893,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -10924,6 +10924,12 @@ + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -11563,7 +11569,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; +@@ -12806,7 +12812,7 @@ + esac + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' +@@ -13775,7 +13781,7 @@ + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; +- mingw* | cygwin* | os2* | pw32* | cegcc*) ++ mingw* | msys* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -14315,7 +14321,7 @@ + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + ;; + *) +@@ -14579,14 +14585,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -14609,6 +14615,11 @@ + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -15217,7 +15228,7 @@ + + + case $host in +- *-cygwin* | *-mingw*) ++ *-cygwin* | *-msys* | *-mingw*) + # 'host' will be top-level target in the case of a target lib, + # we must compare to with_cross_host to decide if this is a native + # or cross-compiler and select where to install dlls appropriately. +@@ -18437,7 +18448,7 @@ + vtv_cygmin=no + if test $enable_vtable_verify = yes; then + case ${target_os} in +- cygwin*|mingw32*) ++ cygwin*|msys*|mingw32*) + VTV_CXXFLAGS="-fvtable-verify=std -Wl,-lvtv,-u_vtable_map_vars_start,-u_vtable_map_vars_end" + VTV_CXXLINKFLAGS="-L${toplevel_builddir}/libvtv/.libs -Wl,--rpath -Wl,${toplevel_builddir}/libvtv/.libs" + vtv_cygmin=yes +@@ -20827,7 +20838,7 @@ + if test x"$enable_libstdcxx_time" = x"auto"; then + + case "${target_os}" in +- cygwin*) ++ cygwin* | msys*) + ac_has_clock_monotonic=yes + ac_has_clock_realtime=yes + ac_has_nanosleep=yes +@@ -54089,7 +54100,7 @@ + ;; + esac + ;; +- *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-cygwin* | *-solaris*) ++ *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-cygwin* | *-msys* | *-solaris*) + + # All these tests are for C++; save the language and the compiler flags. + # The CXXFLAGS thing is suspicious, but based on similar bits previously +@@ -80169,7 +80180,7 @@ + if $GLIBCXX_IS_NATIVE && test $is_hosted = yes && + test $enable_symvers != no; then + case "$host" in +- *-*-cygwin*) ++ *-*-cygwin* | *-*-msys*) + enable_abi_check=no ;; + *) + enable_abi_check=yes ;; +diff -Naur gcc-9.1.0-orig/libstdc++-v3/configure.host gcc-9.1.0/libstdc++-v3/configure.host +--- gcc-9.1.0-orig/libstdc++-v3/configure.host 2019-02-22 10:25:52.000000000 +0300 ++++ gcc-9.1.0/libstdc++-v3/configure.host 2019-07-04 09:06:52.800990700 +0300 +@@ -226,7 +226,7 @@ + # Plain BSD attempts to share FreeBSD files. + os_include_dir="os/bsd/freebsd" + ;; +- cygwin*) ++ cygwin* | msys*) + os_include_dir="os/newlib" + OPT_LDFLAGS="${OPT_LDFLAGS} \$(lt_host_flags)" + ;; +diff -Naur gcc-9.1.0-orig/libstdc++-v3/crossconfig.m4 gcc-9.1.0/libstdc++-v3/crossconfig.m4 +--- gcc-9.1.0-orig/libstdc++-v3/crossconfig.m4 2019-03-11 19:28:11.000000000 +0300 ++++ gcc-9.1.0/libstdc++-v3/crossconfig.m4 2019-07-04 09:06:52.800990700 +0300 +@@ -186,7 +186,7 @@ + ;; + esac + ;; +- *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-cygwin* | *-solaris*) ++ *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-cygwin* | *-msys* | *-solaris*) + GLIBCXX_CHECK_COMPILER_FEATURES + GLIBCXX_CHECK_LINKER_FEATURES + GLIBCXX_CHECK_MATH_SUPPORT +diff -Naur gcc-9.1.0-orig/libtool.m4 gcc-9.1.0/libtool.m4 +--- gcc-9.1.0-orig/libtool.m4 2018-10-31 20:03:16.000000000 +0300 ++++ gcc-9.1.0/libtool.m4 2019-07-04 09:06:52.816590700 +0300 +@@ -1491,7 +1491,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -1733,7 +1733,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; +@@ -2204,14 +2204,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -2235,6 +2235,12 @@ + m4_if([$1], [],[ + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ++m4_if([$1], [],[ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' +@@ -3001,7 +3007,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -3285,7 +3291,7 @@ + [AC_REQUIRE([AC_CANONICAL_HOST])dnl + LIBM= + case $host in +-*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) ++*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-msys* | *-*-haiku* | *-*-pw32* | *-*-darwin*) + # These system don't have libm, or don't need it + ;; + *-ncr-sysv4.3*) +@@ -3360,7 +3366,7 @@ + aix*) + symcode='[[BCDT]]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[[ABCDGISTW]]' + ;; + hpux*) +@@ -3607,7 +3613,7 @@ + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; +- mingw* | cygwin* | os2* | pw32* | cegcc*) ++ mingw* | msys* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -3920,7 +3926,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -4003,7 +4009,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + m4_if([$1], [GCJ], [], +@@ -4236,7 +4242,7 @@ + pw32*) + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" + ;; +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' + ;; + *) +@@ -4288,7 +4294,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -4403,7 +4409,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' +@@ -4776,7 +4782,7 @@ + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -5720,7 +5726,7 @@ + esac + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' +diff -Naur gcc-9.1.0-orig/libvtv/configure gcc-9.1.0/libvtv/configure +--- gcc-9.1.0-orig/libvtv/configure 2018-10-31 20:03:16.000000000 +0300 ++++ gcc-9.1.0/libvtv/configure 2019-07-04 09:06:52.816590700 +0300 +@@ -6769,7 +6769,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -7111,7 +7111,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -7691,7 +7691,7 @@ + aix*) + symcode='[BCDT]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; + hpux*) +@@ -9305,7 +9305,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -9387,7 +9387,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' +@@ -9849,7 +9849,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -9964,7 +9964,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' +@@ -10395,7 +10395,7 @@ + export_dynamic_flag_spec=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -11296,14 +11296,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -11327,6 +11327,12 @@ + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; ++ msys*) ++ # MSYS DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -11963,7 +11969,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; +@@ -13185,7 +13191,7 @@ + esac + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' +@@ -14154,7 +14160,7 @@ + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; +- mingw* | cygwin* | os2* | pw32* | cegcc*) ++ mingw* | cygwin* | msys* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -14694,7 +14700,7 @@ + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + ;; + *) +@@ -14958,14 +14964,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -14988,6 +14994,11 @@ + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + ;; ++ msys*) ++ # MSYS DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -15593,7 +15604,7 @@ + + + case $host in +- *-cygwin* | *-mingw*) ++ *-cygwin* | *-msys* | *-mingw*) + # 'host' will be top-level target in the case of a target lib, + # we must compare to with_cross_host to decide if this is a native + # or cross-compiler and select where to install dlls appropriately. +@@ -15721,7 +15732,7 @@ + fi + + case "$target_os" in +- cygwin*|mingw32*) ++ cygwin*|msys*|mingw32*) + vtv_cygmin="yes" + ;; + *) +diff -Naur gcc-9.1.0-orig/libvtv/configure.ac gcc-9.1.0/libvtv/configure.ac +--- gcc-9.1.0-orig/libvtv/configure.ac 2018-10-31 20:03:16.000000000 +0300 ++++ gcc-9.1.0/libvtv/configure.ac 2019-07-04 09:06:52.816590700 +0300 +@@ -181,7 +181,7 @@ + fi + + case "$target_os" in +- cygwin*|mingw32*) ++ cygwin*|msys*|mingw32*) + vtv_cygmin="yes" + ;; + *) +diff -Naur gcc-9.1.0-orig/libvtv/configure.tgt gcc-9.1.0/libvtv/configure.tgt +--- gcc-9.1.0-orig/libvtv/configure.tgt 2019-01-01 15:31:55.000000000 +0300 ++++ gcc-9.1.0/libvtv/configure.tgt 2019-07-04 09:06:52.832190700 +0300 +@@ -35,6 +35,9 @@ + x86_64-*-cygwin* | i?86-*-cygwin*) + VTV_SUPPORTED=yes + ;; ++ x86_64-*-msys* | i?86-*-msys*) ++ VTV_SUPPORTED=yes ++ ;; + x86_64-*-mingw* | i?86-*-mingw*) + VTV_SUPPORTED=yes + ;; +diff -Naur gcc-9.1.0-orig/ltmain.sh gcc-9.1.0/ltmain.sh +--- gcc-9.1.0-orig/ltmain.sh 2018-07-05 22:13:45.000000000 +0300 ++++ gcc-9.1.0/ltmain.sh 2019-07-04 09:06:52.832190700 +0300 +@@ -976,7 +976,7 @@ + + + case $host in +- *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* ) ++ *cygwin* | *msys* | *mingw* | *pw32* | *cegcc* | *solaris2* ) + # don't eliminate duplications in $postdeps and $predeps + opt_duplicate_compiler_generated_deps=: + ;; +@@ -1453,7 +1453,7 @@ + + # On Cygwin there's no "real" PIC flag so we must build both object types + case $host_os in +- cygwin* | mingw* | pw32* | os2* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | os2* | cegcc*) + pic_mode=default + ;; + esac +@@ -2279,7 +2279,7 @@ + 'exit $?' + tstripme="$stripme" + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + case $realname in + *.dll.a) + tstripme="" +@@ -2385,7 +2385,7 @@ + + # Do a test to see if this is really a libtool program. + case $host in +- *cygwin* | *mingw*) ++ *cygwin* | *msys* | *mingw*) + if func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + wrapper=$func_ltwrapper_scriptname_result +@@ -2460,7 +2460,7 @@ + # remove .exe since cygwin /usr/bin/install will append another + # one anyway + case $install_prog,$host in +- */usr/bin/install*,*cygwin*) ++ */usr/bin/install*,*cygwin*|*/usr/bin/install*,*msys*) + case $file:$destfile in + *.exe:*.exe) + # this is ok +@@ -2595,7 +2595,7 @@ + $RM $export_symbols + ${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' < "$nlist" > "$export_symbols" + case $host in +- *cygwin* | *mingw* | *cegcc* ) ++ *cygwin* | *msys* | *mingw* | *cegcc* ) + echo EXPORTS > "$output_objdir/$outputname.def" + cat "$export_symbols" >> "$output_objdir/$outputname.def" + ;; +@@ -2607,7 +2607,7 @@ + $GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T + $MV "$nlist"T "$nlist" + case $host in +- *cygwin* | *mingw* | *cegcc* ) ++ *cygwin* | *msys* | *mingw* | *cegcc* ) + echo EXPORTS > "$output_objdir/$outputname.def" + cat "$nlist" >> "$output_objdir/$outputname.def" + ;; +@@ -2663,7 +2663,7 @@ + } lt_dlsymlist; + " + case $host in +- *cygwin* | *mingw* | *cegcc* ) ++ *cygwin* | *msys* | *mingw* | *cegcc* ) + echo >> "$output_objdir/$my_dlsyms" "\ + /* DATA imports from DLLs on WIN32 con't be const, because + runtime relocations are performed -- see ld's documentation +@@ -2749,7 +2749,7 @@ + # Transform the symbol file into the correct name. + symfileobj="$output_objdir/${my_outputname}S.$objext" + case $host in +- *cygwin* | *mingw* | *cegcc* ) ++ *cygwin* | *msys* | *mingw* | *cegcc* ) + if test -f "$output_objdir/$my_outputname.def"; then + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` +@@ -3192,7 +3192,7 @@ + func_to_host_path_result=`( cmd //c echo "$1" ) 2>/dev/null | + $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` + ;; +- *cygwin* ) ++ *cygwin* | *msys* ) + func_to_host_path_result=`cygpath -w "$1" | + $SED -e "$lt_sed_naive_backslashify"` + ;; +@@ -3265,7 +3265,7 @@ + ( cmd //c echo "$func_to_host_pathlist_tmp1" ) 2>/dev/null | + $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` + ;; +- *cygwin* ) ++ *cygwin* | *msys* ) + func_to_host_pathlist_result=`cygpath -w -p "$func_to_host_pathlist_tmp1" | + $SED -e "$lt_sed_naive_backslashify"` + ;; +@@ -3571,7 +3571,7 @@ + { + EOF + case "$host" in +- *mingw* | *cygwin* ) ++ *mingw* | *cygwin* | *msys*) + # make stdout use "unix" line endings + echo " setmode(1,_O_BINARY);" + ;; +@@ -4233,7 +4233,7 @@ + { + $opt_debug + case $host in +- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) ++ *-*-cygwin* | *-*-msys | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + # It is impossible to link a dll without this setting, and + # we shouldn't force the makefile maintainer to figure out + # which system we are compiling for in order to pass an extra +@@ -4713,7 +4713,7 @@ + ;; + esac + case $host in +- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) ++ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$dir:"*) ;; +@@ -4733,7 +4733,7 @@ + -l*) + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then + case $host in +- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) ++ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) + # These systems don't actually have a C or math library (as such) + continue + ;; +@@ -4813,7 +4813,7 @@ + + -no-install) + case $host in +- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) ++ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) + # The PATH hackery in wrapper scripts is required on Windows + # and Darwin in order for the loader to find any dlls it needs. + func_warning "\`-no-install' is ignored for $host" +@@ -5772,7 +5772,7 @@ + if test -n "$library_names" && + { test "$use_static_libs" = no || test -z "$old_library"; }; then + case $host in +- *cygwin* | *mingw* | *cegcc*) ++ *cygwin* | *msys* | *mingw* | *cegcc*) + # No point in relinking DLLs because paths are not encoded + notinst_deplibs="$notinst_deplibs $lib" + need_relink=no +@@ -5842,7 +5842,7 @@ + elif test -n "$soname_spec"; then + # bleh windows + case $host in +- *cygwin* | mingw* | *cegcc*) ++ *cygwin* | *msys* | mingw* | *cegcc*) + func_arith $current - $age + major=$func_arith_result + versuffix="-$major" +@@ -6693,7 +6693,7 @@ + if test "$build_libtool_libs" = yes; then + if test -n "$rpath"; then + case $host in +- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) ++ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) + # these systems don't actually have a c library (as such)! + ;; + *-*-rhapsody* | *-*-darwin1.[012]) +@@ -7194,7 +7194,7 @@ + + orig_export_symbols= + case $host_os in +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then + # exporting using user supplied symfile + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then +@@ -7710,7 +7710,7 @@ + + prog) + case $host in +- *cygwin*) func_stripname '' '.exe' "$output" ++ *cygwin* | *msys*) func_stripname '' '.exe' "$output" + output=$func_stripname_result.exe;; + esac + test -n "$vinfo" && \ +@@ -7823,7 +7823,7 @@ + esac + fi + case $host in +- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) ++ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$libdir:"*) ;; +@@ -7901,7 +7901,7 @@ + # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. + wrappers_required=no + ;; +- *cygwin* | *mingw* ) ++ *cygwin* | *msys* | *mingw* ) + if test "$build_libtool_libs" != yes; then + wrappers_required=no + fi +@@ -8029,14 +8029,14 @@ + esac + # test for cygwin because mv fails w/o .exe extensions + case $host in +- *cygwin*) ++ *cygwin* | *msys*) + exeext=.exe + func_stripname '' '.exe' "$outputname" + outputname=$func_stripname_result ;; + *) exeext= ;; + esac + case $host in +- *cygwin* | *mingw* ) ++ *cygwin* | *msys* | *mingw* ) + func_dirname_and_basename "$output" "" "." + output_name=$func_basename_result + output_path=$func_dirname_result +@@ -8343,7 +8343,7 @@ + # tests/bindir.at for full details. + tdlname=$dlname + case $host,$output,$installed,$module,$dlname in +- *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) ++ *cygwin*,*lai,yes,no,*.dll | *msys*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) + # If a -bindir argument was supplied, place the dll there. + if test "x$bindir" != x ; + then +diff -Naur gcc-9.1.0-orig/lto-plugin/configure gcc-9.1.0/lto-plugin/configure +--- gcc-9.1.0-orig/lto-plugin/configure 2018-10-31 20:03:16.000000000 +0300 ++++ gcc-9.1.0/lto-plugin/configure 2019-07-04 09:06:52.832190700 +0300 +@@ -6304,7 +6304,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -6646,7 +6646,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -7226,7 +7226,7 @@ + aix*) + symcode='[BCDT]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; + hpux*) +@@ -8841,7 +8841,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -8923,7 +8923,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' +@@ -9385,7 +9385,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -9500,7 +9500,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' +@@ -9931,7 +9931,7 @@ + export_dynamic_flag_spec=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -10832,14 +10832,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -10863,6 +10863,12 @@ + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -11499,7 +11505,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; +@@ -12113,7 +12119,7 @@ + + + case $host in +- *-cygwin* | *-mingw*) ++ *-cygwin* | *-msys* | *-mingw*) + # 'host' will be top-level target in the case of a target lib, + # we must compare to with_cross_host to decide if this is a native + # or cross-compiler and select where to install dlls appropriately. +diff -Naur gcc-9.1.0-orig/ltoptions.m4 gcc-9.1.0/ltoptions.m4 +--- gcc-9.1.0-orig/ltoptions.m4 2009-12-05 20:18:53.000000000 +0300 ++++ gcc-9.1.0/ltoptions.m4 2019-07-04 09:06:52.832190700 +0300 +@@ -126,7 +126,7 @@ + [enable_win32_dll=yes + + case $host in +-*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) ++*-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + AC_CHECK_TOOL(AS, as, false) + AC_CHECK_TOOL(DLLTOOL, dlltool, false) + AC_CHECK_TOOL(OBJDUMP, objdump, false) +diff -Naur gcc-9.1.0-orig/zlib/configure gcc-9.1.0/zlib/configure +--- gcc-9.1.0-orig/zlib/configure 2019-05-03 11:01:59.000000000 +0300 ++++ gcc-9.1.0/zlib/configure 2019-07-04 09:06:52.847790800 +0300 +@@ -4880,7 +4880,7 @@ + lt_cv_sys_max_cmd_len=-1; + ;; + +- cygwin* | mingw* | cegcc*) ++ cygwin* | msys* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, +@@ -5222,7 +5222,7 @@ + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +-cygwin*) ++cygwin* | msys*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' +@@ -5802,7 +5802,7 @@ + aix*) + symcode='[BCDT]' + ;; +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; + hpux*) +@@ -7691,7 +7691,7 @@ + # PIC is the default for these OSes. + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style +@@ -7773,7 +7773,7 @@ + fi + ;; + +- mingw* | cygwin* | pw32* | os2* | cegcc*) ++ mingw* | msys* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' +@@ -8235,7 +8235,7 @@ + extract_expsyms_cmds= + + case $host_os in +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. +@@ -8350,7 +8350,7 @@ + fi + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' +@@ -8787,7 +8787,7 @@ + export_dynamic_flag_spec=-rdynamic + ;; + +- cygwin* | mingw* | pw32* | cegcc*) ++ cygwin* | msys* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is +@@ -9691,14 +9691,14 @@ + # libtool to hard-code these into programs + ;; + +-cygwin* | mingw* | pw32* | cegcc*) ++cygwin* | msys* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in +- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ yes,cygwin* | yes,msys* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ +@@ -9722,6 +9722,12 @@ + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; ++ msys*) ++ # Msys DLLs use 'msys-' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/msys-/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ++ ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' +@@ -10361,7 +10367,7 @@ + lt_cv_dlopen_libs= + ;; + +- cygwin*) ++ cygwin* | msys*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; diff --git a/mingw-w64-cross-gcc/0951-7.3.0-msys2-spec.patch b/mingw-w64-cross-gcc/0951-9.1.0-msys2-spec.patch similarity index 84% rename from mingw-w64-cross-gcc/0951-7.3.0-msys2-spec.patch rename to mingw-w64-cross-gcc/0951-9.1.0-msys2-spec.patch index f71aa00e..ef6f1469 100644 --- a/mingw-w64-cross-gcc/0951-7.3.0-msys2-spec.patch +++ b/mingw-w64-cross-gcc/0951-9.1.0-msys2-spec.patch @@ -1,10 +1,10 @@ -diff -Naur gcc-6.3.0-orig/gcc/config/i386/msys.h gcc-6.3.0/gcc/config/i386/msys.h ---- gcc-6.3.0-orig/gcc/config/i386/msys.h 1970-01-01 03:00:00.000000000 +0300 -+++ gcc-6.3.0/gcc/config/i386/msys.h 2017-01-24 12:04:34.338454000 +0300 -@@ -0,0 +1,175 @@ +diff -Naur gcc-9.1.0-orig/gcc/config/i386/msys.h gcc-9.1.0/gcc/config/i386/msys.h +--- gcc-9.1.0-orig/gcc/config/i386/msys.h 1970-01-01 03:00:00.000000000 +0300 ++++ gcc-9.1.0/gcc/config/i386/msys.h 2019-07-04 09:29:53.731598700 +0300 +@@ -0,0 +1,160 @@ +/* Operating system specific defines to be used when targeting GCC for + hosting on Windows32, using a Unix style C library and tools. -+ Copyright (C) 1995-2015 Free Software Foundation, Inc. ++ Copyright (C) 1995-2019 Free Software Foundation, Inc. + +This file is part of GCC. + @@ -25,18 +25,16 @@ diff -Naur gcc-6.3.0-orig/gcc/config/i386/msys.h gcc-6.3.0/gcc/config/i386/msys. +#define EXTRA_OS_CPP_BUILTINS() \ + do \ + { \ -+ builtin_define ("__CYGWIN__"); \ ++ builtin_define ("__CYGWIN__"); \ + builtin_define ("__MSYS__"); \ + if (!TARGET_64BIT) \ + builtin_define ("__CYGWIN32__"); \ -+ builtin_define ("__unix__"); \ -+ builtin_define ("__unix"); \ ++ builtin_define_std ("unix"); \ + } \ + while (0) + +#undef CPP_SPEC +#define CPP_SPEC "%(cpp_cpu) %{posix:-D_POSIX_SOURCE} \ -+ %{!ansi:-Dunix} \ + %{pthread:-D_REENTRANT} \ + %{mwin32:-DWIN32 -D_WIN32 -D__WIN32 -D__WIN32__ %{!ansi:-DWINNT}} \ + %{!nostdinc:%{!mno-win32:-idirafter ../include/w32api%s -idirafter ../../include/w32api%s}}\ @@ -60,13 +58,6 @@ diff -Naur gcc-6.3.0-orig/gcc/config/i386/msys.h gcc-6.3.0/gcc/config/i386/msys. + fvtable-verify=std:vtv_end.o%s} \ + crtend.o%s" + -+#undef STANDARD_STARTFILE_PREFIX -+#define STANDARD_STARTFILE_PREFIX "/usr/lib/" -+#undef STANDARD_STARTFILE_PREFIX_1 -+#define STANDARD_STARTFILE_PREFIX_1 "/lib/" -+#undef STANDARD_STARTFILE_PREFIX_2 -+#define STANDARD_STARTFILE_PREFIX_2 "/usr/lib/w32api/" -+ +/* Normally, -lgcc is not needed since everything in it is in the DLL, but we + want to allow things to be added to it when installing new versions of + GCC without making a new msys-2.0.dll, so we leave it. Profiling is handled @@ -116,9 +107,6 @@ diff -Naur gcc-6.3.0-orig/gcc/config/i386/msys.h gcc-6.3.0/gcc/config/i386/msys. + --wrap _ZdlPvRKSt9nothrow_t \ + --wrap _ZdaPvRKSt9nothrow_t \ +" -+/* The GNU C++ standard library requires that these macros be defined. */ -+#undef CPLUSPLUS_CPP_SPEC -+#define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)" + +#if defined (USE_CYGWIN_LIBSTDCXX_WRAPPERS) + @@ -156,7 +144,7 @@ diff -Naur gcc-6.3.0-orig/gcc/config/i386/msys.h gcc-6.3.0/gcc/config/i386/msys. + +/* Every program on MSYS links against msys-2.0.dll which contains + the pthread routines. There is no need to explicitly link them -+ and the -pthread flag is not recognized. */ ++ and the -pthread flag is accepted only for compatibility. */ +#undef GOMP_SELF_SPECS +#define GOMP_SELF_SPECS "" +#undef GTM_SELF_SPECS @@ -170,21 +158,18 @@ diff -Naur gcc-6.3.0-orig/gcc/config/i386/msys.h gcc-6.3.0/gcc/config/i386/msys. +#endif +#define LIBGCC_SONAME "msys-gcc_s" LIBGCC_EH_EXTN "-1.dll" + -+/* We should find a way to not have to update this manually. */ -+#define LIBGCJ_SONAME "msys-gcj" /*LIBGCC_EH_EXTN*/ "-16.dll" -+ +/* Make stack executable to avoid DEP problems with trampolines. */ +#define HAVE_ENABLE_EXECUTE_STACK +#undef CHECK_EXECUTE_STACK_ENABLED +#define CHECK_EXECUTE_STACK_ENABLED flag_setstackexecutable -diff -Naur gcc-6.3.0-orig/gcc/config/i386/msys-w64.h gcc-6.3.0/gcc/config/i386/msys-w64.h ---- gcc-6.3.0-orig/gcc/config/i386/msys-w64.h 1970-01-01 03:00:00.000000000 +0300 -+++ gcc-6.3.0/gcc/config/i386/msys-w64.h 2017-01-24 12:04:34.354054000 +0300 +diff -Naur gcc-9.1.0-orig/gcc/config/i386/msys-w64.h gcc-9.1.0/gcc/config/i386/msys-w64.h +--- gcc-9.1.0-orig/gcc/config/i386/msys-w64.h 1970-01-01 03:00:00.000000000 +0300 ++++ gcc-9.1.0/gcc/config/i386/msys-w64.h 2019-07-04 09:28:09.788616100 +0300 @@ -0,0 +1,84 @@ +/* Operating system specific defines to be used when targeting GCC for + hosting on Windows 32/64 via MSYS runtime, using GNU tools and + the Windows API Library. -+ Copyright (C) 2013-2015 Free Software Foundation, Inc. ++ Copyright (C) 2013-2019 Free Software Foundation, Inc. + +This file is part of GCC. + @@ -265,16 +250,16 @@ diff -Naur gcc-6.3.0-orig/gcc/config/i386/msys-w64.h gcc-6.3.0/gcc/config/i386/m + +#undef LIBGCC_SONAME +#define LIBGCC_SONAME "msys-gcc_s-seh-1.dll" -diff -Naur gcc-6.3.0-orig/gcc/config/i386/t-msys-w64 gcc-6.3.0/gcc/config/i386/t-msys-w64 ---- gcc-6.3.0-orig/gcc/config/i386/t-msys-w64 1970-01-01 03:00:00.000000000 +0300 -+++ gcc-6.3.0/gcc/config/i386/t-msys-w64 2017-01-24 12:04:34.354054000 +0300 +diff -Naur gcc-9.1.0-orig/gcc/config/i386/t-msys-w64 gcc-9.1.0/gcc/config/i386/t-msys-w64 +--- gcc-9.1.0-orig/gcc/config/i386/t-msys-w64 1970-01-01 03:00:00.000000000 +0300 ++++ gcc-9.1.0/gcc/config/i386/t-msys-w64 2019-07-04 09:28:09.788616100 +0300 @@ -0,0 +1,3 @@ +MULTILIB_OPTIONS = m64/m32 +MULTILIB_DIRNAMES = 64 +MULTILIB_OSDIRNAMES = ../lib ../lib32 -diff -Naur gcc-6.3.0-orig/gcc/config.build gcc-6.3.0/gcc/config.build ---- gcc-6.3.0-orig/gcc/config.build 2016-01-04 17:30:50.000000000 +0300 -+++ gcc-6.3.0/gcc/config.build 2017-01-24 12:04:34.354054000 +0300 +diff -Naur gcc-9.1.0-orig/gcc/config.build gcc-9.1.0/gcc/config.build +--- gcc-9.1.0-orig/gcc/config.build 2019-01-01 15:31:55.000000000 +0300 ++++ gcc-9.1.0/gcc/config.build 2019-07-04 09:28:09.788616100 +0300 @@ -60,6 +60,10 @@ build_xm_file=i386/xm-cygwin.h build_exeext=.exe @@ -286,10 +271,10 @@ diff -Naur gcc-6.3.0-orig/gcc/config.build gcc-6.3.0/gcc/config.build i[34567]86-*-mingw32* | x86_64-*-mingw*) build_xm_file=i386/xm-mingw32.h build_exeext=.exe -diff -Naur gcc-6.3.0-orig/gcc/config.gcc gcc-6.3.0/gcc/config.gcc ---- gcc-6.3.0-orig/gcc/config.gcc 2017-01-24 12:01:43.334712400 +0300 -+++ gcc-6.3.0/gcc/config.gcc 2017-01-24 12:04:34.354054000 +0300 -@@ -1702,6 +1702,37 @@ +diff -Naur gcc-9.1.0-orig/gcc/config.gcc gcc-9.1.0/gcc/config.gcc +--- gcc-9.1.0-orig/gcc/config.gcc 2019-07-04 09:00:42.422639700 +0300 ++++ gcc-9.1.0/gcc/config.gcc 2019-07-04 09:34:04.845239700 +0300 +@@ -1877,6 +1877,38 @@ use_gcc_stdint=wrap tm_defines="${tm_defines} TARGET_CYGWIN64=1" ;; @@ -299,7 +284,7 @@ diff -Naur gcc-6.3.0-orig/gcc/config.gcc gcc-6.3.0/gcc/config.gcc + tmake_file="${tmake_file} i386/t-cygming t-slibgcc" + target_gtfiles="\$(srcdir)/config/i386/winnt.c" + extra_options="${extra_options} i386/cygming.opt i386/cygwin.opt" -+ extra_objs="winnt.o winnt-stubs.o" ++ extra_objs="${extra_objs} winnt.o winnt-stubs.o" + c_target_objs="${c_target_objs} msformat-c.o" + cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o" + if test x$enable_threads = xyes; then @@ -315,7 +300,7 @@ diff -Naur gcc-6.3.0-orig/gcc/config.gcc gcc-6.3.0/gcc/config.gcc + tmake_file="${tmake_file} i386/t-cygming t-slibgcc i386/t-msys-w64" + target_gtfiles="\$(srcdir)/config/i386/winnt.c" + extra_options="${extra_options} i386/cygming.opt i386/cygwin.opt" -+ extra_objs="winnt.o winnt-stubs.o" ++ extra_objs="${extra_objs} winnt.o winnt-stubs.o" + c_target_objs="${c_target_objs} msformat-c.o" + cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o" + if test x$enable_threads = xyes; then @@ -323,11 +308,12 @@ diff -Naur gcc-6.3.0-orig/gcc/config.gcc gcc-6.3.0/gcc/config.gcc + fi + use_gcc_stdint=wrap + default_use_cxa_atexit=yes ++ tm_defines="${tm_defines} TARGET_CYGWIN64=1" + ;; i[34567]86-*-mingw* | x86_64-*-mingw*) tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h" xm_file=i386/xm-mingw32.h -@@ -4420,6 +4451,8 @@ +@@ -4925,6 +4957,8 @@ ;; i[34567]86-*-cygwin* | x86_64-*-cygwin*) ;; @@ -336,9 +322,9 @@ diff -Naur gcc-6.3.0-orig/gcc/config.gcc gcc-6.3.0/gcc/config.gcc i[34567]86-*-mingw* | x86_64-*-mingw*) ;; i[34567]86-*-dragonfly* | x86_64-*-dragonfly*) -diff -Naur gcc-6.3.0-orig/gcc/config.host gcc-6.3.0/gcc/config.host ---- gcc-6.3.0-orig/gcc/config.host 2017-01-24 11:59:20.670797800 +0300 -+++ gcc-6.3.0/gcc/config.host 2017-01-24 12:04:34.369654000 +0300 +diff -Naur gcc-9.1.0-orig/gcc/config.host gcc-9.1.0/gcc/config.host +--- gcc-9.1.0-orig/gcc/config.host 2019-07-04 09:00:42.032639000 +0300 ++++ gcc-9.1.0/gcc/config.host 2019-07-04 09:28:09.788616100 +0300 @@ -234,6 +234,13 @@ host_exeext=.exe host_lto_plugin_soname=cyglto_plugin.dll @@ -353,9 +339,9 @@ diff -Naur gcc-6.3.0-orig/gcc/config.host gcc-6.3.0/gcc/config.host i[34567]86-*-mingw32*) host_xm_file=i386/xm-mingw32.h host_xmake_file="${host_xmake_file} i386/x-mingw32" -diff -Naur gcc-6.3.0-orig/libgcc/config/i386/t-msys gcc-6.3.0/libgcc/config/i386/t-msys ---- gcc-6.3.0-orig/libgcc/config/i386/t-msys 1970-01-01 03:00:00.000000000 +0300 -+++ gcc-6.3.0/libgcc/config/i386/t-msys 2017-01-24 12:04:34.385254000 +0300 +diff -Naur gcc-9.1.0-orig/libgcc/config/i386/t-msys gcc-9.1.0/libgcc/config/i386/t-msys +--- gcc-9.1.0-orig/libgcc/config/i386/t-msys 1970-01-01 03:00:00.000000000 +0300 ++++ gcc-9.1.0/libgcc/config/i386/t-msys 2019-07-04 09:28:09.804216100 +0300 @@ -0,0 +1,19 @@ +# If we are building next to winsup, this will let us find the real +# limits.h when building libgcc2. Otherwise, winsup must be installed @@ -376,10 +362,10 @@ diff -Naur gcc-6.3.0-orig/libgcc/config/i386/t-msys gcc-6.3.0/libgcc/config/i386 +# We'd like to use SHLIB_SONAME here too, and we can, since +# we don't rely on shlib_base_name substitution for it. +SHLIB_MKMAP_OPTS = -v pe_dll=$(SHLIB_SONAME) -diff -Naur gcc-6.3.0-orig/libgcc/config.host gcc-6.3.0/libgcc/config.host ---- gcc-6.3.0-orig/libgcc/config.host 2017-01-24 11:56:37.708704400 +0300 -+++ gcc-6.3.0/libgcc/config.host 2017-01-24 12:04:34.385254000 +0300 -@@ -324,6 +324,9 @@ +diff -Naur gcc-9.1.0-orig/libgcc/config.host gcc-9.1.0/libgcc/config.host +--- gcc-9.1.0-orig/libgcc/config.host 2019-01-17 15:29:13.000000000 +0300 ++++ gcc-9.1.0/libgcc/config.host 2019-07-04 09:28:09.804216100 +0300 +@@ -337,6 +337,9 @@ i[34567]86-*-cygwin* | x86_64-*-cygwin*) enable_execute_stack=config/i386/enable-execute-stack-mingw32.c ;; @@ -389,7 +375,7 @@ diff -Naur gcc-6.3.0-orig/libgcc/config.host gcc-6.3.0/libgcc/config.host *) enable_execute_stack=enable-execute-stack-empty.c; ;; -@@ -698,6 +701,45 @@ +@@ -753,6 +756,45 @@ # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-cygwin t-crtfm t-dfprules i386/t-chkstk" ;; diff --git a/mingw-w64-cross-gcc/0953-7.3.0-testsuite-msys2.patch b/mingw-w64-cross-gcc/0953-7.3.0-testsuite-msys2.patch deleted file mode 100644 index 41723cd9..00000000 --- a/mingw-w64-cross-gcc/0953-7.3.0-testsuite-msys2.patch +++ /dev/null @@ -1,2593 +0,0 @@ -diff -Naur gcc-7.3.0/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv.C.orig gcc-7.3.0/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv.C ---- gcc-7.3.0/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv.C.orig 2018-04-15 10:51:55.426615000 -0400 -+++ gcc-7.3.0/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv.C 2018-04-15 10:55:18.305515700 -0400 -@@ -1,7 +1,7 @@ - // Test for conversion from stateless lambda to function pointer. - - // { dg-do compile { target c++11_only } } --// { dg-final { scan-assembler "weak\[^\n\r\]*_?_ZZ1fvENKUlvE_cvPFvvEEv" { target { ! { *-*-darwin* *-*-mingw* *-*-cygwin *-*-hpux10* } } } } } -+// { dg-final { scan-assembler "weak\[^\n\r\]*_?_ZZ1fvENKUlvE_cvPFvvEEv" { target { ! { *-*-darwin* *-*-mingw* *-*-cygwin *-*-msys *-*-hpux10* } } } } } - - inline void f() - { -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/abi/rtti3.C gcc-6.3.0/gcc/testsuite/g++.dg/abi/rtti3.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/abi/rtti3.C 2015-03-09 02:46:34.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/abi/rtti3.C 2017-01-24 12:05:02.588504400 +0300 -@@ -2,7 +2,7 @@ - // necessarily the type info object - - // { dg-require-weak "" } --// { dg-skip-if "Linkonce not weak" { *-*-mingw* *-*-cygwin } { "*" } { "" } } -+// { dg-skip-if "Linkonce not weak" { *-*-mingw* *-*-cygwin *-*-msys } { "*" } { "" } } - // { dg-final { scan-assembler ".weak\[ \t\]_?_ZTSPP1A" { target { ! { *-*-darwin* hppa*-*-hpux* } } } } } - // { dg-final { scan-assembler-not ".weak\[ \t\]_?_ZTIPP1A" { target { ! { *-*-darwin* } } } } } - // { dg-final { scan-assembler ".weak_definition\[ \t\]_?_ZTSPP1A" { target { *-*-darwin* } } } } -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/abi/thunk4.C gcc-6.3.0/gcc/testsuite/g++.dg/abi/thunk4.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/abi/thunk4.C 2012-03-12 19:35:56.000000000 +0400 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/abi/thunk4.C 2017-01-24 12:05:02.588504400 +0300 -@@ -1,5 +1,5 @@ - // { dg-require-weak "" } --// { dg-skip-if "Linkonce not weak" { *-*-mingw* *-*-cygwin } { "*" } { "" } } -+// { dg-skip-if "Linkonce not weak" { *-*-mingw* *-*-cygwin *-*-msys } { "*" } { "" } } - // { dg-final { scan-assembler ".weak\[ \t\]_?_ZThn._N7Derived3FooEv" { target { ! { *-*-darwin* } } } } } - // { dg-final { scan-assembler ".weak_definition\[ \t\]_?_ZThn._N7Derived3FooEv" { target { *-*-darwin* } } } } - -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/compat/struct-layout-1_generate.c gcc-6.3.0/gcc/testsuite/g++.dg/compat/struct-layout-1_generate.c ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/compat/struct-layout-1_generate.c 2016-10-14 18:37:54.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/compat/struct-layout-1_generate.c 2017-01-24 12:05:02.588504400 +0300 -@@ -46,8 +46,8 @@ - const char *dg_options[] = { - "/* { dg-options \"%s-I%s -Wno-abi\" } */\n", - "/* { dg-options \"%s-I%s -mno-mmx -Wno-abi\" { target i?86-*-* x86_64-*-* } } */\n", --"/* { dg-options \"%s-I%s -fno-common\" { target hppa*-*-hpux* powerpc*-*-darwin* *-*-mingw32* *-*-cygwin* } } */\n", --"/* { dg-options \"%s-I%s -mno-mmx -fno-common -Wno-abi\" { target i?86-*-darwin* x86_64-*-darwin* i?86-*-mingw32* x86_64-*-mingw32* i?86-*-cygwin* } } */\n", -+"/* { dg-options \"%s-I%s -fno-common\" { target hppa*-*-hpux* powerpc*-*-darwin* *-*-mingw32* *-*-cygwin* *-*-msys* } } */\n", -+"/* { dg-options \"%s-I%s -mno-mmx -fno-common -Wno-abi\" { target i?86-*-darwin* x86_64-*-darwin* i?86-*-mingw32* x86_64-*-mingw32* i?86-*-cygwin* i?86-*-msys* } } */\n", - "/* { dg-options \"%s-I%s -mno-base-addresses\" { target mmix-*-* } } */\n", - "/* { dg-options \"%s-I%s -mlongcalls -mtext-section-literals\" { target xtensa*-*-* } } */\n" - #define NDG_OPTIONS (sizeof (dg_options) / sizeof (dg_options[0])) -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mangle.C gcc-6.3.0/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mangle.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mangle.C 2014-03-08 00:01:12.000000000 +0400 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mangle.C 2017-01-24 12:05:02.588504400 +0300 -@@ -12,7 +12,7 @@ - // The call operator of that type is _ZZ1giENKUlvE_clEv. - - // { dg-final { scan-assembler "_ZZ1giENKUlvE_clEv" } } --// { dg-final { scan-assembler "weak\[^\n\r\]*_?_ZZ1giENKUlvE_clEv" { target { ! { *-*-darwin* *-*-mingw* *-*-cygwin } } } } } -+// { dg-final { scan-assembler "weak\[^\n\r\]*_?_ZZ1giENKUlvE_clEv" { target { ! { *-*-darwin* *-*-mingw* *-*-cygwin *-*-msys } } } } } - - algo([=]{return n+bef();}); - // The captured entities do not participate in -@@ -34,7 +34,7 @@ - // Type: ZN1S1fEiiEd0_UlvE_ - // Operator: _ZZN1S1fEiiEd0_NKUlvE_clEv - // { dg-final { scan-assembler "_ZZN1S1fEiiEd0_NKUlvE_clEv" } } --// { dg-final { scan-assembler "weak\[^\n\r\]*_?_ZZN1S1fEiiEd0_NKUlvE_clEv" { target { ! { *-*-darwin* *-*-mingw* *-*-cygwin } } } } } -+// { dg-final { scan-assembler "weak\[^\n\r\]*_?_ZZN1S1fEiiEd0_NKUlvE_clEv" { target { ! { *-*-darwin* *-*-mingw* *-*-cygwin *-*-msys } } } } } - []{return 1;}() - // Type: ZN1S1fEiiEd0_UlvE0_ - // Operator: _ZZN1S1fEiiEd0_NKUlvE0_clEv -@@ -55,7 +55,7 @@ - // Type of lambda in intializer of R::x: N1RIiE1xMUlvE_E - // Corresponding operator(): _ZNK1RIiE1xMUlvE_clEv - // { dg-final { scan-assembler "_ZNK1RIiE1xMUlvE_clEv" } } --// { dg-final { scan-assembler "weak\[^\n\r\]*_?_ZNK1RIiE1xMUlvE_clEv" { target { ! { *-*-mingw* *-*-cygwin } } } } } -+// { dg-final { scan-assembler "weak\[^\n\r\]*_?_ZNK1RIiE1xMUlvE_clEv" { target { ! { *-*-mingw* *-*-cygwin *-*-msys } } } } } - - void bar() - { -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllexport1.C gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllexport1.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllexport1.C 2010-10-10 23:25:09.000000000 +0400 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllexport1.C 2017-01-24 12:05:02.588504400 +0300 -@@ -1,5 +1,5 @@ - // Test that inline functions are exported with -fkeep-inline-functions. --// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw*} } -+// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw*} } - // { dg-options -fkeep-inline-functions } - - __attribute__((dllexport)) inline int foo (int a) { return a;} -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllexport3.C gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllexport3.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllexport3.C 2010-10-10 23:25:09.000000000 +0400 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllexport3.C 2017-01-24 12:05:02.588504400 +0300 -@@ -1,5 +1,5 @@ - // PR c++/42870 --// { dg-do compile { target i?86-*-cygwin *-*-mingw* } } -+// { dg-do compile { target i?86-*-cygwin i?86-*-msys *-*-mingw* } } - // { dg-final { scan-assembler "-export:\[\\\\\"\]*_ZN2SaD1Ev" } } - - #define ATTRIBUTE __attribute__ ((dllexport)) -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllexport-MI1.C gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllexport-MI1.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllexport-MI1.C 2011-01-07 17:12:43.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllexport-MI1.C 2017-01-24 12:05:02.604104400 +0300 -@@ -1,4 +1,4 @@ --// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw*} } -+// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw*} } - // Test that non-virtual MI thunks are exported. - - -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport1.C gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport1.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport1.C 2011-01-07 17:12:43.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport1.C 2017-01-24 12:05:02.604104400 +0300 -@@ -1,5 +1,5 @@ - // PR c++/7910 --// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } -+// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } - // { dg-options { -Wall -W } } - - class __attribute__((dllimport)) Foo -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport10.C gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport10.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport10.C 2011-01-07 17:12:43.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport10.C 2017-01-24 12:05:02.604104400 +0300 -@@ -1,7 +1,7 @@ - // PR c++/5287, c++/11021 - // Inherit a virtual method from a dllimport'd base class. - --// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } -+// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } - - struct __attribute__((dllimport)) A - { -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport11.C gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport11.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport11.C 2011-01-07 17:12:43.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport11.C 2017-01-24 12:05:02.604104400 +0300 -@@ -1,6 +1,6 @@ - // PR target/23589 - // Template member functions do not get dllimport status of class. --// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } -+// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } - - struct __attribute__((dllimport)) Foo - { -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport12.C gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport12.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport12.C 2011-01-07 17:12:43.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport12.C 2017-01-24 12:05:02.604104400 +0300 -@@ -1,7 +1,7 @@ - // PR target/27650 - // Don't use dllimport semantics on virtual methods when initializing - // vtables --// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } -+// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } - - // Use import lib thunk for vtable entry of explicitly virtual method, - struct base -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport13.C gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport13.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport13.C 2011-01-07 17:12:43.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport13.C 2017-01-24 12:05:02.604104400 +0300 -@@ -1,7 +1,7 @@ - // PR c++/34749 - // Ensure dllimport is handled correctly for friends - --// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } -+// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } - - int __declspec (dllimport) bar(); - int __declspec (dllimport) baz(); -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport2.C gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport2.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport2.C 2011-01-07 17:12:43.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport2.C 2017-01-24 12:05:02.604104400 +0300 -@@ -1,4 +1,4 @@ --// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } -+// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } - // PR c++/9738 Dllimport attribute is overriden by later definition/redeclaration - - void __attribute__((dllimport)) Bar(void); -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport3.C gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport3.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport3.C 2011-01-07 17:12:43.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport3.C 2017-01-24 12:05:02.604104400 +0300 -@@ -1,4 +1,4 @@ --// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } -+// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } - - // PR 10148 Dllimport attribute of object is overriden by later - // redefinition without attribute. -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport4.C gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport4.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport4.C 2011-01-07 17:12:43.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport4.C 2017-01-24 12:05:02.619704400 +0300 -@@ -1,5 +1,5 @@ - // Report error if dllimport attribute in definition itself. --// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } -+// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } - - __attribute__((dllimport)) void bar () { } // { dg-error "definition" } - -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport5.C gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport5.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport5.C 2011-01-07 17:12:43.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport5.C 2017-01-24 12:05:02.619704400 +0300 -@@ -1,4 +1,4 @@ --// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } -+// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } - // Report error if static symbol definition has dllimport attribute. - - __attribute__((dllimport)) -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport6.C gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport6.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport6.C 2011-01-07 17:12:43.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport6.C 2017-01-24 12:05:02.619704400 +0300 -@@ -1,4 +1,4 @@ --// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } -+// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } - // Mark class static members as dllimport. - - struct Baz -diff -aurp gcc-7.3.0/gcc/testsuite/g++.dg/ext/dllimport7.C.orig gcc-7.3.0/gcc/testsuite/g++.dg/ext/dllimport7.C ---- gcc-7.3.0/gcc/testsuite/g++.dg/ext/dllimport7.C.orig 2017-04-19 02:55:33.851493000 -0400 -+++ gcc-7.3.0/gcc/testsuite/g++.dg/ext/dllimport7.C 2018-04-15 10:51:55.545931100 -0400 -@@ -1,4 +1,4 @@ --// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } -+// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } - - // Report errors on definition of dllimport'd static data member . - -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport8.C gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport8.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport8.C 2011-01-07 17:12:43.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport8.C 2017-01-24 12:05:02.619704400 +0300 -@@ -2,7 +2,7 @@ - // Ignore dllimport of static members if marked inlined. - // or if definition follows declaration in dllimported class. - --// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } -+// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } - // { dg-options { -Wall -W } } - - struct __attribute__((dllimport)) Foo -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport9.C gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport9.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport9.C 2011-01-07 17:12:43.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport9.C 2017-01-24 12:05:02.619704400 +0300 -@@ -1,5 +1,5 @@ - // Handle dllimport attribute for functions declared inline. --// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } -+// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } - // { dg-options { -W } } - - inline __attribute__((dllimport)) void bar() { } // { dg-warning "inline" } -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport-MI1.C gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport-MI1.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/dllimport-MI1.C 2011-01-07 17:12:43.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/ext/dllimport-MI1.C 2017-01-24 12:05:02.619704400 +0300 -@@ -1,4 +1,4 @@ --// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } -+// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } - // Test handling of MI thunks in dllimported classes. - - // To build the dll and client app: -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/selectany1.C gcc-6.3.0/gcc/testsuite/g++.dg/ext/selectany1.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/selectany1.C 2011-01-07 17:12:43.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/ext/selectany1.C 2017-01-24 12:05:02.635304400 +0300 -@@ -1,4 +1,4 @@ --// { dg-do compile { target i?86-pc-cygwin } } -+// { dg-do compile { target i?86-pc-cygwin i?86-pc-msys } } - // { dg-do compile { target i?86-*-mingw* x86_64-*-mingw* } } - - // Check that selectany attribute puts symbols into link-once sections. -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/selectany2.C gcc-6.3.0/gcc/testsuite/g++.dg/ext/selectany2.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/ext/selectany2.C 2015-10-02 11:08:38.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/ext/selectany2.C 2017-01-24 12:05:02.635304400 +0300 -@@ -1,4 +1,4 @@ --// { dg-do compile { target i?86-pc-cygwin } } -+// { dg-do compile { target i?86-pc-cygwin i?86-pc-msys } } - // { dg-do compile { target i?86-*-mingw* x86_64-*-mingw* } } - - // Check for errors with invalid usage of selectany attribute. -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/opt/vt1.C gcc-6.3.0/gcc/testsuite/g++.dg/opt/vt1.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/opt/vt1.C 2009-10-23 21:37:13.000000000 +0400 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/opt/vt1.C 2017-01-24 12:05:02.635304400 +0300 -@@ -2,7 +2,7 @@ - // { dg-do compile { target fpic } } - // { dg-options "-O2 -fpic -fno-rtti" } - // { dg-skip-if "requires unsupported run-time relocation" { spu-*-* } { "*" } { "" } } --// { dg-skip-if "No Windows PIC" { *-*-mingw* *-*-cygwin } { "*" } { "" } } -+// { dg-skip-if "No Windows PIC" { *-*-mingw* *-*-cygwin *-*-msys } { "*" } { "" } } - // Origin: Jakub Jelinek - - struct S -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.dg/template/spec35.C gcc-6.3.0/gcc/testsuite/g++.dg/template/spec35.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.dg/template/spec35.C 2009-10-23 21:37:13.000000000 +0400 -+++ gcc-6.3.0/gcc/testsuite/g++.dg/template/spec35.C 2017-01-24 12:05:02.635304400 +0300 -@@ -24,6 +24,6 @@ - // { dg-final { scan-assembler-not ".glob(a|)l\[\t \]*_?_Z2f1IiEvT_" } } - f1(0); // Expected to have static linkage - -- // { dg-final { scan-assembler ".weak(_definition)?\[\t \]*_?_Z2f2IiEvT_" { target { ! { *-*-mingw* *-*-cygwin } } } } } -+ // { dg-final { scan-assembler ".weak(_definition)?\[\t \]*_?_Z2f2IiEvT_" { target { ! { *-*-mingw* *-*-cygwin *-*-msys } } } } } - f2(0); // Expected to have weak global linkage - } -diff -Naur gcc-6.3.0-orig/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C gcc-6.3.0/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C ---- gcc-6.3.0-orig/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C 2012-03-12 19:35:56.000000000 +0400 -+++ gcc-6.3.0/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C 2017-01-24 12:05:02.635304400 +0300 -@@ -1,4 +1,4 @@ --// { dg-do run { xfail i?86-pc-cygwin } } -+// { dg-do run { xfail i?86-pc-cygwin i?86-pc-msys } } - // Test that attributes weak and alias coexist. - // { dg-require-weak "" } - // { dg-require-alias "" } -diff -aurp gcc-7.3.0/gcc/testsuite/gcc.dg/attr-ms_struct-1.c.orig gcc-7.3.0/gcc/testsuite/gcc.dg/attr-ms_struct-1.c ---- gcc-7.3.0/gcc/testsuite/gcc.dg/attr-ms_struct-1.c.orig 2018-04-15 10:51:56.116450700 -0400 -+++ gcc-7.3.0/gcc/testsuite/gcc.dg/attr-ms_struct-1.c 2018-04-15 11:06:47.431289500 -0400 -@@ -1,5 +1,5 @@ - /* Test for MS structure sizes. */ --/* { dg-do run { target *-*-mingw* *-*-cygwin* i?86-*-darwin* } } */ -+/* { dg-do run { target *-*-mingw* *-*-cygwin* *-*-msys* i?86-*-darwin* } } */ - /* { dg-require-effective-target ilp32 } */ - /* { dg-options "-std=gnu99" } */ - -diff -aurp gcc-7.3.0/gcc/testsuite/gcc.dg/attr-ms_struct-2.c.orig gcc-7.3.0/gcc/testsuite/gcc.dg/attr-ms_struct-2.c ---- gcc-7.3.0/gcc/testsuite/gcc.dg/attr-ms_struct-2.c.orig 2018-04-15 13:12:02.314276800 -0400 -+++ gcc-7.3.0/gcc/testsuite/gcc.dg/attr-ms_struct-2.c 2018-04-15 13:19:14.822616600 -0400 -@@ -1,5 +1,5 @@ - /* Test for MS structure sizes. */ --/* { dg-do run { target *-*-mingw* *-*-cygwin* i?86-*-darwin* } } */ -+/* { dg-do run { target *-*-mingw* *-*-cygwin* *-*-msys* i?86-*-darwin* } } */ - /* { dg-require-effective-target ilp32 } */ - /* { dg-options "-std=gnu99" } */ - -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gcc.dg/attr-ms_struct-packed1.c gcc-6.3.0/gcc/testsuite/gcc.dg/attr-ms_struct-packed1.c ---- gcc-7.3.0/gcc/testsuite/gcc.dg/attr-ms_struct-packed1.c.orig 2018-04-15 12:13:10.648618300 -0400 -+++ gcc-7.3.0/gcc/testsuite/gcc.dg/attr-ms_struct-packed1.c 2018-04-15 12:20:57.045298900 -0400 -@@ -1,5 +1,5 @@ - /* Test for MS structure with packed attribute. */ --/* { dg-do run { target *-*-mingw* *-*-cygwin* i?86-*-darwin* } } -+/* { dg-do run { target *-*-mingw* *-*-cygwin* *-*-msys* i?86-*-darwin* } } - /* { dg-options "-std=gnu99" } */ - - extern void abort (); -diff -aurp gcc-7.3.0/gcc/testsuite/gcc.dg/bf-ms-attrib.c.orig gcc-7.3.0/gcc/testsuite/gcc.dg/bf-ms-attrib.c ---- gcc-7.3.0/gcc/testsuite/gcc.dg/bf-ms-attrib.c.orig 2018-04-15 13:12:02.330821000 -0400 -+++ gcc-7.3.0/gcc/testsuite/gcc.dg/bf-ms-attrib.c 2018-04-15 13:24:13.380317700 -0400 -@@ -3,7 +3,7 @@ - posted to GCC-patches - http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00577.html */ - --/* { dg-do run { target *-*-mingw* *-*-cygwin* } } */ -+/* { dg-do run { target *-*-mingw* *-*-cygwin* *-*-msys* } } */ - - /* We don't want the default "pedantic-errors" in this case, since we're - testing nonstandard stuff to begin with. */ -diff -aurp gcc-7.3.0/gcc/testsuite/gcc.dg/bf-ms-layout.c.orig gcc-7.3.0/gcc/testsuite/gcc.dg/bf-ms-layout.c ---- gcc-7.3.0/gcc/testsuite/gcc.dg/bf-ms-layout.c.orig 2018-04-15 13:56:42.693307600 -0400 -+++ gcc-7.3.0/gcc/testsuite/gcc.dg/bf-ms-layout.c 2018-04-15 13:59:05.661616600 -0400 -@@ -5,7 +5,7 @@ - posted to GCC-patches - http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00577.html */ - --/* { dg-do run { target *-*-mingw* *-*-cygwin* i?86-*-darwin* } } */ -+/* { dg-do run { target *-*-mingw* *-*-cygwin* *-*-msys* i?86-*-darwin* } } */ - /* { dg-options "-mms-bitfields -D_TEST_MS_LAYOUT" } */ - - #include -diff -aurp gcc-7.3.0/gcc/testsuite/gcc.dg/bf-ms-layout-2.c.orig gcc-7.3.0/gcc/testsuite/gcc.dg/bf-ms-layout-2.c ---- gcc-7.3.0/gcc/testsuite/gcc.dg/bf-ms-layout-2.c.orig 2018-04-15 14:13:23.415060600 -0400 -+++ gcc-7.3.0/gcc/testsuite/gcc.dg/bf-ms-layout-2.c 2018-04-15 14:17:13.165554000 -0400 -@@ -5,7 +5,7 @@ - posted to GCC-patches - http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00577.html */ - --/* { dg-do run { target *-*-mingw* *-*-cygwin* i?86-*-darwin* } } */ -+/* { dg-do run { target *-*-mingw* *-*-cygwin* *-*-msys* i?86-*-darwin* } } */ - /* { dg-options "-D_TEST_MS_LAYOUT" } */ - /* This test uses the attribute instead of the command line option. */ - -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gcc.dg/bf-ms-layout-3.c gcc-6.3.0/gcc/testsuite/gcc.dg/bf-ms-layout-3.c ---- gcc-7.3.0/gcc/testsuite/gcc.dg/bf-ms-layout-3.c.orig 2018-04-15 14:13:23.424084500 -0400 -+++ gcc-7.3.0/gcc/testsuite/gcc.dg/bf-ms-layout-3.c 2018-04-15 14:20:56.342922900 -0400 -@@ -1,5 +1,5 @@ - /* Test for MS bitfield layout */ --/* { dg-do run { target *-*-mingw* *-*-cygwin* i?86-*-* x86_64-*-* } } */ -+/* { dg-do run { target *-*-mingw* *-*-cygwin* *-*-msys* i?86-*-* x86_64-*-* } } */ - - extern void abort(); - -diff -aurp gcc-7.3.0/gcc/testsuite/gcc.dg/bf-no-ms-layout.c.orig gcc-7.3.0/gcc/testsuite/gcc.dg/bf-no-ms-layout.c ---- gcc-7.3.0/gcc/testsuite/gcc.dg/bf-no-ms-layout.c.orig 2018-04-15 14:30:06.814376200 -0400 -+++ gcc-7.3.0/gcc/testsuite/gcc.dg/bf-no-ms-layout.c 2018-04-15 14:37:28.971071500 -0400 -@@ -5,7 +5,7 @@ - posted to GCC-patches - http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00577.html */ - --/* { dg-do run { target *-*-mingw* *-*-cygwin* i?86-*-darwin } } */ -+/* { dg-do run { target *-*-mingw* *-*-cygwin* *-*-msys* i?86-*-darwin } } */ - /* { dg-options "-mno-ms-bitfields" } */ - - #include -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gcc.dg/dll-3.c gcc-6.3.0/gcc/testsuite/gcc.dg/dll-3.c ---- gcc-6.3.0-orig/gcc/testsuite/gcc.dg/dll-3.c 2010-10-10 23:25:09.000000000 +0400 -+++ gcc-6.3.0/gcc/testsuite/gcc.dg/dll-3.c 2017-01-24 12:05:02.650904500 +0300 -@@ -1,7 +1,7 @@ - /* Ensure dllexport overrides dllimport. */ - - /* { dg-do compile { target arm*-*-pe* } } */ --/* { dg-do compile { target i?86-pc-cygwin } } */ -+/* { dg-do compile { target i?86-pc-cygwin i?86-pc-msys } } */ - /* { dg-do compile { target i?86-*-mingw* x86_64-*-mingw*} } */ - - __declspec (dllimport) int foo1 (); -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gcc.dg/dll-4.c gcc-6.3.0/gcc/testsuite/gcc.dg/dll-4.c ---- gcc-6.3.0-orig/gcc/testsuite/gcc.dg/dll-4.c 2010-10-10 23:25:09.000000000 +0400 -+++ gcc-6.3.0/gcc/testsuite/gcc.dg/dll-4.c 2017-01-24 12:05:02.650904500 +0300 -@@ -1,5 +1,5 @@ - /* { dg-do compile { target arm*-*-pe* } } */ --/* { dg-do compile { target i?86-pc-cygwin } } */ -+/* { dg-do compile { target i?86-pc-cygwin i?86-pc-msys } } */ - /* { dg-do compile { target i?86-*-mingw* x86_64-*-mingw* } } */ - - __declspec (dllimport) int foo1; -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gcc.dg/dll-5.c gcc-6.3.0/gcc/testsuite/gcc.dg/dll-5.c ---- gcc-6.3.0-orig/gcc/testsuite/gcc.dg/dll-5.c 2010-10-10 23:25:09.000000000 +0400 -+++ gcc-6.3.0/gcc/testsuite/gcc.dg/dll-5.c 2017-01-24 12:05:02.650904500 +0300 -@@ -1,4 +1,4 @@ --/* { dg-do compile { target i?86-pc-cygwin } } */ -+/* { dg-do compile { target i?86-pc-cygwin i?86-pc-msys } } */ - /* { dg-do compile { target i?86-*-mingw* x86_64-*-mingw* } } */ - /* { dg-do compile { target arm*-*-pe* } } */ - -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gcc.dg/dll-8.c gcc-6.3.0/gcc/testsuite/gcc.dg/dll-8.c ---- gcc-6.3.0-orig/gcc/testsuite/gcc.dg/dll-8.c 2012-04-10 07:15:22.000000000 +0400 -+++ gcc-6.3.0/gcc/testsuite/gcc.dg/dll-8.c 2017-01-24 12:05:02.666504500 +0300 -@@ -1,4 +1,4 @@ --/* { dg-do compile { target i?86-pc-cygwin } } */ -+/* { dg-do compile { target i?86-pc-cygwin i?86-pc-msys } } */ - /* { dg-do compile { target i?86-*-mingw* x86_64-*-mingw*} } */ - /* { dg-options "-O3 -fwhole-program" } */ - /* { dg-final { scan-assembler "foo1" } } */ -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gcc.dg/graphite/run-id-1.c gcc-6.3.0/gcc/testsuite/gcc.dg/graphite/run-id-1.c ---- gcc-6.3.0-orig/gcc/testsuite/gcc.dg/graphite/run-id-1.c 2011-10-27 02:14:43.000000000 +0400 -+++ gcc-6.3.0/gcc/testsuite/gcc.dg/graphite/run-id-1.c 2017-01-24 12:05:02.666504500 +0300 -@@ -1,4 +1,4 @@ --/* { dg-options "-Wl,--stack,12582912" { target *-*-mingw* *-*-cygwin* } } */ -+/* { dg-options "-Wl,--stack,12582912" { target *-*-mingw* *-*-cygwin* *-*-msys* } } */ - /* { dg-require-effective-target size32plus } */ - - void abort (void); -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gcc.dg/lto/20090914-2_0.c gcc-6.3.0/gcc/testsuite/gcc.dg/lto/20090914-2_0.c ---- gcc-6.3.0-orig/gcc/testsuite/gcc.dg/lto/20090914-2_0.c 2013-03-06 22:29:46.000000000 +0400 -+++ gcc-6.3.0/gcc/testsuite/gcc.dg/lto/20090914-2_0.c 2017-01-24 12:05:02.666504500 +0300 -@@ -1,7 +1,7 @@ - /* { dg-lto-do run } */ - /* { dg-skip-if "x86 only" { ! { x86_64-*-* i?86-*-* } } { "*" } { "" } } */ - /* { dg-skip-if "no .type" { *-*-darwin* } { "*" } { "" } } */ --/* { dg-skip-if "no @function" { *-*-mingw* *-*-cygwin* } { "*" } { "" } } */ -+/* { dg-skip-if "no @function" { *-*-mingw* *-*-cygwin* *-*-msys* } { "*" } { "" } } */ - - /* Doesn't work without this dummy function with -fwhopr. */ - int foo(void) { } -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c gcc-6.3.0/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c ---- gcc-6.3.0-orig/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c 2015-11-05 11:43:46.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c 2017-01-24 12:05:02.666504500 +0300 -@@ -46,10 +46,10 @@ - /* CRIS keeps the address in a register. */ - /* m68k sometimes puts the address in a register, depending on CPU and PIC. */ - --/* { dg-final { scan-assembler-times "foo" 5 { xfail hppa*-*-* ia64*-*-* sh*-*-* cris-*-* crisv32-*-* fido-*-* m68k-*-* i?86-*-mingw* i?86-*-cygwin* x86_64-*-mingw* visium-*-* } } } */ -+/* { dg-final { scan-assembler-times "foo" 5 { xfail hppa*-*-* ia64*-*-* sh*-*-* cris-*-* crisv32-*-* fido-*-* m68k-*-* i?86-*-mingw* i?86-*-cygwin* i?86-*-msys* x86_64-*-mingw* visium-*-* } } } */ - /* { dg-final { scan-assembler-times "foo,%r" 5 { target hppa*-*-* } } } */ - /* { dg-final { scan-assembler-times "= foo" 5 { target ia64*-*-* } } } */ --/* { dg-final { scan-assembler-times "call\[ \t\]*_foo" 5 { target i?86-*-mingw* i?86-*-cygwin* } } } */ -+/* { dg-final { scan-assembler-times "call\[ \t\]*_foo" 5 { target i?86-*-mingw* i?86-*-cygwin* i?86-*-msys* } } } */ - /* { dg-final { scan-assembler-times "call\[ \t\]*foo" 5 { target x86_64-*-mingw* } } } */ - /* { dg-final { scan-assembler-times "jsr|bsrf|blink\ttr?,r18" 5 { target sh*-*-* } } } */ - /* { dg-final { scan-assembler-times "Jsr \\\$r" 5 { target cris-*-* } } } */ -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gcc.target/i386/bitfield1.c gcc-6.3.0/gcc/testsuite/gcc.target/i386/bitfield1.c ---- gcc-7.3.0/gcc/testsuite/gcc.target/i386/bitfield1.c.orig 2018-04-15 13:36:04.768005800 -0400 -+++ gcc-7.3.0/gcc/testsuite/gcc.target/i386/bitfield1.c 2018-04-15 13:43:42.537956400 -0400 -@@ -2,7 +2,7 @@ - // { dg-do run } - // { dg-require-effective-target ia32 } - // { dg-options "-O2" } --// { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-cygwin* i?86-*-mingw*} } -+// { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw*} } - - extern void abort (void); - extern void exit (int); -diff -aurp gcc-7.3.0/gcc/testsuite/gcc.target/i386/bitfield2.c.orig gcc-7.3.0/gcc/testsuite/gcc.target/i386/bitfield2.c ---- gcc-7.3.0/gcc/testsuite/gcc.target/i386/bitfield2.c.orig 2018-04-15 13:36:04.768005800 -0400 -+++ gcc-7.3.0/gcc/testsuite/gcc.target/i386/bitfield2.c 2018-04-15 13:46:55.407633700 -0400 -@@ -2,7 +2,7 @@ - // { dg-do run } - // { dg-require-effective-target ia32 } - // { dg-options "-O2" } --// { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-cygwin* i?86-*-mingw* } } -+// { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* } } - - extern void abort (void); - extern void exit (int); -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gcc.target/i386/fastcall-1.c gcc-6.3.0/gcc/testsuite/gcc.target/i386/fastcall-1.c ---- gcc-6.3.0-orig/gcc/testsuite/gcc.target/i386/fastcall-1.c 2008-01-26 12:31:30.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/gcc.target/i386/fastcall-1.c 2017-01-24 12:05:02.666504500 +0300 -@@ -1,4 +1,4 @@ --/* { dg-do compile { target i?86-*-mingw32* i?86-*-cygwin* } } */ -+/* { dg-do compile { target i?86-*-mingw32* i?86-*-cygwin* i?86-*-msys* } } */ - /* { dg-options "-std=gnu89" } */ - - void -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gcc.target/i386/pad-4.c gcc-6.3.0/gcc/testsuite/gcc.target/i386/pad-4.c ---- gcc-6.3.0-orig/gcc/testsuite/gcc.target/i386/pad-4.c 2014-11-12 21:32:57.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/gcc.target/i386/pad-4.c 2017-01-24 12:05:02.666504500 +0300 -@@ -2,7 +2,7 @@ - /* { dg-require-effective-target ia32 } */ - /* { dg-require-effective-target fpic } */ - /* { dg-skip-if "" { *-*-* } { "-march=*" } { "-march=atom" } } */ --/* { dg-skip-if "No Windows PIC" { *-*-mingw* *-*-cygwin } { "*" } { "" } } */ -+/* { dg-skip-if "No Windows PIC" { *-*-mingw* *-*-cygwin *-*-msys } { "*" } { "" } } */ - /* { dg-options "-O2 -fomit-frame-pointer -march=atom -fPIC" } */ - /* { dg-final { scan-assembler-times "nop" 8 } } */ - /* { dg-final { scan-assembler-not "rep" } } */ -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gcc.target/i386/pic-1.c gcc-6.3.0/gcc/testsuite/gcc.target/i386/pic-1.c ---- gcc-6.3.0-orig/gcc/testsuite/gcc.target/i386/pic-1.c 2014-10-13 21:26:49.000000000 +0400 -+++ gcc-6.3.0/gcc/testsuite/gcc.target/i386/pic-1.c 2017-01-24 12:05:02.682104500 +0300 -@@ -2,7 +2,7 @@ - /* { dg-do compile } */ - /* { dg-require-effective-target ia32 } */ - /* { dg-require-effective-target fpic } */ --/* { dg-skip-if "No Windows PIC" { *-*-mingw* *-*-cygwin } { "*" } { "" } } */ -+/* { dg-skip-if "No Windows PIC" { *-*-mingw* *-*-cygwin *-*-msys } { "*" } { "" } } */ - /* { dg-options "-fPIC" } */ - - /* Test verifies that %ebx is no longer fixed when generating PIC code on i686. */ -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gcc.target/i386/pr25993.c gcc-6.3.0/gcc/testsuite/gcc.target/i386/pr25993.c ---- gcc-6.3.0-orig/gcc/testsuite/gcc.target/i386/pr25993.c 2017-01-24 12:00:21.857351300 +0300 -+++ gcc-6.3.0/gcc/testsuite/gcc.target/i386/pr25993.c 2017-01-24 12:05:02.682104500 +0300 -@@ -1,5 +1,5 @@ - /* { dg-do assemble } */ --/* { dg-skip-if "" { "*-*-darwin*" "*-*-mingw*" "*-*-cygwin*" } { "*" } { "" } } */ -+/* { dg-skip-if "" { "*-*-darwin*" "*-*-mingw*" "*-*-cygwin*" "*-*-msys*" } { "*" } { "" } } */ - /* { dg-options "-std=c99 -x assembler-with-cpp" } */ - - #ifndef __ASSEMBLER__ -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gcc.target/i386/pr40906-1.c gcc-6.3.0/gcc/testsuite/gcc.target/i386/pr40906-1.c ---- gcc-6.3.0-orig/gcc/testsuite/gcc.target/i386/pr40906-1.c 2011-10-20 17:04:34.000000000 +0400 -+++ gcc-6.3.0/gcc/testsuite/gcc.target/i386/pr40906-1.c 2017-01-24 12:05:02.682104500 +0300 -@@ -1,7 +1,7 @@ - /* { dg-do run } */ - /* { dg-require-effective-target ia32 } */ - /* { dg-options "-O2 -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args -mno-accumulate-outgoing-args" } */ --/* { dg-options "-O2 -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args" { target *-*-mingw* *-*-cygwin* } } */ -+/* { dg-options "-O2 -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args" { target *-*-mingw* *-*-cygwin* *-*-msys* } } */ - - void abort (void); - -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gcc.target/i386/pr40906-2.c gcc-6.3.0/gcc/testsuite/gcc.target/i386/pr40906-2.c ---- gcc-6.3.0-orig/gcc/testsuite/gcc.target/i386/pr40906-2.c 2011-10-20 17:04:34.000000000 +0400 -+++ gcc-6.3.0/gcc/testsuite/gcc.target/i386/pr40906-2.c 2017-01-24 12:05:02.682104500 +0300 -@@ -1,7 +1,7 @@ - /* { dg-do run } */ - /* { dg-require-effective-target ia32 } */ - /* { dg-options "-O2 -Wno-psabi -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args -mno-accumulate-outgoing-args -m128bit-long-double" } */ --/* { dg-options "-O2 -Wno-psabi -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args -m128bit-long-double" { target *-*-mingw* *-*-cygwin* } } */ -+/* { dg-options "-O2 -Wno-psabi -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args -m128bit-long-double" { target *-*-mingw* *-*-cygwin* *-*-msys* } } */ - - void abort (void); - -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gcc.target/i386/pr46226.c gcc-6.3.0/gcc/testsuite/gcc.target/i386/pr46226.c ---- gcc-6.3.0-orig/gcc/testsuite/gcc.target/i386/pr46226.c 2011-10-20 17:04:34.000000000 +0400 -+++ gcc-6.3.0/gcc/testsuite/gcc.target/i386/pr46226.c 2017-01-24 12:05:02.682104500 +0300 -@@ -1,6 +1,6 @@ - /* { dg-do run } */ - /* { dg-options "-Os -fomit-frame-pointer -mno-accumulate-outgoing-args -fno-asynchronous-unwind-tables" } */ --/* { dg-options "-Os -fomit-frame-pointer -fno-asynchronous-unwind-tables" { target *-*-mingw* *-*-cygwin* } } */ -+/* { dg-options "-Os -fomit-frame-pointer -fno-asynchronous-unwind-tables" { target *-*-mingw* *-*-cygwin* *-*-msys* } } */ - - extern void abort(void); - -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gcc.target/i386/pr56564-1.c gcc-6.3.0/gcc/testsuite/gcc.target/i386/pr56564-1.c ---- gcc-6.3.0-orig/gcc/testsuite/gcc.target/i386/pr56564-1.c 2015-05-29 11:20:29.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/gcc.target/i386/pr56564-1.c 2017-01-24 12:05:02.682104500 +0300 -@@ -1,6 +1,6 @@ - /* PR target/56564 */ - /* { dg-do compile { target { fpic && lp64 } } } */ --/* { dg-skip-if "No symbol interposition for PIC" { *-*-mingw* *-*-cygwin* *-*-darwin* } } */ -+/* { dg-skip-if "No symbol interposition for PIC" { *-*-mingw* *-*-cygwin* *-*-msys* *-*-darwin* } } */ - /* { dg-options "-O3 -fpic -fdump-tree-optimized" } */ - - struct S { long a, b; } s = { 5, 6 }; -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gcc.target/i386/pr56564-3.c gcc-6.3.0/gcc/testsuite/gcc.target/i386/pr56564-3.c ---- gcc-6.3.0-orig/gcc/testsuite/gcc.target/i386/pr56564-3.c 2015-05-29 11:20:29.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/gcc.target/i386/pr56564-3.c 2017-01-24 12:05:02.682104500 +0300 -@@ -1,6 +1,6 @@ - /* PR target/56564 */ - /* { dg-do compile { target { fpic && lp64 } } } */ --/* { dg-skip-if "No symbol interposition for PIC" { *-*-mingw* *-*-cygwin* *-*-darwin* } } */ -+/* { dg-skip-if "No symbol interposition for PIC" { *-*-mingw* *-*-cygwin* *-*-msys* *-*-darwin* } } */ - /* { dg-options "-O3 -fpic -fdump-tree-optimized" } */ - - __thread struct S { long a, b; } s = { 5, 6 }; -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gcc.target/i386/sse-10.c gcc-6.3.0/gcc/testsuite/gcc.target/i386/sse-10.c ---- gcc-6.3.0-orig/gcc/testsuite/gcc.target/i386/sse-10.c 2010-05-19 20:10:05.000000000 +0400 -+++ gcc-6.3.0/gcc/testsuite/gcc.target/i386/sse-10.c 2017-01-24 12:05:02.682104500 +0300 -@@ -1,7 +1,7 @@ - /* PR 17930 */ - /* { dg-do run } */ - /* { dg-options "-O1 -msse2 -mfpmath=sse -mno-accumulate-outgoing-args -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" } */ --/* { dg-options "-O1 -msse2 -mfpmath=sse -fno-omit-frame-pointer" { target *-*-mingw* *-*-cygwin* } } */ -+/* { dg-options "-O1 -msse2 -mfpmath=sse -fno-omit-frame-pointer" { target *-*-mingw* *-*-cygwin* *-*-msys* } } */ - /* { dg-require-effective-target sse2 } */ - - #include "sse2-check.h" -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gfortran.dg/chmod_1.f90 gcc-6.3.0/gcc/testsuite/gfortran.dg/chmod_1.f90 ---- gcc-6.3.0-orig/gcc/testsuite/gfortran.dg/chmod_1.f90 2015-10-26 13:37:22.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/gfortran.dg/chmod_1.f90 2017-01-24 12:05:02.697704500 +0300 -@@ -1,4 +1,4 @@ --! { dg-do run { target { ! { *-*-mingw* *-*-cygwin* spu-*-* } } } } -+! { dg-do run { target { ! { *-*-mingw* *-*-cygwin* *-*-msys* spu-*-* } } } } - ! { dg-options "-std=gnu" } - ! See PR38956. Test fails on cygwin when user has Administrator rights - implicit none -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gfortran.dg/chmod_2.f90 gcc-6.3.0/gcc/testsuite/gfortran.dg/chmod_2.f90 ---- gcc-6.3.0-orig/gcc/testsuite/gfortran.dg/chmod_2.f90 2015-10-26 13:37:22.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/gfortran.dg/chmod_2.f90 2017-01-24 12:05:02.697704500 +0300 -@@ -1,4 +1,4 @@ --! { dg-do run { target { ! { *-*-mingw* *-*-cygwin* spu-*-* } } } } -+! { dg-do run { target { ! { *-*-mingw* *-*-cygwin* *-*-msys* spu-*-* } } } } - ! { dg-options "-std=gnu" } - ! See PR38956. Test fails on cygwin when user has Administrator rights - implicit none -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gfortran.dg/chmod_3.f90 gcc-6.3.0/gcc/testsuite/gfortran.dg/chmod_3.f90 ---- gcc-6.3.0-orig/gcc/testsuite/gfortran.dg/chmod_3.f90 2015-10-26 13:37:22.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/gfortran.dg/chmod_3.f90 2017-01-24 12:05:02.697704500 +0300 -@@ -1,4 +1,4 @@ --! { dg-do run { target { ! { *-*-mingw* *-*-cygwin* spu-*-* } } } } -+! { dg-do run { target { ! { *-*-mingw* *-*-cygwin* *-*-msys* spu-*-* } } } } - ! { dg-options "-std=gnu -fdefault-integer-8" } - ! See PR38956. Test fails on cygwin when user has Administrator rights - implicit none -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gfortran.dg/default_format_denormal_1.f90 gcc-6.3.0/gcc/testsuite/gfortran.dg/default_format_denormal_1.f90 ---- gcc-6.3.0-orig/gcc/testsuite/gfortran.dg/default_format_denormal_1.f90 2012-11-02 04:23:19.000000000 +0400 -+++ gcc-6.3.0/gcc/testsuite/gfortran.dg/default_format_denormal_1.f90 2017-01-24 12:05:02.697704500 +0300 -@@ -1,4 +1,4 @@ --! { dg-do run { xfail *-*-darwin[89]* *-*-cygwin* spu-*-* powerpc-ibm-aix* } } -+! { dg-do run { xfail *-*-darwin[89]* *-*-cygwin* *-*-msys* spu-*-* powerpc-ibm-aix* } } - ! Test XFAILed on these platforms because the system's printf() lacks - ! proper support for denormals. - ! -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gfortran.dg/open_errors.f90 gcc-6.3.0/gcc/testsuite/gfortran.dg/open_errors.f90 ---- gcc-6.3.0-orig/gcc/testsuite/gfortran.dg/open_errors.f90 2015-03-12 00:34:22.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/gfortran.dg/open_errors.f90 2017-01-24 12:05:02.697704500 +0300 -@@ -1,4 +1,4 @@ --! { dg-do run { target { ! { *-*-mingw* *-*-cygwin* spu-*-* } } } } -+! { dg-do run { target { ! { *-*-mingw* *-*-cygwin* *-*-msys* spu-*-* } } } } - ! PR30005 Enhanced error messages for OPEN - ! Submitted by Jerry DeLisle - ! See PR38956. Test fails on cygwin when user has Administrator rights -diff -Naur gcc-6.3.0-orig/gcc/testsuite/gfortran.dg/winapi.f90 gcc-6.3.0/gcc/testsuite/gfortran.dg/winapi.f90 ---- gcc-6.3.0-orig/gcc/testsuite/gfortran.dg/winapi.f90 2009-08-14 06:35:32.000000000 +0400 -+++ gcc-6.3.0/gcc/testsuite/gfortran.dg/winapi.f90 2017-01-24 12:05:02.697704500 +0300 -@@ -1,4 +1,4 @@ --! { dg-do run { target *-*-cygwin* *-*-mingw* } } -+! { dg-do run { target *-*-cygwin* *-*-msys* *-*-mingw* } } - ! { dg-options "-lkernel32" } - ! Test case provided by Dennis Wassel. - -diff -Naur gcc-6.3.0-orig/gcc/testsuite/lib/g++.exp gcc-6.3.0/gcc/testsuite/lib/g++.exp ---- gcc-6.3.0-orig/gcc/testsuite/lib/g++.exp 2016-01-04 17:30:50.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/lib/g++.exp 2017-01-24 12:05:02.697704500 +0300 -@@ -205,7 +205,7 @@ - - # Many hosts now default to a non-ASCII C locale, however, so - # they can set a charset encoding here if they need. -- if { [ishost "*-*-cygwin*"] } { -+ if { [ishost "*-*-cygwin*"] || [ishost "*-*-msys*"] } { - setenv LC_ALL C.ASCII - setenv LANG C.ASCII - } -diff -Naur gcc-6.3.0-orig/gcc/testsuite/lib/gcc-dg.exp gcc-6.3.0/gcc/testsuite/lib/gcc-dg.exp ---- gcc-6.3.0-orig/gcc/testsuite/lib/gcc-dg.exp 2016-10-05 03:17:40.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/lib/gcc-dg.exp 2017-01-24 12:05:02.713304600 +0300 -@@ -37,7 +37,7 @@ - - # Many hosts now default to a non-ASCII C locale, however, so - # they can set a charset encoding here if they need. --if { [ishost "*-*-cygwin*"] } { -+if { [ishost "*-*-cygwin*"] || [ishost "*-*-msys*"] } { - setenv LC_ALL C.ASCII - setenv LANG C.ASCII - } -diff -Naur gcc-6.3.0-orig/gcc/testsuite/lib/gfortran.exp gcc-6.3.0/gcc/testsuite/lib/gfortran.exp ---- gcc-6.3.0-orig/gcc/testsuite/lib/gfortran.exp 2016-01-04 17:30:50.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/lib/gfortran.exp 2017-01-24 12:05:02.713304600 +0300 -@@ -161,7 +161,7 @@ - - # Many hosts now default to a non-ASCII C locale, however, so - # they can set a charset encoding here if they need. -- if { [ishost "*-*-cygwin*"] } { -+ if { [ishost "*-*-cygwin*"] || [ishost "*-*-msys*"] } { - setenv LC_ALL C.ASCII - setenv LANG C.ASCII - } -diff -Naur gcc-6.3.0-orig/gcc/testsuite/lib/objc.exp gcc-6.3.0/gcc/testsuite/lib/objc.exp ---- gcc-6.3.0-orig/gcc/testsuite/lib/objc.exp 2016-01-04 17:30:50.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/lib/objc.exp 2017-01-24 12:05:02.713304600 +0300 -@@ -105,7 +105,7 @@ - - # Many hosts now default to a non-ASCII C locale, however, so - # they can set a charset encoding here if they need. -- if { [ishost "*-*-cygwin*"] } { -+ if { [ishost "*-*-cygwin*"] || [ishost "*-*-msys*"] } { - setenv LC_ALL C.ASCII - setenv LANG C.ASCII - } -diff -Naur gcc-6.3.0-orig/gcc/testsuite/lib/options.exp gcc-6.3.0/gcc/testsuite/lib/options.exp ---- gcc-6.3.0-orig/gcc/testsuite/lib/options.exp 2016-01-04 17:30:50.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/lib/options.exp 2017-01-24 12:05:02.713304600 +0300 -@@ -20,7 +20,7 @@ - - # Many hosts now default to a non-ASCII C locale, however, so - # they can set a charset encoding here if they need. --if { [ishost "*-*-cygwin*"] } { -+if { [ishost "*-*-cygwin*"] || [ishost "*-*-msys*"] } { - setenv LC_ALL C.ASCII - setenv LANG C.ASCII - } -diff -Naur gcc-6.3.0-orig/gcc/testsuite/lib/target-libpath.exp gcc-6.3.0/gcc/testsuite/lib/target-libpath.exp ---- gcc-6.3.0-orig/gcc/testsuite/lib/target-libpath.exp 2016-01-04 17:30:50.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/lib/target-libpath.exp 2017-01-24 12:05:02.728904600 +0300 -@@ -256,7 +256,7 @@ - - if { [istarget *-*-darwin*] } { - set shlib_ext "dylib" -- } elseif { [istarget *-*-cygwin*] || [istarget *-*-mingw*] } { -+ } elseif { [istarget *-*-cygwin*] || [istarget *-*-msys*] || [istarget *-*-mingw*] } { - set shlib_ext "dll" - } elseif { [istarget hppa*-*-hpux*] } { - set shlib_ext "sl" -diff -Naur gcc-6.3.0-orig/gcc/testsuite/lib/target-supports.exp gcc-6.3.0/gcc/testsuite/lib/target-supports.exp ---- gcc-6.3.0-orig/gcc/testsuite/lib/target-supports.exp 2016-12-07 18:55:26.000000000 +0300 -+++ gcc-6.3.0/gcc/testsuite/lib/target-supports.exp 2017-01-24 12:05:02.728904600 +0300 -@@ -282,7 +282,7 @@ - - # Windows targets Cygwin and MingW32 support it - -- if { [istarget *-*-cygwin*] || [istarget *-*-mingw*] } { -+ if { [istarget *-*-cygwin*] || [istarget *-*-msys*] || [istarget *-*-mingw*] } { - return 1 - } - -@@ -548,6 +548,11 @@ - return 0 - } - -+ # MSYS does not support -p. -+ if { [istarget *-*-msys*] && $test_what == "-p" } { -+ return 0 -+ } -+ - # uClibc does not have gcrt1.o. - if { [check_effective_target_uclibc] - && ($test_what == "-p" || $test_what == "-pg") } { -@@ -949,7 +954,7 @@ - # for trivial code, 0 otherwise. - - proc check_effective_target_pe_aligned_commons {} { -- if { [istarget *-*-cygwin*] || [istarget *-*-mingw*] } { -+ if { [istarget *-*-cygwin*] || [istarget *-*-msys*] || [istarget *-*-mingw*] } { - return [check_no_compiler_messages pe_aligned_commons object { - int foo; - } "-mpe-aligned-commons"] -@@ -2036,7 +2041,7 @@ - # Returns true iff "mkfifo" is available on the target system. - - proc check_mkfifo_available {} { -- if { [istarget *-*-cygwin*] } { -+ if { [istarget *-*-cygwin*] || [istarget *-*-msys*] } { - # Cygwin has mkfifo, but support is incomplete. - return 0 - } -@@ -6242,7 +6247,7 @@ - proc check_effective_target_automatic_stack_alignment { } { - # Ordinarily x86 supports automatic stack alignment ... - if { [istarget i?86*-*-*] || [istarget x86_64-*-*] } then { -- if { [istarget *-*-mingw*] || [istarget *-*-cygwin*] } { -+ if { [istarget *-*-mingw*] || [istarget *-*-cygwin*] || [istarget *-*-msys*] } { - # ... except Win64 SEH doesn't. Succeed for Win32 though. - return [check_effective_target_ilp32]; - } -diff -Naur gcc-6.3.0-orig/libffi/testsuite/lib/target-libpath.exp gcc-6.3.0/libffi/testsuite/lib/target-libpath.exp ---- gcc-6.3.0-orig/libffi/testsuite/lib/target-libpath.exp 2015-01-12 19:19:59.000000000 +0300 -+++ gcc-6.3.0/libffi/testsuite/lib/target-libpath.exp 2017-01-24 12:05:02.728904600 +0300 -@@ -175,7 +175,7 @@ - } else { - setenv DYLD_LIBRARY_PATH "$ld_library_path" - } -- if { [istarget *-*-cygwin*] || [istarget *-*-mingw*] } { -+ if { [istarget *-*-cygwin*] || [istarget *-*-msys*] || [istarget *-*-mingw*] } { - if { $orig_path_saved } { - setenv PATH "$ld_library_path:$orig_path" - } else { -@@ -271,7 +271,7 @@ - - if { [ istarget *-*-darwin* ] } { - set shlib_ext "dylib" -- } elseif { [ istarget *-*-cygwin* ] || [ istarget *-*-mingw* ] } { -+ } elseif { [ istarget *-*-cygwin* ] || [ istarget *-*-msys* ] || [ istarget *-*-mingw* ] } { - set shlib_ext "dll" - } elseif { [ istarget hppa*-*-hpux* ] } { - set shlib_ext "sl" -diff -Naur gcc-6.3.0-orig/libgomp/testsuite/lib/libgomp.exp gcc-6.3.0/libgomp/testsuite/lib/libgomp.exp ---- gcc-6.3.0-orig/libgomp/testsuite/lib/libgomp.exp 2016-03-13 22:08:21.000000000 +0300 -+++ gcc-6.3.0/libgomp/testsuite/lib/libgomp.exp 2017-01-24 12:05:02.744504600 +0300 -@@ -99,7 +99,7 @@ - - # Many hosts now default to a non-ASCII C locale, however, so - # they can set a charset encoding here if they need. -- if { [ishost "*-*-cygwin*"] } { -+ if { [ishost "*-*-cygwin*"] || [ishost "*-*-msys*"] } { - setenv LC_ALL C.ASCII - setenv LANG C.ASCII - } -diff -Naur gcc-6.3.0-orig/libstdc++-v3/testsuite/18_support/pthread_guard.cc gcc-6.3.0/libstdc++-v3/testsuite/18_support/pthread_guard.cc ---- gcc-6.3.0-orig/libstdc++-v3/testsuite/18_support/pthread_guard.cc 2016-01-04 17:30:50.000000000 +0300 -+++ gcc-6.3.0/libstdc++-v3/testsuite/18_support/pthread_guard.cc 2017-01-24 12:05:02.791304700 +0300 -@@ -16,7 +16,7 @@ - // with this library; see the file COPYING3. If not see - // . - --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-darwin* } } - - #include -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/20_util/shared_ptr/atomic/3.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/20_util/shared_ptr/atomic/3.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/20_util/shared_ptr/atomic/3.cc.orig 2018-04-15 15:05:06.474625500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/20_util/shared_ptr/atomic/3.cc 2018-04-15 15:11:51.825689700 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* powerpc-ibm-aix* *-*-solaris* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -Naur gcc-6.3.0-orig/libstdc++-v3/testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc gcc-6.3.0/libstdc++-v3/testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc.orig 2018-04-15 15:05:06.484150100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc 2018-04-15 15:19:17.486622200 -0400 -@@ -17,7 +17,7 @@ - - // 20.6.6.2 Template class shared_ptr [util.smartptr.shared] - --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* } } - // { dg-require-effective-target c++11 } - -diff -Naur gcc-7.3.0/libstdc++-v3/testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc.orig 2018-04-15 15:48:28.660996800 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc 2018-04-15 15:59:01.384781700 -0400 -@@ -17,7 +17,7 @@ - - // 20.6.6.2 Template class shared_ptr [util.smartptr.shared] - --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* } } - // { dg-require-effective-target c++11 } - -diff -Naur gcc-7.3.0/libstdc++-v3/testsuite/21_strings/basic_string/pthread18185.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/21_strings/basic_string/pthread18185.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/21_strings/basic_string/pthread18185.cc.orig 2018-04-15 15:48:28.670522200 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/21_strings/basic_string/pthread18185.cc 2018-04-15 16:04:21.394394800 -0400 -@@ -16,7 +16,7 @@ - // with this library; see the file COPYING3. If not see - // . - --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* } } - - #include -diff -Naur gcc-6.3.0-orig/libstdc++-v3/testsuite/21_strings/basic_string/pthread33394.cc gcc-6.3.0/libstdc++-v3/testsuite/21_strings/basic_string/pthread33394.cc ---- gcc-6.3.0-orig/libstdc++-v3/testsuite/21_strings/basic_string/pthread33394.cc 2016-01-04 17:30:50.000000000 +0300 -+++ gcc-6.3.0/libstdc++-v3/testsuite/21_strings/basic_string/pthread33394.cc 2017-01-24 12:05:02.822504800 +0300 -@@ -15,7 +15,7 @@ - // with this library; see the file COPYING3. If not see - // . - --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* } } - - // { dg-additional-options "-DITERATIONS=1000" { target simulator } } -diff -Naur gcc-7.3.0/libstdc++-v3/testsuite/21_strings/basic_string/pthread4.cc gcc-7.3.0/libstdc++-v3/testsuite/21_strings/basic_string/pthread4.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/21_strings/basic_string/pthread4.cc.orig 2018-04-15 15:48:28.687066100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/21_strings/basic_string/pthread4.cc 2018-04-15 16:08:50.040991300 -0400 -@@ -19,7 +19,7 @@ - // with this library; see the file COPYING3. If not see - // . - --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* } } - - #include -diff -Naur gcc-7.3.0/libstdc++-v3/testsuite/22_locale/locale/cons/12658_thread-1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/22_locale/locale/cons/12658_thread-1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/22_locale/locale/cons/12658_thread-1.cc.orig 2018-04-15 15:48:28.698597200 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/22_locale/locale/cons/12658_thread-1.cc 2018-04-15 16:13:05.189016900 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* } } - // { dg-require-namedlocale "en_US.ISO8859-1" } - // { dg-require-namedlocale "fr_FR.ISO8859-15" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/22_locale/locale/cons/12658_thread-2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/22_locale/locale/cons/12658_thread-2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/22_locale/locale/cons/12658_thread-2.cc.orig 2018-04-15 15:48:28.707119400 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/22_locale/locale/cons/12658_thread-2.cc 2018-04-15 16:17:10.614386600 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* } } - // { dg-require-namedlocale "en_US.ISO8859-1" } - // { dg-require-namedlocale "fr_FR.ISO8859-15" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/23_containers/list/pthread1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/23_containers/list/pthread1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/23_containers/list/pthread1.cc.orig 2018-04-15 15:48:28.717146400 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/23_containers/list/pthread1.cc 2018-04-15 16:20:29.096375200 -0400 -@@ -17,7 +17,7 @@ - // with this library; see the file COPYING3. If not see - // . - --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* } } - - // This multi-threading C++/STL/POSIX code adheres to rules outlined here: -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/23_containers/list/pthread5.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/23_containers/list/pthread5.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/23_containers/list/pthread5.cc.orig 2018-04-15 15:48:28.728173400 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/23_containers/list/pthread5.cc 2018-04-15 16:26:07.516046200 -0400 -@@ -19,7 +19,7 @@ - // with this library; see the file COPYING3. If not see - // . - --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* } } - - #include -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/23_containers/map/pthread6.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/23_containers/map/pthread6.cc ---- ./gcc-7.3.0/libstdc++-v3/testsuite/23_containers/map/pthread6.cc.orig 2018-04-15 16:40:45.752698500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/23_containers/map/pthread6.cc 2018-04-15 16:43:31.155363800 -0400 -@@ -18,7 +18,7 @@ - // with this library; see the file COPYING3. If not see - // . - --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* } } - - #include -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/23_containers/vector/debug/multithreaded_swap.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/23_containers/vector/debug/multithreaded_swap.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/23_containers/vector/debug/multithreaded_swap.cc.orig 2018-04-15 17:15:41.260364400 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/23_containers/vector/debug/multithreaded_swap.cc 2018-04-15 17:33:13.775451200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/27_io/basic_ofstream/pthread2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/27_io/basic_ofstream/pthread2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/27_io/basic_ofstream/pthread2.cc.orig 2018-04-15 17:48:29.630450000 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/27_io/basic_ofstream/pthread2.cc 2018-04-15 17:55:05.279501500 -0400 -@@ -18,7 +18,7 @@ - // with this library; see the file COPYING3. If not see - // . - --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* } } - - #include -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/27_io/basic_ostringstream/pthread3.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/27_io/basic_ostringstream/pthread3.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/27_io/basic_ostringstream/pthread3.cc.orig 2018-04-15 17:48:29.640478100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/27_io/basic_ostringstream/pthread3.cc 2018-04-15 17:56:37.346641500 -0400 -@@ -18,7 +18,7 @@ - // with this library; see the file COPYING3. If not see - // . - --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* } } - - #include -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/42819.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/42819.c ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/42819.cc.orig 2018-04-15 20:32:17.195524500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/42819.cc 2018-04-15 20:38:33.047767600 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/49668.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/49668.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/49668.cc.orig 2018-04-15 21:15:45.119695900 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/49668.cc 2018-04-15 21:20:31.606075400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/54297.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/54297.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/54297.cc.orig 2018-04-15 20:32:17.211566000 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/54297.cc 2018-04-15 20:44:21.111425400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/async.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/async.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/async.cc.orig 2018-04-15 20:32:17.229113600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/async.cc 2018-04-15 20:47:58.526799400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/launch.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/launch.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/launch.cc.orig 2018-04-15 20:32:17.237134100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/launch.cc 2018-04-15 20:52:12.370863300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/sync.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/sync.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/sync.cc.orig 2018-04-15 20:32:17.246659600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/async/sync.cc 2018-04-15 21:05:46.192944000 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/call_once/39909.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/call_once/39909.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/call_once/39909.cc.orig 2018-04-16 03:26:35.634922900 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/call_once/39909.cc 2018-04-16 03:56:47.528517700 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/call_once/49668.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/call_once/49668.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/call_once/49668.cc.orig 2018-04-16 03:26:35.646955800 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/call_once/49668.cc 2018-04-16 04:08:15.765723200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/call_once/60497.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/call_once/60497.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/call_once/60497.cc.orig 2018-04-16 03:26:35.655978600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/call_once/60497.cc 2018-04-16 04:16:45.797924000 -0400 -@@ -1,4 +1,4 @@ --// { dg-do compile { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do compile { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/call_once/call_once1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/call_once/call_once1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/call_once/call_once1.cc.orig 2018-04-16 03:26:35.668011200 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/call_once/call_once1.cc 2018-04-16 04:26:45.152924400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/54185.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/54185.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/54185.cc.orig 2018-04-16 03:26:35.681048400 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/54185.cc 2018-04-16 05:00:48.817345000 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin1[1-9]* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin1[1-9]* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/cons/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/cons/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/cons/1.cc.orig 2018-04-16 03:26:35.695592000 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/cons/1.cc 2018-04-16 05:08:43.378566100 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/members/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/members/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/members/1.cc.orig 2018-04-16 03:26:35.705649100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/members/1.cc 2018-04-16 05:16:34.494214600 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/members/2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/members/2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/members/2.cc.orig 2018-04-16 03:26:35.717680300 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/members/2.cc 2018-04-16 05:18:57.574857400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/members/3.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/members/3.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/members/3.cc.orig 2018-04-16 03:26:35.728711300 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/members/3.cc 2018-04-16 05:22:45.355804300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/members/53841.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/members/53841.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/members/53841.cc.orig 2018-04-16 03:26:35.738736000 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/members/53841.cc 2018-04-16 05:30:36.296203300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do compile { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* hppa*-hp-hpux11* } } -+// { dg-do compile { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* hppa*-hp-hpux11* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* hppa*-hp-hpux11* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/native_handle/typesizes.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/native_handle/typesizes.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/native_handle/typesizes.cc.orig 2018-04-16 05:42:58.214459400 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable/native_handle/typesizes.cc 2018-04-16 05:48:02.852404200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable_any/50862.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable_any/50862.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable_any/50862.cc.orig 2018-04-16 05:42:58.224486000 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable_any/50862.cc 2018-04-16 06:01:59.335496700 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable_any/cons/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable_any/cons/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable_any/cons/1.cc.orig 2018-04-16 05:42:58.243036300 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable_any/cons/1.cc 2018-04-16 06:06:27.301302500 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable_any/members/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable_any/members/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable_any/members/1.cc.orig 2018-04-16 10:06:08.651201700 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable_any/members/1.cc 2018-04-16 11:08:51.606782600 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable_any/members/2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable_any/members/2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable_any/members/2.cc.orig 2018-04-16 10:06:08.659724200 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/condition_variable_any/members/2.cc 2018-04-16 11:08:51.662931900 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/cons/move.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/cons/move.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/cons/move.cc.orig 2018-04-16 10:06:08.670252300 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/cons/move.cc 2018-04-16 11:08:51.736627700 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/45133.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/45133.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/45133.cc.orig 2018-04-16 10:06:08.679777200 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/45133.cc 2018-04-16 11:08:51.797289100 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/get.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/get.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/get.cc.orig 2018-04-16 10:06:08.688801500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/get.cc 2018-04-16 11:08:51.868980500 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/get2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/get2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/get2.cc.orig 2018-04-16 10:06:08.698828200 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/get2.cc 2018-04-16 11:08:51.920617900 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/share.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/share.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/share.cc.orig 2018-04-16 10:06:08.707351000 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/share.cc 2018-04-16 11:08:51.981780200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/valid.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/valid.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/valid.cc.orig 2018-04-16 10:06:08.716375000 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/valid.cc 2018-04-16 11:08:52.043443800 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/wait.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/wait.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/wait.cc.orig 2018-04-16 10:06:08.726401900 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/wait.cc 2018-04-16 11:08:52.104606400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/wait_for.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/wait_for.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/wait_for.cc.orig 2018-04-16 10:06:08.735927400 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/wait_for.cc 2018-04-16 11:08:52.166803000 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/wait_until.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/wait_until.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/wait_until.cc.orig 2018-04-16 10:06:08.744449900 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/future/members/wait_until.cc 2018-04-16 11:08:52.227464700 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/lock/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/lock/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/lock/1.cc.orig 2018-04-16 10:06:08.753975400 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/lock/1.cc 2018-04-16 11:08:52.288626200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/lock/2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/lock/2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/lock/2.cc.orig 2018-04-16 10:06:08.766007900 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/lock/2.cc 2018-04-16 11:08:52.354302400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/lock/3.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/lock/3.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/lock/3.cc.orig 2018-04-16 10:06:08.774529600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/lock/3.cc 2018-04-16 11:08:52.417469200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/lock/4.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/lock/4.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/lock/4.cc.orig 2018-04-16 10:06:08.783553600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/lock/4.cc 2018-04-16 11:08:52.479133400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/cons/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/cons/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/cons/1.cc.orig 2018-04-16 10:06:08.792577600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/cons/1.cc 2018-04-16 11:08:52.549822300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/dest/destructor_locked.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/dest/destructor_locked.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/dest/destructor_locked.cc.orig 2018-04-16 10:06:08.801601600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/dest/destructor_locked.cc 2018-04-16 11:08:52.601458300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/lock/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/lock/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/lock/1.cc.orig 2018-04-16 10:06:08.810625600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/lock/1.cc 2018-04-16 11:08:52.656604700 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/native_handle/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/native_handle/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/native_handle/1.cc.orig 2018-04-16 10:06:08.819148100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/native_handle/1.cc 2018-04-16 11:08:52.726880900 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/native_handle/typesizes.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/native_handle/typesizes.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/native_handle/typesizes.cc.orig 2018-04-16 10:06:08.828172100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/native_handle/typesizes.cc 2018-04-16 11:08:52.791553000 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/try_lock/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/try_lock/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/try_lock/1.cc.orig 2018-04-16 10:06:08.837196100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/try_lock/1.cc 2018-04-16 11:08:52.853718300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/try_lock/2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/try_lock/2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/try_lock/2.cc.orig 2018-04-16 10:06:08.845719200 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/try_lock/2.cc 2018-04-16 11:08:52.914429800 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/unlock/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/unlock/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/unlock/1.cc.orig 2018-04-16 10:06:08.854742600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/mutex/unlock/1.cc 2018-04-16 11:08:52.976593100 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/49668.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/49668.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/49668.cc.orig 2018-04-16 10:06:08.863266500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/49668.cc 2018-04-16 11:08:53.047784400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/60564.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/60564.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/60564.cc.orig 2018-04-16 10:06:08.871788200 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/60564.cc 2018-04-16 11:08:53.107942400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/1.cc.orig 2018-04-16 10:06:08.881815100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/1.cc 2018-04-16 11:08:53.178443000 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/2.cc.orig 2018-04-16 10:06:08.890838900 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/2.cc 2018-04-16 11:08:53.243639400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/3.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/3.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/3.cc.orig 2018-04-16 10:06:08.899862900 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/3.cc 2018-04-16 11:08:53.314829200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/56492.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/56492.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/56492.cc.orig 2018-04-16 10:06:08.908385700 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/56492.cc 2018-04-16 11:08:53.375991300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do compile { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do compile { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc.cc.orig 2018-04-16 10:06:08.917910800 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc.cc 2018-04-16 11:08:53.435661700 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/move.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/move.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/move.cc.orig 2018-04-16 10:06:08.927436000 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/move.cc 2018-04-16 11:08:53.486323200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/move_assign.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/move_assign.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/move_assign.cc.orig 2018-04-16 10:06:08.936460000 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/cons/move_assign.cc 2018-04-16 11:08:53.538965400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/at_thread_exit.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/at_thread_exit.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/at_thread_exit.cc.orig 2018-04-16 10:06:08.944983100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/at_thread_exit.cc 2018-04-16 11:08:53.602663800 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/get_future.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/get_future.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/get_future.cc.orig 2018-04-16 10:06:08.954006800 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/get_future.cc 2018-04-16 11:08:53.672877500 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/get_future2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/get_future2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/get_future2.cc.orig 2018-04-16 10:06:08.962529600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/get_future2.cc 2018-04-16 11:08:53.742100100 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke.cc.orig 2018-04-16 10:06:08.971553600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke.cc 2018-04-16 11:08:53.803762200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke2.cc.orig 2018-04-16 10:06:08.980577600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke2.cc 2018-04-16 11:08:53.867431400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke3.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke3.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke3.cc.orig 2018-04-16 10:06:08.989100100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke3.cc 2018-04-16 11:08:53.918567300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke4.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke4.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke4.cc.orig 2018-04-16 10:06:08.998625300 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke4.cc 2018-04-16 11:08:53.984518000 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke5.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke5.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke5.cc.orig 2018-04-16 10:06:09.008653100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke5.cc 2018-04-16 11:08:54.054978600 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset.cc.orig 2018-04-16 10:06:09.017174500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset.cc 2018-04-16 11:08:54.118144800 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset2.cc.orig 2018-04-16 10:06:09.026198500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset2.cc 2018-04-16 11:08:54.187842800 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/swap.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/swap.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/swap.cc.orig 2018-04-16 10:06:09.035222800 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/swap.cc 2018-04-16 11:08:54.238977300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/valid.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/valid.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/valid.cc.orig 2018-04-16 10:06:09.044748000 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/packaged_task/members/valid.cc 2018-04-16 11:08:54.304179100 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/60966.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/60966.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/60966.cc.orig 2018-04-16 10:06:09.055276100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/60966.cc 2018-04-16 11:08:54.364853600 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/cons/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/cons/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/cons/1.cc.orig 2018-04-16 10:06:09.063799500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/cons/1.cc 2018-04-16 11:08:54.429550200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/cons/alloc.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/cons/alloc.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/cons/alloc.cc.orig 2018-04-16 10:06:09.071819900 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/cons/alloc.cc 2018-04-16 11:08:54.500319000 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/cons/move.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/cons/move.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/cons/move.cc.orig 2018-04-16 10:06:09.081847500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/cons/move.cc 2018-04-16 11:08:54.574015700 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/cons/move_assign.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/cons/move_assign.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/cons/move_assign.cc.orig 2018-04-16 10:06:09.090369400 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/cons/move_assign.cc 2018-04-16 11:08:54.639239400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/at_thread_exit.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/at_thread_exit.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/at_thread_exit.cc.orig 2018-04-16 10:06:09.099393400 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/at_thread_exit.cc 2018-04-16 11:08:54.693388700 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/get_future.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/get_future.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/get_future.cc.orig 2018-04-16 10:06:09.111426300 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/get_future.cc 2018-04-16 11:08:54.748533400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/get_future2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/get_future2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/get_future2.cc.orig 2018-04-16 10:06:09.122455600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/get_future2.cc 2018-04-16 11:08:54.798668100 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/set_exception.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/set_exception.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/set_exception.cc.orig 2018-04-16 10:06:09.131980200 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/set_exception.cc 2018-04-16 11:08:54.858826600 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/set_exception2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/set_exception2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/set_exception2.cc.orig 2018-04-16 10:06:09.142011100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/set_exception2.cc 2018-04-16 11:08:54.930518600 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/set_value.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/set_value.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/set_value.cc.orig 2018-04-16 10:06:09.152033500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/set_value.cc 2018-04-16 11:08:54.995189200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/set_value2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/set_value2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/set_value2.cc.orig 2018-04-16 10:06:09.162059600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/set_value2.cc 2018-04-16 11:08:55.055350600 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/set_value3.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/set_value3.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/set_value3.cc.orig 2018-04-16 10:06:09.171083900 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/set_value3.cc 2018-04-16 11:08:55.108492200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/swap.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/swap.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/swap.cc.orig 2018-04-16 10:06:09.180108700 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/promise/members/swap.cc 2018-04-16 11:08:55.169152800 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/cons/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/cons/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/cons/1.cc.orig 2018-04-16 10:06:09.189131900 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/cons/1.cc 2018-04-16 11:08:55.230340200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc.orig 2018-04-16 10:06:09.198155900 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc 2018-04-16 11:08:55.301028300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/lock/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/lock/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/lock/1.cc.orig 2018-04-16 10:06:09.207179900 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/lock/1.cc 2018-04-16 11:08:55.374722700 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/native_handle/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/native_handle/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/native_handle/1.cc.orig 2018-04-16 10:06:09.216705300 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/native_handle/1.cc 2018-04-16 11:08:55.428367400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-*-*-*-*-*-cygwin *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc.orig 2018-04-16 10:06:09.225729600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc 2018-04-16 11:08:55.498063400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/try_lock/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/try_lock/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/try_lock/1.cc.orig 2018-04-16 10:06:09.235756300 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/try_lock/1.cc 2018-04-16 11:08:55.556218000 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/try_lock/2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/try_lock/2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/try_lock/2.cc.orig 2018-04-16 10:06:09.243777300 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/try_lock/2.cc 2018-04-16 11:08:55.624399000 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/unlock/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/unlock/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/unlock/1.cc.orig 2018-04-16 10:06:09.252801900 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_mutex/unlock/1.cc 2018-04-16 11:08:55.704612300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/cons/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/cons/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/cons/1.cc.orig 2018-04-16 10:06:09.262326500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/cons/1.cc 2018-04-16 11:08:55.764283300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc.orig 2018-04-16 10:06:09.270849600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc 2018-04-16 11:08:55.845021400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/lock/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/lock/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/lock/1.cc.orig 2018-04-16 10:06:09.280374200 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/lock/1.cc 2018-04-16 11:08:55.914204500 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/lock/2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/lock/2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/lock/2.cc.orig 2018-04-16 10:06:09.288395800 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/lock/2.cc 2018-04-16 11:08:55.986397300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc.orig 2018-04-16 10:06:09.298422500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc 2018-04-16 11:08:56.057586600 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/native_handle/typesizes.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/native_handle/typesizes.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/native_handle/typesizes.cc.orig 2018-04-16 10:06:09.308449400 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/native_handle/typesizes.cc 2018-04-16 11:08:56.125767100 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc.orig 2018-04-16 10:06:09.317974600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc 2018-04-16 11:08:56.191943600 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc.orig 2018-04-16 10:06:09.326497400 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc 2018-04-16 11:08:56.259171700 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc.orig 2018-04-16 10:06:09.336523800 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc 2018-04-16 11:08:56.326853300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc.orig 2018-04-16 10:06:09.347052800 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc 2018-04-16 11:08:56.400049000 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc.orig 2018-04-16 10:06:09.355574200 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc 2018-04-16 11:08:56.457198100 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc.orig 2018-04-16 10:06:09.364599300 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc 2018-04-16 11:08:56.525438300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc.orig 2018-04-16 10:06:09.373623000 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc 2018-04-16 11:08:56.588119900 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/unlock/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/unlock/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/unlock/1.cc.orig 2018-04-16 10:06:09.384200400 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/unlock/1.cc 2018-04-16 11:08:56.664826300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/cons/move.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/cons/move.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/cons/move.cc.orig 2018-04-16 10:06:09.392723200 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/cons/move.cc 2018-04-16 11:08:56.730498500 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/45133.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/45133.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/45133.cc.orig 2018-04-16 10:06:09.401747200 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/45133.cc 2018-04-16 11:08:56.794168800 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/get.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/get.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/get.cc.orig 2018-04-16 10:06:09.410269400 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/get.cc 2018-04-16 11:08:56.866861300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/get2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/get2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/get2.cc.orig 2018-04-16 10:06:09.418792500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/get2.cc 2018-04-16 11:08:56.929072200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/valid.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/valid.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/valid.cc.orig 2018-04-16 10:06:09.427816800 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/valid.cc 2018-04-16 11:08:56.991351200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/wait.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/wait.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/wait.cc.orig 2018-04-16 10:06:09.436839900 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/wait.cc 2018-04-16 11:08:57.055022100 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/wait_for.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/wait_for.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/wait_for.cc.orig 2018-04-16 10:06:09.445363600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/wait_for.cc 2018-04-16 11:08:57.116182700 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/wait_until.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/wait_until.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/wait_until.cc.orig 2018-04-16 10:06:09.453885200 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_future/members/wait_until.cc 2018-04-16 11:08:57.185436900 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/1.cc.orig 2018-04-16 10:06:09.463911900 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/1.cc 2018-04-16 11:08:57.247614800 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++14 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/2.cc.orig 2018-04-16 10:06:09.472935900 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/2.cc 2018-04-16 11:08:57.319806700 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++14 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/3.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/3.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/3.cc.orig 2018-04-16 10:06:09.481459000 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/3.cc 2018-04-16 11:08:57.374954500 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++14 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/4.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/4.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/4.cc.orig 2018-04-16 10:06:09.489982300 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/4.cc 2018-04-16 11:08:57.438624200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++14 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/5.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/5.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/5.cc.orig 2018-04-16 10:06:09.498505100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/5.cc 2018-04-16 11:08:57.491774100 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++14 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/6.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/6.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/6.cc.orig 2018-04-16 10:06:09.507033100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/cons/6.cc 2018-04-16 11:08:57.564472300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++14 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/locking/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/locking/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/locking/1.cc.orig 2018-04-16 10:06:09.516553100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/locking/1.cc 2018-04-16 11:08:57.627151000 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++14 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/locking/2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/locking/2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/locking/2.cc.orig 2018-04-16 10:06:09.525075700 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/locking/2.cc 2018-04-16 11:08:57.677786400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } } - // { dg-require-effective-target c++14 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/locking/3.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/locking/3.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/locking/3.cc.orig 2018-04-16 10:06:09.534098800 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/locking/3.cc 2018-04-16 11:08:57.749978100 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++14 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/locking/4.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/locking/4.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/locking/4.cc.orig 2018-04-16 10:06:09.542121000 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/locking/4.cc 2018-04-16 11:08:57.810138300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++14 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/modifiers/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/modifiers/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/modifiers/1.cc.orig 2018-04-16 10:06:09.550643800 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_lock/modifiers/1.cc 2018-04-16 11:08:57.873306300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++14 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/cons/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/cons/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/cons/1.cc.orig 2018-04-16 10:06:09.561672000 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/cons/1.cc 2018-04-16 11:08:57.925443500 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++14 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/1.cc.orig 2018-04-16 10:06:09.570220100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/1.cc 2018-04-16 11:08:57.987184400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++14 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/2.cc.orig 2018-04-16 10:06:09.578717600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/2.cc 2018-04-16 11:08:58.047845600 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++14 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/3.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/3.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/3.cc.orig 2018-04-16 10:06:09.588242800 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/3.cc 2018-04-16 11:08:58.109510500 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++14 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/this_thread/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/this_thread/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/this_thread/1.cc.orig 2018-04-16 10:06:09.597793600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/this_thread/1.cc 2018-04-16 11:08:58.169697500 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/this_thread/2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/this_thread/2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/this_thread/2.cc.orig 2018-04-16 10:06:09.605789300 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/this_thread/2.cc 2018-04-16 11:08:58.234842900 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/this_thread/3.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/this_thread/3.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/this_thread/3.cc.orig 2018-04-16 10:06:09.614312900 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/this_thread/3.cc 2018-04-16 11:08:58.299553200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/this_thread/4.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/this_thread/4.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/this_thread/4.cc.orig 2018-04-16 10:06:09.622333100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/this_thread/4.cc 2018-04-16 11:08:58.371559700 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/1.cc.orig 2018-04-16 10:06:09.631858600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/1.cc 2018-04-16 11:08:58.426206800 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/2.cc.orig 2018-04-16 10:06:09.640381100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/2.cc 2018-04-16 11:08:58.493385400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/3.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/3.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/3.cc.orig 2018-04-16 10:06:09.648903900 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/3.cc 2018-04-16 11:08:58.558055500 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/4.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/4.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/4.cc.orig 2018-04-16 10:06:09.657426700 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/4.cc 2018-04-16 11:08:58.631405500 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/49668.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/49668.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/49668.cc.orig 2018-04-16 10:06:09.665949500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/49668.cc 2018-04-16 11:08:58.687050700 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/5.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/5.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/5.cc.orig 2018-04-16 10:06:09.673971400 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/5.cc 2018-04-16 11:08:58.756755500 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/6.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/6.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/6.cc.orig 2018-04-16 10:06:09.682994600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/6.cc 2018-04-16 11:08:58.815912800 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/7.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/7.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/7.cc.orig 2018-04-16 10:06:09.695026600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/7.cc 2018-04-16 11:08:58.876576000 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/8.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/8.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/8.cc.orig 2018-04-16 10:06:09.704552000 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/8.cc 2018-04-16 11:08:58.941747300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/9.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/9.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/9.cc.orig 2018-04-16 10:06:09.713083900 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/9.cc 2018-04-16 11:08:59.001944200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/moveable.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/moveable.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/moveable.cc.orig 2018-04-16 10:06:09.722108200 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/cons/moveable.cc 2018-04-16 11:08:59.067617600 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/1.cc.orig 2018-04-16 10:06:09.731132800 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/1.cc 2018-04-16 11:08:59.128781600 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/2.cc.orig 2018-04-16 10:06:09.740157100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/2.cc 2018-04-16 11:08:59.187937200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/3.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/3.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/3.cc.orig 2018-04-16 10:06:09.749179900 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/3.cc 2018-04-16 11:08:59.252609600 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/4.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/4.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/4.cc.orig 2018-04-16 10:06:09.758204500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/4.cc 2018-04-16 11:08:59.316278200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/5.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/5.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/5.cc.orig 2018-04-16 10:06:09.766727300 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/5.cc 2018-04-16 11:08:59.366412600 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/hardware_concurrency.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/hardware_concurrency.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/hardware_concurrency.cc.orig 2018-04-16 10:06:09.776251900 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/members/hardware_concurrency.cc 2018-04-16 11:08:59.431083600 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/native_handle/cancel.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/native_handle/cancel.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/native_handle/cancel.cc.orig 2018-04-16 10:06:09.786278800 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/native_handle/cancel.cc 2018-04-16 11:08:59.495256200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/swap/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/swap/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/swap/1.cc.orig 2018-04-16 10:06:09.796305200 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/thread/swap/1.cc 2018-04-16 11:08:59.565942000 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/cons/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/cons/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/cons/1.cc.orig 2018-04-16 10:06:09.805830700 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/cons/1.cc 2018-04-16 11:08:59.624598400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/dest/destructor_locked.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/dest/destructor_locked.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/dest/destructor_locked.cc.orig 2018-04-16 10:06:09.814855000 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/dest/destructor_locked.cc 2018-04-16 11:08:59.690274400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/lock/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/lock/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/lock/1.cc.orig 2018-04-16 10:06:09.823878700 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/lock/1.cc 2018-04-16 11:08:59.762466600 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/native_handle/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/native_handle/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/native_handle/1.cc.orig 2018-04-16 10:06:09.832401500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/native_handle/1.cc 2018-04-16 11:08:59.819616900 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/native_handle/typesizes.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/native_handle/typesizes.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/native_handle/typesizes.cc.orig 2018-04-16 10:06:09.840422800 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/native_handle/typesizes.cc 2018-04-16 11:08:59.892310000 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock/1.cc.orig 2018-04-16 10:06:09.850449500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock/1.cc 2018-04-16 11:08:59.950464600 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock/2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock/2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock/2.cc.orig 2018-04-16 10:06:09.858972000 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock/2.cc 2018-04-16 11:09:00.018645900 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/1.cc.orig 2018-04-16 10:06:09.873510500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/1.cc 2018-04-16 11:09:00.091339400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/2.cc.orig 2018-04-16 10:06:09.889052300 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/2.cc 2018-04-16 11:09:00.161526300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/3.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/3.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/3.cc.orig 2018-04-16 10:06:09.908103500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/3.cc 2018-04-16 11:09:00.222688600 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/1.cc.orig 2018-04-16 10:06:09.922641200 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/1.cc 2018-04-16 11:09:00.273824900 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/2.cc.orig 2018-04-16 10:06:09.933671300 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/2.cc 2018-04-16 11:09:00.337995200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/57641.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/57641.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/57641.cc.orig 2018-04-16 10:06:09.944700100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/57641.cc 2018-04-16 11:09:00.392640700 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/unlock/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/unlock/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/unlock/1.cc.orig 2018-04-16 10:06:09.956231200 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/timed_mutex/unlock/1.cc 2018-04-16 11:09:00.446784400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/try_lock/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/try_lock/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/try_lock/1.cc.orig 2018-04-16 10:06:09.972774500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/try_lock/1.cc 2018-04-16 11:09:00.503436000 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/try_lock/2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/try_lock/2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/try_lock/2.cc.orig 2018-04-16 10:06:09.987814700 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/try_lock/2.cc 2018-04-16 11:09:00.574624400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/try_lock/3.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/try_lock/3.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/try_lock/3.cc.orig 2018-04-16 10:06:09.998844100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/try_lock/3.cc 2018-04-16 11:09:00.635788500 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/try_lock/4.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/try_lock/4.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/try_lock/4.cc.orig 2018-04-16 10:06:10.010374600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/try_lock/4.cc 2018-04-16 11:09:00.702465300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/1.cc.orig 2018-04-16 10:06:10.020401500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/1.cc 2018-04-16 11:09:00.763628500 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/2.cc.orig 2018-04-16 10:06:10.029927300 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/2.cc 2018-04-16 11:09:00.825807500 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/3.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/3.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/3.cc.orig 2018-04-16 10:06:10.039953700 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/3.cc 2018-04-16 11:09:00.886468400 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/4.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/4.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/4.cc.orig 2018-04-16 10:06:10.048977400 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/4.cc 2018-04-16 11:09:00.947629300 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/5.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/5.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/5.cc.orig 2018-04-16 10:06:10.058502600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/5.cc 2018-04-16 11:09:01.014308200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/6.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/6.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/6.cc.orig 2018-04-16 10:06:10.068027700 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/cons/6.cc 2018-04-16 11:09:01.085997200 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/locking/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/locking/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/locking/1.cc.orig 2018-04-15 19:40:15.715930600 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/locking/1.cc 2018-04-15 20:05:07.558898100 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/locking/2.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/locking/2.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/locking/2.cc.orig 2018-04-15 19:40:15.725458100 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/locking/2.cc 2018-04-15 19:50:46.001007800 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/locking/3.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/locking/3.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/locking/3.cc.orig 2018-04-15 19:02:32.350692200 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/locking/3.cc 2018-04-15 19:23:05.393494600 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/locking/4.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/locking/4.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/locking/4.cc.orig 2018-04-15 18:37:40.718581900 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/locking/4.cc 2018-04-15 18:48:35.087051100 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/modifiers/1.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/modifiers/1.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/modifiers/1.cc.orig 2018-04-15 18:37:40.726605000 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/30_threads/unique_lock/modifiers/1.cc 2018-04-15 18:44:34.169834000 -0400 -@@ -1,4 +1,4 @@ --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } - // { dg-require-effective-target c++11 } - // { dg-require-cstdint "" } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/ext/rope/pthread7-rope.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/ext/rope/pthread7-rope.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/ext/rope/pthread7-rope.cc.orig 2018-04-15 17:48:33.572238500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/ext/rope/pthread7-rope.cc 2018-04-15 18:10:18.571866700 -0400 -@@ -17,7 +17,7 @@ - // with this library; see the file COPYING3. If not see - // . - --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* } } - - #include -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/lib/libstdc++.exp.orig gcc-7.3.0/libstdc++-v3/testsuite/lib/libstdc++.exp ---- gcc-7.3.0/libstdc++-v3/testsuite/lib/libstdc++.exp.orig 2017-01-13 09:57:33.656544000 -0500 -+++ gcc-7.3.0/libstdc++-v3/testsuite/lib/libstdc++.exp 2018-04-15 18:20:25.037744400 -0400 -@@ -113,7 +113,7 @@ proc libstdc++_init { testfile } { - - # Many hosts now default to a non-ASCII C locale, however, so - # they can set a charset encoding here if they need. -- if { [ishost "*-*-cygwin*"] } { -+ if { [ishost "*-*-cygwin*"] || [ishost "*-*-msys*"] } { - setenv LC_ALL C.ASCII - setenv LANG C.ASCII - } -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc.orig 2018-04-15 18:20:25.045266500 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc 2018-04-15 18:25:21.584985300 -0400 -@@ -17,7 +17,7 @@ - - // TR1 2.2.2 Template class shared_ptr [tr.util.smartptr.shared] - --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* } } - - #include -diff -aurp gcc-7.3.0/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc.orig gcc-7.3.0/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc ---- gcc-7.3.0/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc.orig 2018-04-15 18:20:25.152048300 -0400 -+++ gcc-7.3.0/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc 2018-04-15 18:28:41.533301800 -0400 -@@ -17,7 +17,7 @@ - - // TR1 2.2.2 Template class shared_ptr [tr.util.smartptr.shared] - --// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* } } -+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-msys *-*-rtems* *-*-darwin* } } - // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* } } - - #include diff --git a/mingw-w64-cross-gcc/0953-9.1.0-testsuite-msys2.patch b/mingw-w64-cross-gcc/0953-9.1.0-testsuite-msys2.patch new file mode 100644 index 00000000..6499d219 --- /dev/null +++ b/mingw-w64-cross-gcc/0953-9.1.0-testsuite-msys2.patch @@ -0,0 +1,828 @@ +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/abi/bitfield3.C gcc-9.1.0/gcc/testsuite/g++.dg/abi/bitfield3.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/abi/bitfield3.C 2017-04-28 16:41:35.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/abi/bitfield3.C 2019-07-04 09:42:25.327518700 +0300 +@@ -3,7 +3,7 @@ + // { dg-options "-O2" } + // Cygwin and mingw default to MASK_ALIGN_DOUBLE. Override to ensure + // 4-byte alignment. +-// { dg-additional-options "-mno-align-double" { target i?86-*-cygwin* i?86-*-mingw* } } ++// { dg-additional-options "-mno-align-double" { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* } } + // As for mingw target the ms-bitfield switch is activated by default, + // make sure for this test that it is disabled. + // { dg-additional-options "-mno-ms-bitfields" { target i?86-*-mingw* } } +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/abi/rtti3.C gcc-9.1.0/gcc/testsuite/g++.dg/abi/rtti3.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/abi/rtti3.C 2017-06-17 18:32:28.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/abi/rtti3.C 2019-07-04 09:42:25.327518700 +0300 +@@ -2,7 +2,7 @@ + // necessarily the type info object + + // { dg-require-weak "" } +-// { dg-skip-if "Linkonce not weak" { *-*-mingw* *-*-cygwin } } ++// { dg-skip-if "Linkonce not weak" { *-*-mingw* *-*-cygwin *-*-msys } } + // { dg-final { scan-assembler ".weak\[ \t\]_?_ZTSPP1A" { target { ! { *-*-darwin* hppa*-*-hpux* } } } } } + // { dg-final { scan-assembler-not ".weak\[ \t\]_?_ZTIPP1A" { target { ! { *-*-darwin* } } } } } + // { dg-final { scan-assembler ".weak_definition\[ \t\]_?_ZTSPP1A" { target { *-*-darwin* } } } } +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/abi/thunk4.C gcc-9.1.0/gcc/testsuite/g++.dg/abi/thunk4.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/abi/thunk4.C 2017-06-17 18:32:28.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/abi/thunk4.C 2019-07-04 09:42:25.327518700 +0300 +@@ -1,5 +1,5 @@ + // { dg-require-weak "" } +-// { dg-skip-if "Linkonce not weak" { *-*-mingw* *-*-cygwin } } ++// { dg-skip-if "Linkonce not weak" { *-*-mingw* *-*-cygwin *-*-msys } } + // { dg-final { scan-assembler ".weak\[ \t\]_?_ZThn._N7Derived3FooEv" { target { ! { *-*-darwin* } } } } } + // { dg-final { scan-assembler ".weak_definition\[ \t\]_?_ZThn._N7Derived3FooEv" { target { *-*-darwin* } } } } + +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/compat/struct-layout-1_generate.c gcc-9.1.0/gcc/testsuite/g++.dg/compat/struct-layout-1_generate.c +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/compat/struct-layout-1_generate.c 2016-10-14 01:26:36.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/compat/struct-layout-1_generate.c 2019-07-04 09:42:25.327518700 +0300 +@@ -46,8 +46,8 @@ + const char *dg_options[] = { + "/* { dg-options \"%s-I%s -Wno-abi\" } */\n", + "/* { dg-options \"%s-I%s -mno-mmx -Wno-abi\" { target i?86-*-* x86_64-*-* } } */\n", +-"/* { dg-options \"%s-I%s -fno-common\" { target hppa*-*-hpux* powerpc*-*-darwin* *-*-mingw32* *-*-cygwin* } } */\n", +-"/* { dg-options \"%s-I%s -mno-mmx -fno-common -Wno-abi\" { target i?86-*-darwin* x86_64-*-darwin* i?86-*-mingw32* x86_64-*-mingw32* i?86-*-cygwin* } } */\n", ++"/* { dg-options \"%s-I%s -fno-common\" { target hppa*-*-hpux* powerpc*-*-darwin* *-*-mingw32* *-*-cygwin* *-*-msys* } } */\n", ++"/* { dg-options \"%s-I%s -mno-mmx -fno-common -Wno-abi\" { target i?86-*-darwin* x86_64-*-darwin* i?86-*-mingw32* x86_64-*-mingw32* i?86-*-cygwin* i?86-*-msys* } } */\n", + "/* { dg-options \"%s-I%s -mno-base-addresses\" { target mmix-*-* } } */\n", + "/* { dg-options \"%s-I%s -mlongcalls -mtext-section-literals\" { target xtensa*-*-* } } */\n" + #define NDG_OPTIONS (sizeof (dg_options) / sizeof (dg_options[0])) +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv.C gcc-9.1.0/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv.C 2016-08-09 07:33:58.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv.C 2019-07-04 09:42:25.327518700 +0300 +@@ -1,7 +1,7 @@ + // Test for conversion from stateless lambda to function pointer. + + // { dg-do compile { target c++11_only } } +-// { dg-final { scan-assembler "weak\[^\n\r\]*_?_ZZ1fvENKUlvE_cvPFvvEEv" { target { ! { *-*-darwin* *-*-mingw* *-*-cygwin *-*-hpux10* } } } } } ++// { dg-final { scan-assembler "weak\[^\n\r\]*_?_ZZ1fvENKUlvE_cvPFvvEEv" { target { ! { *-*-darwin* *-*-mingw* *-*-cygwin *-*-msys *-*-hpux10* } } } } } + + inline void f() + { +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mangle.C gcc-9.1.0/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mangle.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mangle.C 2016-09-14 16:37:23.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mangle.C 2019-07-04 09:42:25.327518700 +0300 +@@ -12,7 +12,7 @@ + // The call operator of that type is _ZZ1giENKUlvE_clEv. + + // { dg-final { scan-assembler "_ZZ1giENKUlvE_clEv" } } +-// { dg-final { scan-assembler "weak\[^\n\r\]*_?_ZZ1giENKUlvE_clEv" { target { ! { *-*-darwin* *-*-mingw* *-*-cygwin } } } } } ++// { dg-final { scan-assembler "weak\[^\n\r\]*_?_ZZ1giENKUlvE_clEv" { target { ! { *-*-darwin* *-*-mingw* *-*-cygwin *-*-msys } } } } } + + algo([=]{return n+bef();}); + // The captured entities do not participate in +@@ -34,7 +34,7 @@ + // Type: ZN1S1fEiiEd0_UlvE_ + // Operator: _ZZN1S1fEiiEd0_NKUlvE_clEv + // { dg-final { scan-assembler "_ZZN1S1fEiiEd0_NKUlvE_clEv" } } +-// { dg-final { scan-assembler "weak\[^\n\r\]*_?_ZZN1S1fEiiEd0_NKUlvE_clEv" { target { ! { *-*-darwin* *-*-mingw* *-*-cygwin } } } } } ++// { dg-final { scan-assembler "weak\[^\n\r\]*_?_ZZN1S1fEiiEd0_NKUlvE_clEv" { target { ! { *-*-darwin* *-*-mingw* *-*-cygwin *-*-msys } } } } } + []{return 1;}() + // Type: ZN1S1fEiiEd0_UlvE0_ + // Operator: _ZZN1S1fEiiEd0_NKUlvE0_clEv +@@ -56,7 +56,7 @@ + // Type of lambda in intializer of R::x: N1RIiE1xMUlvE_E + // Corresponding operator(): _ZNK1RIiE1xMUlvE_clEv + // { dg-final { scan-assembler "_ZNK1RIiE1xMUlvE_clEv" } } +-// { dg-final { scan-assembler "weak\[^\n\r\]*_?_ZNK1RIiE1xMUlvE_clEv" { target { ! { *-*-mingw* *-*-cygwin } } } } } ++// { dg-final { scan-assembler "weak\[^\n\r\]*_?_ZNK1RIiE1xMUlvE_clEv" { target { ! { *-*-mingw* *-*-cygwin *-*-msys } } } } } + + void bar() + { +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllexport1.C gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllexport1.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllexport1.C 2010-10-10 23:25:09.000000000 +0400 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllexport1.C 2019-07-04 09:42:25.327518700 +0300 +@@ -1,5 +1,5 @@ + // Test that inline functions are exported with -fkeep-inline-functions. +-// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw*} } ++// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw*} } + // { dg-options -fkeep-inline-functions } + + __attribute__((dllexport)) inline int foo (int a) { return a;} +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllexport3.C gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllexport3.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllexport3.C 2010-10-10 23:25:09.000000000 +0400 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllexport3.C 2019-07-04 09:42:25.327518700 +0300 +@@ -1,5 +1,5 @@ + // PR c++/42870 +-// { dg-do compile { target i?86-*-cygwin *-*-mingw* } } ++// { dg-do compile { target i?86-*-cygwin i?86-*-msys *-*-mingw* } } + // { dg-final { scan-assembler "-export:\[\\\\\"\]*_ZN2SaD1Ev" } } + + #define ATTRIBUTE __attribute__ ((dllexport)) +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllexport-MI1.C gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllexport-MI1.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllexport-MI1.C 2011-01-07 17:12:43.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllexport-MI1.C 2019-07-04 09:42:25.343118800 +0300 +@@ -1,4 +1,4 @@ +-// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw*} } ++// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw*} } + // Test that non-virtual MI thunks are exported. + + +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport1.C gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport1.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport1.C 2011-01-07 17:12:43.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport1.C 2019-07-04 09:42:25.343118800 +0300 +@@ -1,5 +1,5 @@ + // PR c++/7910 +-// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } ++// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } + // { dg-options { -Wall -W } } + + class __attribute__((dllimport)) Foo +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport10.C gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport10.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport10.C 2011-01-07 17:12:43.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport10.C 2019-07-04 09:42:25.343118800 +0300 +@@ -1,7 +1,7 @@ + // PR c++/5287, c++/11021 + // Inherit a virtual method from a dllimport'd base class. + +-// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } ++// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } + + struct __attribute__((dllimport)) A + { +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport11.C gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport11.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport11.C 2011-01-07 17:12:43.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport11.C 2019-07-04 09:42:25.343118800 +0300 +@@ -1,6 +1,6 @@ + // PR target/23589 + // Template member functions do not get dllimport status of class. +-// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } ++// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } + + struct __attribute__((dllimport)) Foo + { +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport12.C gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport12.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport12.C 2011-01-07 17:12:43.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport12.C 2019-07-04 09:42:25.343118800 +0300 +@@ -1,7 +1,7 @@ + // PR target/27650 + // Don't use dllimport semantics on virtual methods when initializing + // vtables +-// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } ++// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } + + // Use import lib thunk for vtable entry of explicitly virtual method, + struct base +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport13.C gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport13.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport13.C 2011-01-07 17:12:43.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport13.C 2019-07-04 09:42:25.343118800 +0300 +@@ -1,7 +1,7 @@ + // PR c++/34749 + // Ensure dllimport is handled correctly for friends + +-// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } ++// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } + + int __declspec (dllimport) bar(); + int __declspec (dllimport) baz(); +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport2.C gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport2.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport2.C 2011-01-07 17:12:43.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport2.C 2019-07-04 09:42:25.343118800 +0300 +@@ -1,4 +1,4 @@ +-// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } ++// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } + // PR c++/9738 Dllimport attribute is overriden by later definition/redeclaration + + void __attribute__((dllimport)) Bar(void); +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport3.C gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport3.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport3.C 2011-01-07 17:12:43.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport3.C 2019-07-04 09:42:25.343118800 +0300 +@@ -1,4 +1,4 @@ +-// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } ++// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } + + // PR 10148 Dllimport attribute of object is overriden by later + // redefinition without attribute. +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport4.C gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport4.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport4.C 2011-01-07 17:12:43.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport4.C 2019-07-04 09:42:25.343118800 +0300 +@@ -1,5 +1,5 @@ + // Report error if dllimport attribute in definition itself. +-// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } ++// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } + + __attribute__((dllimport)) void bar () { } // { dg-error "definition" } + +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport5.C gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport5.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport5.C 2011-01-07 17:12:43.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport5.C 2019-07-04 09:42:25.343118800 +0300 +@@ -1,4 +1,4 @@ +-// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } ++// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } + // Report error if static symbol definition has dllimport attribute. + + __attribute__((dllimport)) +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport6.C gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport6.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport6.C 2011-01-07 17:12:43.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport6.C 2019-07-04 09:42:25.343118800 +0300 +@@ -1,4 +1,4 @@ +-// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } ++// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } + // Mark class static members as dllimport. + + struct Baz +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport7.C gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport7.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport7.C 2017-04-19 09:55:33.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport7.C 2019-07-04 09:42:25.358718800 +0300 +@@ -1,4 +1,4 @@ +-// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } ++// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } + + // Report errors on definition of dllimport'd static data member . + +@@ -19,7 +19,7 @@ + }; + + const int Bar::three = 3; // { dg-warning "redeclared without dllimport" } +-// { dg-error "definition of static data" "C++ specific error" { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } .-1 } ++// { dg-error "definition of static data" "C++ specific error" { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } .-1 } + + const Baz Bar::null_baz; // { dg-warning "redeclared without dllimport" } + +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport8.C gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport8.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport8.C 2011-01-07 17:12:43.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport8.C 2019-07-04 09:42:25.358718800 +0300 +@@ -2,7 +2,7 @@ + // Ignore dllimport of static members if marked inlined. + // or if definition follows declaration in dllimported class. + +-// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } ++// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } + // { dg-options { -Wall -W } } + + struct __attribute__((dllimport)) Foo +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport9.C gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport9.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport9.C 2011-01-07 17:12:43.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport9.C 2019-07-04 09:42:25.358718800 +0300 +@@ -1,5 +1,5 @@ + // Handle dllimport attribute for functions declared inline. +-// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } ++// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } + // { dg-options { -W } } + + inline __attribute__((dllimport)) void bar() { } // { dg-warning "inline" } +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport-initialized.C gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport-initialized.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport-initialized.C 2019-01-11 12:02:43.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport-initialized.C 2019-07-04 09:47:40.366072100 +0300 +@@ -1,3 +1,3 @@ +-// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } ++// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } + + __attribute__((dllimport)) int i __attribute__((unused)) = 0; // { dg-error "32:definition of .int i. is marked .dllimport." } +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport-MI1.C gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport-MI1.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/dllimport-MI1.C 2011-01-07 17:12:43.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/ext/dllimport-MI1.C 2019-07-04 09:42:25.358718800 +0300 +@@ -1,4 +1,4 @@ +-// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } ++// { dg-do compile { target i?86-*-cygwin* i?86-*-msys* i?86-*-mingw* x86_64-*-mingw* } } + // Test handling of MI thunks in dllimported classes. + + // To build the dll and client app: +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/selectany1.C gcc-9.1.0/gcc/testsuite/g++.dg/ext/selectany1.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/selectany1.C 2011-01-07 17:12:43.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/ext/selectany1.C 2019-07-04 09:42:25.358718800 +0300 +@@ -1,4 +1,4 @@ +-// { dg-do compile { target i?86-pc-cygwin } } ++// { dg-do compile { target i?86-pc-cygwin i?86-pc-msys } } + // { dg-do compile { target i?86-*-mingw* x86_64-*-mingw* } } + + // Check that selectany attribute puts symbols into link-once sections. +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/selectany2.C gcc-9.1.0/gcc/testsuite/g++.dg/ext/selectany2.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/ext/selectany2.C 2015-10-02 11:08:38.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/ext/selectany2.C 2019-07-04 09:42:25.358718800 +0300 +@@ -1,4 +1,4 @@ +-// { dg-do compile { target i?86-pc-cygwin } } ++// { dg-do compile { target i?86-pc-cygwin i?86-pc-msys } } + // { dg-do compile { target i?86-*-mingw* x86_64-*-mingw* } } + + // Check for errors with invalid usage of selectany attribute. +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/opt/vt1.C gcc-9.1.0/gcc/testsuite/g++.dg/opt/vt1.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/opt/vt1.C 2017-06-17 18:32:28.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/opt/vt1.C 2019-07-04 09:42:25.358718800 +0300 +@@ -2,7 +2,7 @@ + // { dg-do compile { target fpic } } + // { dg-options "-O2 -fpic -fno-rtti" } + // { dg-skip-if "requires unsupported run-time relocation" { spu-*-* } } +-// { dg-skip-if "No Windows PIC" { *-*-mingw* *-*-cygwin } } ++// { dg-skip-if "No Windows PIC" { *-*-mingw* *-*-cygwin *-*-msys } } + // Origin: Jakub Jelinek + + struct S +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.dg/template/spec35.C gcc-9.1.0/gcc/testsuite/g++.dg/template/spec35.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.dg/template/spec35.C 2016-09-14 16:37:23.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/g++.dg/template/spec35.C 2019-07-04 09:42:25.358718800 +0300 +@@ -24,6 +24,6 @@ + // { dg-final { scan-assembler-not ".glob(a|)l\[\t \]*_?_Z2f1IiEvT_" } } + f1(0); // Expected to have static linkage + +- // { dg-final { scan-assembler ".weak(_definition)?\[\t \]*_?_Z2f2IiEvT_" { target { ! { *-*-mingw* *-*-cygwin } } } } } ++ // { dg-final { scan-assembler ".weak(_definition)?\[\t \]*_?_Z2f2IiEvT_" { target { ! { *-*-mingw* *-*-cygwin *-*-msys } } } } } + f2(0); // Expected to have weak global linkage + } +diff -Naur gcc-9.1.0-orig/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C gcc-9.1.0/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C +--- gcc-9.1.0-orig/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C 2012-03-12 19:35:56.000000000 +0400 ++++ gcc-9.1.0/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C 2019-07-04 09:42:25.358718800 +0300 +@@ -1,4 +1,4 @@ +-// { dg-do run { xfail i?86-pc-cygwin } } ++// { dg-do run { xfail i?86-pc-cygwin i?86-pc-msys } } + // Test that attributes weak and alias coexist. + // { dg-require-weak "" } + // { dg-require-alias "" } +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.dg/bf-ms-attrib.c gcc-9.1.0/gcc/testsuite/gcc.dg/bf-ms-attrib.c +--- gcc-9.1.0-orig/gcc/testsuite/gcc.dg/bf-ms-attrib.c 2016-06-22 00:57:20.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gcc.dg/bf-ms-attrib.c 2019-07-04 09:42:25.358718800 +0300 +@@ -3,7 +3,7 @@ + posted to GCC-patches + http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00577.html */ + +-/* { dg-do run { target *-*-mingw* *-*-cygwin* } } */ ++/* { dg-do run { target *-*-mingw* *-*-cygwin* *-*-msys* } } */ + + /* We don't want the default "pedantic-errors" in this case, since we're + testing nonstandard stuff to begin with. */ +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.dg/bf-ms-layout-3.c gcc-9.1.0/gcc/testsuite/gcc.dg/bf-ms-layout-3.c +--- gcc-9.1.0-orig/gcc/testsuite/gcc.dg/bf-ms-layout-3.c 2016-06-22 00:57:20.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gcc.dg/bf-ms-layout-3.c 2019-07-04 09:42:25.358718800 +0300 +@@ -1,5 +1,5 @@ + /* Test for MS bitfield layout */ +-/* { dg-do run { target *-*-mingw* *-*-cygwin* i?86-*-* x86_64-*-* } } */ ++/* { dg-do run { target *-*-mingw* *-*-cygwin* *-*-msys* i?86-*-* x86_64-*-* } } */ + + extern void abort(); + +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.dg/bf-no-ms-layout.c gcc-9.1.0/gcc/testsuite/gcc.dg/bf-no-ms-layout.c +--- gcc-9.1.0-orig/gcc/testsuite/gcc.dg/bf-no-ms-layout.c 2016-06-22 00:57:20.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gcc.dg/bf-no-ms-layout.c 2019-07-04 09:42:25.374318800 +0300 +@@ -5,7 +5,7 @@ + posted to GCC-patches + http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00577.html */ + +-/* { dg-do run { target *-*-mingw* *-*-cygwin* i?86-*-darwin } } */ ++/* { dg-do run { target *-*-mingw* *-*-cygwin* *-*-msys* i?86-*-darwin } } */ + /* { dg-options "-mno-ms-bitfields" } */ + + #include +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.dg/dll-3.c gcc-9.1.0/gcc/testsuite/gcc.dg/dll-3.c +--- gcc-9.1.0-orig/gcc/testsuite/gcc.dg/dll-3.c 2010-10-10 23:25:09.000000000 +0400 ++++ gcc-9.1.0/gcc/testsuite/gcc.dg/dll-3.c 2019-07-04 09:42:25.374318800 +0300 +@@ -1,7 +1,7 @@ + /* Ensure dllexport overrides dllimport. */ + + /* { dg-do compile { target arm*-*-pe* } } */ +-/* { dg-do compile { target i?86-pc-cygwin } } */ ++/* { dg-do compile { target i?86-pc-cygwin i?86-pc-msys } } */ + /* { dg-do compile { target i?86-*-mingw* x86_64-*-mingw*} } */ + + __declspec (dllimport) int foo1 (); +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.dg/dll-4.c gcc-9.1.0/gcc/testsuite/gcc.dg/dll-4.c +--- gcc-9.1.0-orig/gcc/testsuite/gcc.dg/dll-4.c 2010-10-10 23:25:09.000000000 +0400 ++++ gcc-9.1.0/gcc/testsuite/gcc.dg/dll-4.c 2019-07-04 09:42:25.374318800 +0300 +@@ -1,5 +1,5 @@ + /* { dg-do compile { target arm*-*-pe* } } */ +-/* { dg-do compile { target i?86-pc-cygwin } } */ ++/* { dg-do compile { target i?86-pc-cygwin i?86-pc-msys } } */ + /* { dg-do compile { target i?86-*-mingw* x86_64-*-mingw* } } */ + + __declspec (dllimport) int foo1; +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.dg/dll-5.c gcc-9.1.0/gcc/testsuite/gcc.dg/dll-5.c +--- gcc-9.1.0-orig/gcc/testsuite/gcc.dg/dll-5.c 2010-10-10 23:25:09.000000000 +0400 ++++ gcc-9.1.0/gcc/testsuite/gcc.dg/dll-5.c 2019-07-04 09:42:25.374318800 +0300 +@@ -1,4 +1,4 @@ +-/* { dg-do compile { target i?86-pc-cygwin } } */ ++/* { dg-do compile { target i?86-pc-cygwin i?86-pc-msys } } */ + /* { dg-do compile { target i?86-*-mingw* x86_64-*-mingw* } } */ + /* { dg-do compile { target arm*-*-pe* } } */ + +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.dg/dll-8.c gcc-9.1.0/gcc/testsuite/gcc.dg/dll-8.c +--- gcc-9.1.0-orig/gcc/testsuite/gcc.dg/dll-8.c 2012-04-10 07:15:22.000000000 +0400 ++++ gcc-9.1.0/gcc/testsuite/gcc.dg/dll-8.c 2019-07-04 09:42:25.374318800 +0300 +@@ -1,4 +1,4 @@ +-/* { dg-do compile { target i?86-pc-cygwin } } */ ++/* { dg-do compile { target i?86-pc-cygwin i?86-pc-msys } } */ + /* { dg-do compile { target i?86-*-mingw* x86_64-*-mingw*} } */ + /* { dg-options "-O3 -fwhole-program" } */ + /* { dg-final { scan-assembler "foo1" } } */ +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.dg/graphite/run-id-1.c gcc-9.1.0/gcc/testsuite/gcc.dg/graphite/run-id-1.c +--- gcc-9.1.0-orig/gcc/testsuite/gcc.dg/graphite/run-id-1.c 2018-01-08 14:50:14.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gcc.dg/graphite/run-id-1.c 2019-07-04 09:42:25.374318800 +0300 +@@ -1,4 +1,4 @@ +-/* { dg-options "-Wl,--stack,12582912" { target *-*-mingw* *-*-cygwin* } } */ ++/* { dg-options "-Wl,--stack,12582912" { target *-*-mingw* *-*-cygwin* *-*-msys* } } */ + /* { dg-require-effective-target size32plus } */ + /* { dg-require-stack-size "4*1000*1000" } */ + +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.dg/lto/20090914-2_0.c gcc-9.1.0/gcc/testsuite/gcc.dg/lto/20090914-2_0.c +--- gcc-9.1.0-orig/gcc/testsuite/gcc.dg/lto/20090914-2_0.c 2017-06-17 18:32:28.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gcc.dg/lto/20090914-2_0.c 2019-07-04 09:42:25.374318800 +0300 +@@ -1,7 +1,7 @@ + /* { dg-lto-do run } */ + /* { dg-skip-if "x86 only" { ! { x86_64-*-* i?86-*-* } } } */ + /* { dg-skip-if "no .type" { *-*-darwin* } } */ +-/* { dg-skip-if "no @function" { *-*-mingw* *-*-cygwin* } } */ ++/* { dg-skip-if "no @function" { *-*-mingw* *-*-cygwin* *-*-msys* } } */ + + /* Doesn't work without this dummy function with -fwhopr. */ + int foo(void) { } +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c gcc-9.1.0/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c +--- gcc-9.1.0-orig/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c 2019-01-17 15:37:57.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c 2019-07-04 09:44:03.014890300 +0300 +@@ -48,10 +48,10 @@ + /* AMD GCN loads symbol addresses as hi/lo pairs, and then reuses that for + each jump. */ + +-/* { dg-final { scan-assembler-times "foo" 5 { xfail hppa*-*-* ia64*-*-* sh*-*-* cris-*-* crisv32-*-* fido-*-* m68k-*-* i?86-*-mingw* i?86-*-cygwin* x86_64-*-mingw* visium-*-* nvptx*-*-* pdp11*-*-* msp430-*-* amdgcn*-*-* } } } */ ++/* { dg-final { scan-assembler-times "foo" 5 { xfail hppa*-*-* ia64*-*-* sh*-*-* cris-*-* crisv32-*-* fido-*-* m68k-*-* i?86-*-mingw* i?86-*-cygwin* i?86-*-msys* x86_64-*-mingw* visium-*-* nvptx*-*-* pdp11*-*-* msp430-*-* amdgcn*-*-* } } } */ + /* { dg-final { scan-assembler-times "foo,%r" 5 { target hppa*-*-* } } } */ + /* { dg-final { scan-assembler-times "= foo" 5 { target ia64*-*-* } } } */ +-/* { dg-final { scan-assembler-times "call\[ \t\]*_foo" 5 { target i?86-*-mingw* i?86-*-cygwin* } } } */ ++/* { dg-final { scan-assembler-times "call\[ \t\]*_foo" 5 { target i?86-*-mingw* i?86-*-cygwin* i?86-*-msys* } } } */ + /* { dg-final { scan-assembler-times "call\[ \t\]*foo" 5 { target x86_64-*-mingw* } } } */ + /* { dg-final { scan-assembler-times "jsr|bsrf|blink\ttr?,r18" 5 { target sh*-*-* } } } */ + /* { dg-final { scan-assembler-times "Jsr \\\$r" 5 { target cris-*-* } } } */ +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.dg/tree-ssa/ssa-store-ccp-2.c gcc-9.1.0/gcc/testsuite/gcc.dg/tree-ssa/ssa-store-ccp-2.c +--- gcc-9.1.0-orig/gcc/testsuite/gcc.dg/tree-ssa/ssa-store-ccp-2.c 2016-05-20 22:52:50.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gcc.dg/tree-ssa/ssa-store-ccp-2.c 2019-07-04 09:42:25.374318800 +0300 +@@ -10,4 +10,4 @@ + + /* There should be a reference to conststaticvariable since it may + may be overriden at link time. */ +-/* { dg-final { scan-tree-dump-times "conststaticvariable" 1 "optimized" { xfail { *-*-mingw* *-*-cygwin* } } } } */ ++/* { dg-final { scan-tree-dump-times "conststaticvariable" 1 "optimized" { xfail { *-*-mingw* *-*-cygwin* *-*-msys* } } } } */ +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.target/i386/fastcall-1.c gcc-9.1.0/gcc/testsuite/gcc.target/i386/fastcall-1.c +--- gcc-9.1.0-orig/gcc/testsuite/gcc.target/i386/fastcall-1.c 2008-01-26 12:31:30.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gcc.target/i386/fastcall-1.c 2019-07-04 09:42:25.389918800 +0300 +@@ -1,4 +1,4 @@ +-/* { dg-do compile { target i?86-*-mingw32* i?86-*-cygwin* } } */ ++/* { dg-do compile { target i?86-*-mingw32* i?86-*-cygwin* i?86-*-msys* } } */ + /* { dg-options "-std=gnu89" } */ + + void +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.target/i386/pad-4.c gcc-9.1.0/gcc/testsuite/gcc.target/i386/pad-4.c +--- gcc-9.1.0-orig/gcc/testsuite/gcc.target/i386/pad-4.c 2017-06-17 18:32:28.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gcc.target/i386/pad-4.c 2019-07-04 09:42:25.389918800 +0300 +@@ -2,7 +2,7 @@ + /* { dg-require-effective-target ia32 } */ + /* { dg-require-effective-target fpic } */ + /* { dg-skip-if "" { *-*-* } { "-march=*" } { "-march=atom" } } */ +-/* { dg-skip-if "No Windows PIC" { *-*-mingw* *-*-cygwin } } */ ++/* { dg-skip-if "No Windows PIC" { *-*-mingw* *-*-cygwin *-*-msys } } */ + /* { dg-options "-O2 -fomit-frame-pointer -march=atom -fPIC" } */ + /* { dg-final { scan-assembler-times "nop" 8 } } */ + /* { dg-final { scan-assembler-not "rep" } } */ +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.target/i386/pic-1.c gcc-9.1.0/gcc/testsuite/gcc.target/i386/pic-1.c +--- gcc-9.1.0-orig/gcc/testsuite/gcc.target/i386/pic-1.c 2017-06-17 18:32:28.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gcc.target/i386/pic-1.c 2019-07-04 09:42:25.389918800 +0300 +@@ -2,7 +2,7 @@ + /* { dg-do compile } */ + /* { dg-require-effective-target ia32 } */ + /* { dg-require-effective-target fpic } */ +-/* { dg-skip-if "No Windows PIC" { *-*-mingw* *-*-cygwin } } */ ++/* { dg-skip-if "No Windows PIC" { *-*-mingw* *-*-cygwin *-*-msys } } */ + /* { dg-options "-fPIC" } */ + + /* Test verifies that %ebx is no longer fixed when generating PIC code on i686. */ +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.target/i386/pr25993.c gcc-9.1.0/gcc/testsuite/gcc.target/i386/pr25993.c +--- gcc-9.1.0-orig/gcc/testsuite/gcc.target/i386/pr25993.c 2019-07-04 09:00:42.173039300 +0300 ++++ gcc-9.1.0/gcc/testsuite/gcc.target/i386/pr25993.c 2019-07-04 09:42:25.389918800 +0300 +@@ -1,5 +1,5 @@ + /* { dg-do assemble } */ +-/* { dg-skip-if "" { "*-*-darwin*" "*-*-mingw*" "*-*-cygwin*" } } */ ++/* { dg-skip-if "" { "*-*-darwin*" "*-*-mingw*" "*-*-cygwin*" "*-*-msys*" } } */ + /* { dg-options "-std=c99 -x assembler-with-cpp" } */ + + #ifndef __ASSEMBLER__ +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.target/i386/pr40906-1.c gcc-9.1.0/gcc/testsuite/gcc.target/i386/pr40906-1.c +--- gcc-9.1.0-orig/gcc/testsuite/gcc.target/i386/pr40906-1.c 2017-08-29 20:21:21.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gcc.target/i386/pr40906-1.c 2019-07-04 09:42:25.389918800 +0300 +@@ -1,7 +1,7 @@ + /* { dg-do run } */ + /* { dg-require-effective-target ia32 } */ + /* { dg-options "-O2 -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args" } */ +-/* { dg-additional-options "-mno-accumulate-outgoing-args" { target { ! { *-*-mingw* *-*-cygwin* } } } } */ ++/* { dg-additional-options "-mno-accumulate-outgoing-args" { target { ! { *-*-mingw* *-*-cygwin* *-*-msys* } } } } */ + + void abort (void); + +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.target/i386/pr40906-2.c gcc-9.1.0/gcc/testsuite/gcc.target/i386/pr40906-2.c +--- gcc-9.1.0-orig/gcc/testsuite/gcc.target/i386/pr40906-2.c 2017-08-29 20:21:21.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gcc.target/i386/pr40906-2.c 2019-07-04 09:42:25.389918800 +0300 +@@ -1,7 +1,7 @@ + /* { dg-do run } */ + /* { dg-require-effective-target ia32 } */ + /* { dg-options "-O2 -Wno-psabi -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args -m128bit-long-double" } */ +-/* { dg-additional-options "-mno-accumulate-outgoing-args" { target { ! { *-*-mingw* *-*-cygwin* } } } } */ ++/* { dg-additional-options "-mno-accumulate-outgoing-args" { target { ! { *-*-mingw* *-*-cygwin* *-*-msys* } } } } */ + + void abort (void); + +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.target/i386/pr46226.c gcc-9.1.0/gcc/testsuite/gcc.target/i386/pr46226.c +--- gcc-9.1.0-orig/gcc/testsuite/gcc.target/i386/pr46226.c 2017-08-29 20:21:21.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gcc.target/i386/pr46226.c 2019-07-04 09:42:25.389918800 +0300 +@@ -1,6 +1,6 @@ + /* { dg-do run } */ + /* { dg-options "-Os -fomit-frame-pointer -fno-asynchronous-unwind-tables" } */ +-/* { dg-additional-options "-mno-accumulate-outgoing-args" { target { ! { *-*-mingw* *-*-cygwin* } } } } */ ++/* { dg-additional-options "-mno-accumulate-outgoing-args" { target { ! { *-*-mingw* *-*-cygwin* *-*-msys* } } } } */ + + extern void abort(void); + +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.target/i386/pr56564-1.c gcc-9.1.0/gcc/testsuite/gcc.target/i386/pr56564-1.c +--- gcc-9.1.0-orig/gcc/testsuite/gcc.target/i386/pr56564-1.c 2017-08-29 21:28:32.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gcc.target/i386/pr56564-1.c 2019-07-04 09:42:25.389918800 +0300 +@@ -1,6 +1,6 @@ + /* PR target/56564 */ + /* { dg-do compile { target { fpic && lp64 } } } */ +-/* { dg-skip-if "No symbol interposition for PIC" { *-*-mingw* *-*-cygwin* *-*-darwin* } } */ ++/* { dg-skip-if "No symbol interposition for PIC" { *-*-mingw* *-*-cygwin* *-*-msys* *-*-darwin* } } */ + /* { dg-options "-O3 -fpic -fdump-tree-optimized" } */ + + struct S { long a, b; } s = { 5, 6 }; +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.target/i386/pr56564-3.c gcc-9.1.0/gcc/testsuite/gcc.target/i386/pr56564-3.c +--- gcc-9.1.0-orig/gcc/testsuite/gcc.target/i386/pr56564-3.c 2017-08-29 21:28:32.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gcc.target/i386/pr56564-3.c 2019-07-04 09:42:25.389918800 +0300 +@@ -1,6 +1,6 @@ + /* PR target/56564 */ + /* { dg-do compile { target { fpic && lp64 } } } */ +-/* { dg-skip-if "No symbol interposition for PIC" { *-*-mingw* *-*-cygwin* *-*-darwin* } } */ ++/* { dg-skip-if "No symbol interposition for PIC" { *-*-mingw* *-*-cygwin* *-*-msys* *-*-darwin* } } */ + /* { dg-options "-O3 -fpic -fdump-tree-optimized" } */ + + __thread struct S { long a, b; } s = { 5, 6 }; +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.target/i386/sse-10.c gcc-9.1.0/gcc/testsuite/gcc.target/i386/sse-10.c +--- gcc-9.1.0-orig/gcc/testsuite/gcc.target/i386/sse-10.c 2017-08-29 20:21:21.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gcc.target/i386/sse-10.c 2019-07-04 09:42:25.389918800 +0300 +@@ -1,7 +1,7 @@ + /* PR 17930 */ + /* { dg-do run } */ + /* { dg-options "-O1 -msse2 -mfpmath=sse -fno-omit-frame-pointer" } */ +-/* { dg-additional-options "-mno-accumulate-outgoing-args -mno-omit-leaf-frame-pointer" { target { ! { *-*-mingw* *-*-cygwin* } } } } */ ++/* { dg-additional-options "-mno-accumulate-outgoing-args -mno-omit-leaf-frame-pointer" { target { ! { *-*-mingw* *-*-cygwin* *-*-msys* } } } } */ + /* { dg-require-effective-target sse2 } */ + + #include "sse2-check.h" +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.target/i386/stack-realign-win.c gcc-9.1.0/gcc/testsuite/gcc.target/i386/stack-realign-win.c +--- gcc-9.1.0-orig/gcc/testsuite/gcc.target/i386/stack-realign-win.c 2016-02-28 17:36:41.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gcc.target/i386/stack-realign-win.c 2019-07-04 09:42:25.389918800 +0300 +@@ -1,4 +1,4 @@ +-/* { dg-do compile { target *-*-mingw* *-*-cygwin* } } */ ++/* { dg-do compile { target *-*-mingw* *-*-cygwin* *-*-msys* } } */ + /* { dg-require-effective-target ia32 } */ + /* { dg-options "-msse -O" } */ + +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gcc.target/x86_64/abi/ms-sysv/ms-sysv.exp gcc-9.1.0/gcc/testsuite/gcc.target/x86_64/abi/ms-sysv/ms-sysv.exp +--- gcc-9.1.0-orig/gcc/testsuite/gcc.target/x86_64/abi/ms-sysv/ms-sysv.exp 2019-01-01 15:31:55.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gcc.target/x86_64/abi/ms-sysv/ms-sysv.exp 2019-07-04 09:42:25.405518900 +0300 +@@ -144,7 +144,7 @@ + runtest_ms_sysv "$cflags" "$gen_opts" + + # Skip unsupported -mcall-ms2sysv-xlogues on Windows +- if { ![istarget *-*-cygwin*] && ![istarget *-*-mingw*] } { ++ if { ![istarget *-*-cygwin*] && ![istarget *-*-msys*] && ![istarget *-*-mingw*] } { + runtest_ms_sysv "-mcall-ms2sysv-xlogues$cflags" "$gen_opts" + } + } +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gfortran.dg/bind_c_array_params_2.f90 gcc-9.1.0/gcc/testsuite/gfortran.dg/bind_c_array_params_2.f90 +--- gcc-9.1.0-orig/gcc/testsuite/gfortran.dg/bind_c_array_params_2.f90 2019-01-17 15:37:57.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gfortran.dg/bind_c_array_params_2.f90 2019-07-04 09:43:13.375603100 +0300 +@@ -16,9 +16,9 @@ + call test(aa) + end + +-! { dg-final { scan-assembler-times "\[ \t\]\[$,_0-9\]*myBindC" 1 { target { ! { hppa*-*-* s390*-*-* *-*-cygwin* amdgcn*-*-* } } } } } ++! { dg-final { scan-assembler-times "\[ \t\]\[$,_0-9\]*myBindC" 1 { target { ! { hppa*-*-* s390*-*-* *-*-cygwin* *-*-msys* amdgcn*-*-* } } } } } + ! { dg-final { scan-assembler-times "myBindC,%r2" 1 { target { hppa*-*-* } } } } +-! { dg-final { scan-assembler-times "call\tmyBindC" 1 { target { *-*-cygwin* } } } } ++! { dg-final { scan-assembler-times "call\tmyBindC" 1 { target { *-*-cygwin* *-*-msys* } } } } + ! { dg-final { scan-assembler-times "brasl\t%r\[0-9\]*,myBindC" 1 { target { s390*-*-* } } } } + ! { dg-final { scan-assembler-times "add_u32\t\[sv\]\[0-9\]*, \[sv\]\[0-9\]*, myBindC@rel32@lo" 1 { target { amdgcn*-*-* } } } } + ! { dg-final { scan-tree-dump-times "cfi_desc_to_gfc_desc \\\(&parm\\." 1 "original" } } +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gfortran.dg/chmod_1.f90 gcc-9.1.0/gcc/testsuite/gfortran.dg/chmod_1.f90 +--- gcc-9.1.0-orig/gcc/testsuite/gfortran.dg/chmod_1.f90 2018-02-17 17:05:34.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gfortran.dg/chmod_1.f90 2019-07-04 09:42:25.405518900 +0300 +@@ -1,4 +1,4 @@ +-! { dg-do run { target { ! { *-*-mingw* *-*-cygwin* spu-*-* } } } } ++! { dg-do run { target { ! { *-*-mingw* *-*-cygwin* *-*-msys* spu-*-* } } } } + ! { dg-options "-std=gnu" } + ! See PR38956. Test fails on cygwin when user has Administrator rights + implicit none +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gfortran.dg/chmod_2.f90 gcc-9.1.0/gcc/testsuite/gfortran.dg/chmod_2.f90 +--- gcc-9.1.0-orig/gcc/testsuite/gfortran.dg/chmod_2.f90 2018-02-17 17:05:34.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gfortran.dg/chmod_2.f90 2019-07-04 09:42:25.405518900 +0300 +@@ -1,4 +1,4 @@ +-! { dg-do run { target { ! { *-*-mingw* *-*-cygwin* spu-*-* } } } } ++! { dg-do run { target { ! { *-*-mingw* *-*-cygwin* *-*-msys* spu-*-* } } } } + ! { dg-options "-std=gnu" } + ! See PR38956. Test fails on cygwin when user has Administrator rights + implicit none +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gfortran.dg/chmod_3.f90 gcc-9.1.0/gcc/testsuite/gfortran.dg/chmod_3.f90 +--- gcc-9.1.0-orig/gcc/testsuite/gfortran.dg/chmod_3.f90 2018-02-17 17:05:34.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gfortran.dg/chmod_3.f90 2019-07-04 09:42:25.405518900 +0300 +@@ -1,4 +1,4 @@ +-! { dg-do run { target { ! { *-*-mingw* *-*-cygwin* spu-*-* } } } } ++! { dg-do run { target { ! { *-*-mingw* *-*-cygwin* *-*-msys* spu-*-* } } } } + ! { dg-options "-std=gnu -fdefault-integer-8" } + ! See PR38956. Test fails on cygwin when user has Administrator rights + implicit none +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gfortran.dg/default_format_denormal_1.f90 gcc-9.1.0/gcc/testsuite/gfortran.dg/default_format_denormal_1.f90 +--- gcc-9.1.0-orig/gcc/testsuite/gfortran.dg/default_format_denormal_1.f90 2018-02-17 17:05:34.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gfortran.dg/default_format_denormal_1.f90 2019-07-04 09:42:25.421118900 +0300 +@@ -1,4 +1,4 @@ +-! { dg-do run { xfail *-*-darwin[89]* *-*-cygwin* spu-*-* powerpc-ibm-aix* } } ++! { dg-do run { xfail *-*-darwin[89]* *-*-cygwin* *-*-msys* spu-*-* powerpc-ibm-aix* } } + ! Test XFAILed on these platforms because the system's printf() lacks + ! proper support for denormals. + ! +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gfortran.dg/open_errors.f90 gcc-9.1.0/gcc/testsuite/gfortran.dg/open_errors.f90 +--- gcc-9.1.0-orig/gcc/testsuite/gfortran.dg/open_errors.f90 2018-02-17 17:05:34.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gfortran.dg/open_errors.f90 2019-07-04 09:42:25.421118900 +0300 +@@ -1,4 +1,4 @@ +-! { dg-do run { target { ! { *-*-mingw* *-*-cygwin* spu-*-* } } } } ++! { dg-do run { target { ! { *-*-mingw* *-*-cygwin* *-*-msys* spu-*-* } } } } + ! PR30005 Enhanced error messages for OPEN + ! Submitted by Jerry DeLisle + ! See PR38956. Test fails on cygwin when user has Administrator rights +diff -Naur gcc-9.1.0-orig/gcc/testsuite/gfortran.dg/winapi.f90 gcc-9.1.0/gcc/testsuite/gfortran.dg/winapi.f90 +--- gcc-9.1.0-orig/gcc/testsuite/gfortran.dg/winapi.f90 2018-02-17 17:05:34.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/gfortran.dg/winapi.f90 2019-07-04 09:42:25.421118900 +0300 +@@ -1,4 +1,4 @@ +-! { dg-do run { target *-*-cygwin* *-*-mingw* } } ++! { dg-do run { target *-*-cygwin* *-*-msys* *-*-mingw* } } + ! { dg-options "-lkernel32" } + ! Test case provided by Dennis Wassel. + +diff -Naur gcc-9.1.0-orig/gcc/testsuite/lib/g++.exp gcc-9.1.0/gcc/testsuite/lib/g++.exp +--- gcc-9.1.0-orig/gcc/testsuite/lib/g++.exp 2019-01-01 15:31:55.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/lib/g++.exp 2019-07-04 09:42:25.421118900 +0300 +@@ -205,7 +205,7 @@ + + # Many hosts now default to a non-ASCII C locale, however, so + # they can set a charset encoding here if they need. +- if { [ishost "*-*-cygwin*"] } { ++ if { [ishost "*-*-cygwin*"] || [ishost "*-*-msys*"] } { + setenv LC_ALL C.ASCII + setenv LANG C.ASCII + } +diff -Naur gcc-9.1.0-orig/gcc/testsuite/lib/gcc-dg.exp gcc-9.1.0/gcc/testsuite/lib/gcc-dg.exp +--- gcc-9.1.0-orig/gcc/testsuite/lib/gcc-dg.exp 2019-02-15 10:52:50.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/lib/gcc-dg.exp 2019-07-04 09:42:25.421118900 +0300 +@@ -40,7 +40,7 @@ + + # Many hosts now default to a non-ASCII C locale, however, so + # they can set a charset encoding here if they need. +-if { [ishost "*-*-cygwin*"] } { ++if { [ishost "*-*-cygwin*"] || [ishost "*-*-msys*"] } { + setenv LC_ALL C.ASCII + setenv LANG C.ASCII + } +diff -Naur gcc-9.1.0-orig/gcc/testsuite/lib/gfortran.exp gcc-9.1.0/gcc/testsuite/lib/gfortran.exp +--- gcc-9.1.0-orig/gcc/testsuite/lib/gfortran.exp 2019-01-01 15:31:55.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/lib/gfortran.exp 2019-07-04 09:42:25.421118900 +0300 +@@ -161,7 +161,7 @@ + + # Many hosts now default to a non-ASCII C locale, however, so + # they can set a charset encoding here if they need. +- if { [ishost "*-*-cygwin*"] } { ++ if { [ishost "*-*-cygwin*"] || [ishost "*-*-msys*"] } { + setenv LC_ALL C.ASCII + setenv LANG C.ASCII + } +diff -Naur gcc-9.1.0-orig/gcc/testsuite/lib/objc.exp gcc-9.1.0/gcc/testsuite/lib/objc.exp +--- gcc-9.1.0-orig/gcc/testsuite/lib/objc.exp 2019-01-01 15:31:55.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/lib/objc.exp 2019-07-04 09:42:25.421118900 +0300 +@@ -105,7 +105,7 @@ + + # Many hosts now default to a non-ASCII C locale, however, so + # they can set a charset encoding here if they need. +- if { [ishost "*-*-cygwin*"] } { ++ if { [ishost "*-*-cygwin*"] || [ishost "*-*-msys*"] } { + setenv LC_ALL C.ASCII + setenv LANG C.ASCII + } +diff -Naur gcc-9.1.0-orig/gcc/testsuite/lib/options.exp gcc-9.1.0/gcc/testsuite/lib/options.exp +--- gcc-9.1.0-orig/gcc/testsuite/lib/options.exp 2019-01-01 15:31:55.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/lib/options.exp 2019-07-04 09:42:25.421118900 +0300 +@@ -20,7 +20,7 @@ + + # Many hosts now default to a non-ASCII C locale, however, so + # they can set a charset encoding here if they need. +-if { [ishost "*-*-cygwin*"] } { ++if { [ishost "*-*-cygwin*"] || [ishost "*-*-msys*"] } { + setenv LC_ALL C.ASCII + setenv LANG C.ASCII + } +diff -Naur gcc-9.1.0-orig/gcc/testsuite/lib/target-libpath.exp gcc-9.1.0/gcc/testsuite/lib/target-libpath.exp +--- gcc-9.1.0-orig/gcc/testsuite/lib/target-libpath.exp 2019-01-01 15:31:55.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/lib/target-libpath.exp 2019-07-04 09:42:25.421118900 +0300 +@@ -171,7 +171,7 @@ + } else { + setenv DYLD_LIBRARY_PATH "$ld_library_path" + } +- if { [istarget *-*-cygwin*] || [istarget *-*-mingw*] } { ++ if { [istarget *-*-cygwin*] || [istarget *-*-msys*] || [istarget *-*-mingw*] } { + if { $orig_path_saved } { + setenv PATH "$ld_library_path:$orig_path" + } else { +@@ -277,7 +277,7 @@ + + if { [istarget *-*-darwin*] } { + set shlib_ext "dylib" +- } elseif { [istarget *-*-cygwin*] || [istarget *-*-mingw*] } { ++ } elseif { [istarget *-*-cygwin*] || [istarget *-*-msys*] || [istarget *-*-mingw*] } { + set shlib_ext "dll" + } elseif { [istarget hppa*-*-hpux*] } { + set shlib_ext "sl" +diff -Naur gcc-9.1.0-orig/gcc/testsuite/lib/target-supports.exp gcc-9.1.0/gcc/testsuite/lib/target-supports.exp +--- gcc-9.1.0-orig/gcc/testsuite/lib/target-supports.exp 2019-04-23 17:39:50.000000000 +0300 ++++ gcc-9.1.0/gcc/testsuite/lib/target-supports.exp 2019-07-04 09:42:25.436718900 +0300 +@@ -300,7 +300,7 @@ + + # Windows targets Cygwin and MingW32 support it + +- if { [istarget *-*-cygwin*] || [istarget *-*-mingw*] } { ++ if { [istarget *-*-cygwin*] || [istarget *-*-msys*] || [istarget *-*-mingw*] } { + return 1 + } + +@@ -649,6 +649,11 @@ + return 0 + } + ++ # MSYS does not support -p. ++ if { [istarget *-*-msys*] && $test_what == "-p" } { ++ return 0 ++ } ++ + # uClibc does not have gcrt1.o. + if { [check_effective_target_uclibc] + && ($test_what == "-p" || $test_what == "-pg") } { +@@ -1060,7 +1065,7 @@ + # for trivial code, 0 otherwise. + + proc check_effective_target_pe_aligned_commons {} { +- if { [istarget *-*-cygwin*] || [istarget *-*-mingw*] } { ++ if { [istarget *-*-cygwin*] || [istarget *-*-msys*] || [istarget *-*-mingw*] } { + return [check_no_compiler_messages pe_aligned_commons object { + int foo; + } "-mpe-aligned-commons"] +@@ -2465,7 +2470,7 @@ + # Returns true iff "mkfifo" is available on the target system. + + proc check_mkfifo_available {} { +- if { [istarget *-*-cygwin*] } { ++ if { [istarget *-*-cygwin*] || [istarget *-*-msys*] } { + # Cygwin has mkfifo, but support is incomplete. + return 0 + } +@@ -7378,7 +7383,7 @@ + proc check_effective_target_automatic_stack_alignment { } { + # Ordinarily x86 supports automatic stack alignment ... + if { [istarget i?86*-*-*] || [istarget x86_64-*-*] } then { +- if { [istarget *-*-mingw*] || [istarget *-*-cygwin*] } { ++ if { [istarget *-*-mingw*] || [istarget *-*-cygwin*] || [istarget *-*-msys*] } { + # ... except Win64 SEH doesn't. Succeed for Win32 though. + return [check_effective_target_ilp32]; + } +diff -Naur gcc-9.1.0-orig/libffi/testsuite/lib/target-libpath.exp gcc-9.1.0/libffi/testsuite/lib/target-libpath.exp +--- gcc-9.1.0-orig/libffi/testsuite/lib/target-libpath.exp 2015-01-12 19:19:59.000000000 +0300 ++++ gcc-9.1.0/libffi/testsuite/lib/target-libpath.exp 2019-07-04 09:42:25.436718900 +0300 +@@ -175,7 +175,7 @@ + } else { + setenv DYLD_LIBRARY_PATH "$ld_library_path" + } +- if { [istarget *-*-cygwin*] || [istarget *-*-mingw*] } { ++ if { [istarget *-*-cygwin*] || [istarget *-*-msys*] || [istarget *-*-mingw*] } { + if { $orig_path_saved } { + setenv PATH "$ld_library_path:$orig_path" + } else { +@@ -271,7 +271,7 @@ + + if { [ istarget *-*-darwin* ] } { + set shlib_ext "dylib" +- } elseif { [ istarget *-*-cygwin* ] || [ istarget *-*-mingw* ] } { ++ } elseif { [ istarget *-*-cygwin* ] || [ istarget *-*-msys* ] || [ istarget *-*-mingw* ] } { + set shlib_ext "dll" + } elseif { [ istarget hppa*-*-hpux* ] } { + set shlib_ext "sl" +diff -Naur gcc-9.1.0-orig/libgomp/testsuite/lib/libgomp.exp gcc-9.1.0/libgomp/testsuite/lib/libgomp.exp +--- gcc-9.1.0-orig/libgomp/testsuite/lib/libgomp.exp 2019-02-22 13:51:35.000000000 +0300 ++++ gcc-9.1.0/libgomp/testsuite/lib/libgomp.exp 2019-07-04 09:42:25.436718900 +0300 +@@ -82,7 +82,7 @@ + + # Many hosts now default to a non-ASCII C locale, however, so + # they can set a charset encoding here if they need. +- if { [ishost "*-*-cygwin*"] } { ++ if { [ishost "*-*-cygwin*"] || [ishost "*-*-msys*"] } { + setenv LC_ALL C.ASCII + setenv LANG C.ASCII + } +diff -Naur gcc-9.1.0-orig/libstdc++-v3/testsuite/lib/libstdc++.exp gcc-9.1.0/libstdc++-v3/testsuite/lib/libstdc++.exp +--- gcc-9.1.0-orig/libstdc++-v3/testsuite/lib/libstdc++.exp 2019-04-10 17:46:03.000000000 +0300 ++++ gcc-9.1.0/libstdc++-v3/testsuite/lib/libstdc++.exp 2019-07-04 09:42:25.436718900 +0300 +@@ -113,7 +113,7 @@ + + # Many hosts now default to a non-ASCII C locale, however, so + # they can set a charset encoding here if they need. +- if { [ishost "*-*-cygwin*"] } { ++ if { [ishost "*-*-cygwin*"] || [ishost "*-*-msys*"] } { + setenv LC_ALL C.ASCII + setenv LANG C.ASCII + } diff --git a/mingw-w64-cross-gcc/0955-4.9.2-apply-hack-so-gcc_s-isnt-stripped.patch b/mingw-w64-cross-gcc/0955-4.9.2-apply-hack-so-gcc_s-isnt-stripped.patch deleted file mode 100644 index f9679922..00000000 --- a/mingw-w64-cross-gcc/0955-4.9.2-apply-hack-so-gcc_s-isnt-stripped.patch +++ /dev/null @@ -1,72 +0,0 @@ -diff -Naur gcc-6.3.0-orig/gcc/config/i386/cygwin.h gcc-6.3.0/gcc/config/i386/cygwin.h ---- gcc-6.3.0-orig/gcc/config/i386/cygwin.h 2017-01-24 11:59:41.138236300 +0300 -+++ gcc-6.3.0/gcc/config/i386/cygwin.h 2017-01-24 12:05:25.522747400 +0300 -@@ -56,6 +56,10 @@ - fvtable-verify=std:vtv_end.o%s} \ - crtend.o%s" - -+/* There is a bug when building i686 dw-2 exceptions -+ where gcc_s gets stripped which this works around */ -+#define PREVENT_STRIP_REG_FRAME_INFO "--undefined=___deregister_frame_info --undefined=___register_frame_info" -+ - /* Normally, -lgcc is not needed since everything in it is in the DLL, but we - want to allow things to be added to it when installing new versions of - GCC without making a new CYGWIN.DLL, so we leave it. Profiling is handled -@@ -66,7 +70,7 @@ - %{static|static-libgcc:-lgcc -lgcc_eh} \ - %{!static: \ - %{!static-libgcc: \ -- -lgcc_s -lgcc \ -+ -lgcc_s " PREVENT_STRIP_REG_FRAME_INFO " -lgcc \ - } \ - } " - #else -diff -Naur gcc-6.3.0-orig/gcc/config/i386/mingw32.h gcc-6.3.0/gcc/config/i386/mingw32.h ---- gcc-6.3.0-orig/gcc/config/i386/mingw32.h 2016-04-08 16:47:37.000000000 +0300 -+++ gcc-6.3.0/gcc/config/i386/mingw32.h 2017-01-24 12:05:25.538347400 +0300 -@@ -120,6 +120,10 @@ - %{shared|mdll: " SUB_LINK_ENTRY " --enable-auto-image-base} \ - %(shared_libgcc_undefs)" - -+/* There is a bug when building i686 dw-2 exceptions -+ where gcc_s gets stripped which this works around */ -+#define PREVENT_STRIP_REG_FRAME_INFO "--undefined=___deregister_frame_info --undefined=___register_frame_info" -+ - /* Include in the mingw32 libraries with libgcc */ - #ifdef ENABLE_SHARED_LIBGCC - #define SHARED_LIBGCC_SPEC " \ -@@ -128,9 +132,9 @@ - %{!static-libgcc: \ - %{!shared: \ - %{!shared-libgcc:-lgcc -lgcc_eh} \ -- %{shared-libgcc:-lgcc_s -lgcc} \ -+ %{shared-libgcc:-lgcc_s " PREVENT_STRIP_REG_FRAME_INFO " -lgcc} \ - } \ -- %{shared:-lgcc_s -lgcc} \ -+ %{shared:-lgcc_s " PREVENT_STRIP_REG_FRAME_INFO " -lgcc} \ - } \ - } " - #else -diff -Naur gcc-6.3.0-orig/gcc/config/i386/msys.h gcc-6.3.0/gcc/config/i386/msys.h ---- gcc-6.3.0-orig/gcc/config/i386/msys.h 2017-01-24 12:04:53.694488600 +0300 -+++ gcc-6.3.0/gcc/config/i386/msys.h 2017-01-24 12:05:25.538347400 +0300 -@@ -63,6 +63,10 @@ - #undef STANDARD_STARTFILE_PREFIX_2 - #define STANDARD_STARTFILE_PREFIX_2 "/usr/lib/w32api/" - -+/* There is a bug when building i686 dw-2 exceptions -+ where gcc_s gets stripped which this works around */ -+#define PREVENT_STRIP_REG_FRAME_INFO "--undefined=___deregister_frame_info --undefined=___register_frame_info" -+ - /* Normally, -lgcc is not needed since everything in it is in the DLL, but we - want to allow things to be added to it when installing new versions of - GCC without making a new msys-2.0.dll, so we leave it. Profiling is handled -@@ -73,7 +77,7 @@ - %{static|static-libgcc:-lgcc -lgcc_eh} \ - %{!static: \ - %{!static-libgcc: \ -- -lgcc_s -lgcc \ -+ -lgcc_s " PREVENT_STRIP_REG_FRAME_INFO " -lgcc \ - } \ - } " - #else diff --git a/mingw-w64-cross-gcc/PKGBUILD b/mingw-w64-cross-gcc/PKGBUILD index 9e72bc95..8f0dceed 100644 --- a/mingw-w64-cross-gcc/PKGBUILD +++ b/mingw-w64-cross-gcc/PKGBUILD @@ -3,8 +3,8 @@ _realname=gcc _mingw_suff=mingw-w64-cross pkgname=("${_mingw_suff}-${_realname}") -pkgver=7.3.0 -pkgrel=2 +pkgver=9.1.0 +pkgrel=1 pkgdesc="Cross GCC for the MinGW-w64" arch=('i686' 'x86_64') url="https://gcc.gnu.org" @@ -20,8 +20,6 @@ makedepends=("gcc" 'lndir' "gmp-devel" "mpc-devel" "zlib-devel" "isl-devel") #checkdepends=('dejagnu') options=('!strip' 'staticlibs' '!emptydirs' '!buildflags') source=(https://ftp.gnu.org/gnu/gcc/gcc-${pkgver}/gcc-${pkgver}.tar.gz - 0001-share-mingw-fset-stack-executable-with-cygwin.patch - 0007-Avoid-installing-libffi-V2.patch 0009-Cygwin-uses-sysv-ABI-on-x86_64-V2.patch 0010-Do-not-version-lto-plugin-on-cygwin-mingw.patch 0011-add-dummy-pthread-tsaware-and-large-address-aware-fo.patch @@ -32,57 +30,43 @@ source=(https://ftp.gnu.org/gnu/gcc/gcc-${pkgver}/gcc-${pkgver}.tar.gz 0016-fix-some-implicit-declaration-warnings.patch 0017-__cxa-atexit-for-Cygwin.patch 0018-prevent-modules-from-being-unloaded-before-their-dto.patch - 0019-Cygwin-doesn-t-do-text-mode-translations-for-file-ha.patch 0020-cygwin-uses-cyg-lib-prefix-v3.patch 0022-libgomp-soname-cygwin-mingw.patch 0024-libitm-weak-symbols.patch - 0025-enable-libcilkrts-V2.patch 0028-g++-time.patch - 0029-gcc-specs.patch 0030-newlib-ftm.patch 0031-define_std-unix.patch + 0032-fix-ada-malloc-error.patch 0130-libstdc++-in-out.patch - 0240-prettify-linking-no-undefined.mingw.patch - 0408-gcc-6-branch-Windows-New-feature-to-allow-overriding.patch - 0410-fix-using-large-pch.patch - 0415-disable-weak-refs-in-libstdc++.patch - 0950-7.3.0-configure-msys2.patch - 0951-7.3.0-msys2-spec.patch - 0953-7.3.0-testsuite-msys2.patch - 0955-4.9.2-apply-hack-so-gcc_s-isnt-stripped.patch - pr86138.patch) -sha256sums=('fa06e455ca198ddc11ea4ddf2a394cf7cfb66aa7e0ab98cc1184189f1d405870' - 'e2583724bbc9ac16a5a3927b79a05c006d43fd70fe0e598b5d402fb66080e308' - '25ba33a68cefd1921d35b796a2dc033bae22b33527b8b81b04dddb3e0dee5920' + 0140-gcc-8.2.0-diagnostic-color.patch + 0150-ada-fix-pr80590.patch + 0950-9.1.0-configure-msys2.patch + 0951-9.1.0-msys2-spec.patch + 0953-9.1.0-testsuite-msys2.patch) +sha256sums=('be303f7a8292982a35381489f5a9178603cbe9a4715ee4fa4a815d6bcd2b658d' '24bdd964c6479251af5a275965db42ed867599cd2d84ecb526397395e201cda4' - 'b77b6045aabba3aaae58d578d0b2ffc56ce70907f39a280fa964c9fcbd88bdad' + '817361b4b301ca3f578d0d24b899691273a4ca9e20a91790a74efddc91c1130e' '7ad412357429a2e2376ec673d0e0a0d2ab4e3a162db532818bc76d55835f35d6' 'cf33d6ff5e32ed35146117c9bd3d78bb9bf228abad73e5c2b44f006bf8cf0fc8' - '79db6a8951c3c07d9df26863a2bcfc607606211f6eb813c156b4f46123ecbbdc' - 'ac7e9e08ea8b2b4b5fdb394e217ce9081352fe07746e19b9374a753ebf89a4a2' + '4922110c9bb7959a453d62e0107aee7c58c1e146540f930f55466c72f24f72a7' + '8227d3857cac3846d7436cd6867a7a89d36686d3219820215f72deb40ab44792' '84c8127f2e70f26a6bf0f7ff1fe06df4814096bc02f5fc19291a729c740887d7' '4d3030238181a6d28c1aff5e5b43db6d82517f3412309175e162f5da63f7cd00' '0e6a373a0911d81656d9bfd2d93085b817266538600eab14965f1bafb034bac8' 'a277245cf7ccf6e3bd83a79945ff26ea5e41fb3ecf7fe0a473b2ec64d8c5b101' - '54a0e45c09ac70b7932cde3e86b6156c1fec459c69ece53141921adcb8a75e6e' - '277907dd3982c61dcd8d739231e49afebf3841cf687fc1fcf3e2ffbba419c904' + '0607c207a49ee337585f451cbdeb95131f45500361a494a88cfb304a4e18ace5' '00e528e198183799c00167cacc1a7b1cb9505ae93ef89e581632ffaae20080f2' - '9daf3accc664d5a2b6f93354a1e8807d19c640e627dc2977111aab17b766542e' - '5ac69b7933d576133618c4367fa54faf89e11231228f54c9ab8ce4c5fb221a49' - '77f1ff3c35cf54c0698e80156a0b4ee0f6f87892e5b45bdafb36096c61e87fdf' - '5c981e03ee5f34129ab06e3e4aab0bd190bf9d454d98513ac68b39e01f0b039d' - 'e1b56aa9c8786b5491ec3f6522498f4381fe78c6117b87ae0daeb7741e111a98' - 'e767610ddf54d2f277fef89e355728f31dbe9fe920eccd082942fbadfd3c1409' - 'd5dd17d7a97e8295a2ea6caa6b10f0ab384a8c1874283524242897086c07cb26' - '018e6ef8f431c0cebbc0c01a7acc28270ba5a827904540f6b5f1c22b4955a1dd' - 'd1e10cd2ef5594c34acead334bb93af500e00699ba673edc8916da22a572677d' - '0decbbebda7ceac91da5d3dec9b7330f406a4358fa150560f08ff6f54739035f' - '09f27e0dae8d962f2a46a33a9891f2d14303629bb40f91ed8c5824c90da653a9' - 'd075205468c4518d7eb5d38c6c95c4bcc07b9788521cce41467b7396f44cfcb8' - 'e41e326ecfb555f527c769599537bfe312c2a7cfb899519620bfe873c228f0cb' - '07e82b66cc4ef6f3c711525f9d91037777cad8a9f81ccf9dcecbb56193401eba' - '89e00457776fb1cae1b020c6f835012a8617996a0d0710a4b12e9804aeda27df' - 'c2126ca50487d84fa9aaf0a64bc03df8dbc0bccc2dd5be1b5f1e277c9ad7c0aa') + 'e8e4fa17a86b7c00426699173973faafdd585a84499a5acc95ee7701723ed82b' + '041ec7903f3285d28a4c2949fbda7b830e9e32c7883de3649c53bf595df037a0' + '081457942bab05b4583718dd9bef50cb42032c43a8ded6ad633d6993e4dd05c1' + 'ebd467d7cf1997d8feecb053ed83d93e199a39a0af3f01b2e343f8e23a654630' + 'd08df78b4c8cfaee819bea41ca61f0b69a9afd00605230541139d35baf9d6f1f' + 'a526cfab91a1499be92c824c7f2185a013a38dbdfbeabe63ecbe84451e07b021' + 'e467f0ac68b349de826c79b00a45c5ad9e7c5a55d06b9b9fa7afd94c597f6376' + 'acc5437045005e2aeaca81f6b988c65b319a3ebcd8919218faeca74837f4b12b' + 'a77df7aed55abad81c607497571284d3fc5b1cb69befe5afdc9b0eee23597025' + '259d025fec7b527a1044c798051e2d074088eca4b382eebff433d6deecabd282' + '6f62bf968154323ef531716e086fe6132e5d3d7fc496e7159e3c59e436658bff') _threads="win32" _targets="i686-w64-mingw32 x86_64-w64-mingw32" #armv7-w64-mingw32 @@ -131,14 +115,8 @@ prepare() { gcc/config/i386/msys-w64.h \ gcc/config/i386/t-msys-w64 > /dev/null 2>&1 | true - # Upstream patches - apply_patch_with_msg \ - pr86138.patch - # Cygwin patches apply_patch_with_msg \ - 0001-share-mingw-fset-stack-executable-with-cygwin.patch \ - 0007-Avoid-installing-libffi-V2.patch \ 0009-Cygwin-uses-sysv-ABI-on-x86_64-V2.patch \ 0010-Do-not-version-lto-plugin-on-cygwin-mingw.patch \ 0011-add-dummy-pthread-tsaware-and-large-address-aware-fo.patch \ @@ -152,89 +130,85 @@ prepare() { 0020-cygwin-uses-cyg-lib-prefix-v3.patch \ 0022-libgomp-soname-cygwin-mingw.patch \ 0024-libitm-weak-symbols.patch \ - 0025-enable-libcilkrts-V2.patch - apply_patch_p2_with_msg \ - 0028-g++-time.patch \ - 0030-newlib-ftm.patch \ - 0031-define_std-unix.patch + 0028-g++-time.patch \ + 0030-newlib-ftm.patch \ + 0031-define_std-unix.patch \ + 0032-fix-ada-malloc-error.patch # MINGW patches apply_patch_with_msg 0130-libstdc++-in-out.patch \ - 0240-prettify-linking-no-undefined.mingw.patch \ - 0408-gcc-6-branch-Windows-New-feature-to-allow-overriding.patch \ - 0410-fix-using-large-pch.patch \ - 0415-disable-weak-refs-in-libstdc++.patch + 0140-gcc-8.2.0-diagnostic-color.patch \ + 0150-ada-fix-pr80590.patch # MSYS2 Patches apply_patch_with_msg \ - 0950-7.3.0-configure-msys2.patch \ - 0951-7.3.0-msys2-spec.patch \ - 0953-7.3.0-testsuite-msys2.patch \ - 0955-4.9.2-apply-hack-so-gcc_s-isnt-stripped.patch + 0950-9.1.0-configure-msys2.patch \ + 0951-9.1.0-msys2-spec.patch \ + 0953-9.1.0-testsuite-msys2.patch } build() { for _target in ${_targets}; do - mkdir -p ${srcdir}/gcc-build-${_target} && cd ${srcdir}/gcc-build-${_target} + mkdir -p ${srcdir}/gcc-build-${_target} && cd ${srcdir}/gcc-build-${_target} - local _langs="c,lto,c++" - case "${_target}" in - i686*) - local _conf="--disable-sjlj-exceptions --with-dwarf2" - local _arch=i686 - _langs="${_langs} fortran" - ;; + local _langs="c,lto,c++" + case "${_target}" in + i686*) + local _conf="--disable-sjlj-exceptions --with-dwarf2" + local _arch=i686 + _langs="${_langs} fortran" + ;; - x86_64*) - local _arch=x86-64 - local _conf="" - _langs="${_langs} fortran" - ;; - esac + x86_64*) + local _arch=x86-64 + local _conf="" + _langs="${_langs} fortran" + ;; + esac - # use built-in SSP with Cygwin 2.10 - # FIXME: --disable-libssp should suffice in GCC 8 - export gcc_cv_libc_provides_ssp=yes - # configure tries to test SUSv4-compliant behaviour of - # realpath(..., NULL) via _XOPEN_VERSION - export glibcxx_cv_realpath=yes - ../${_realname}-${pkgver}/configure \ - --prefix=/opt \ - --build=${CHOST} \ - --host=${CHOST} \ - --target=${_target} \ - --libexecdir=/opt/lib \ - --disable-bootstrap \ - --with-arch=${_arch} \ - --with-tune=generic \ - --enable-languages=${_langs} \ - --enable-shared --enable-static \ - --enable-threads=${_threads} \ - --enable-graphite \ - --enable-fully-dynamic-string \ - --enable-libstdcxx-time=yes \ - --disable-libstdcxx-pch \ - --disable-libstdcxx-debug \ - --enable-cloog-backend=isl \ - --enable-version-specific-runtime-libs \ - --disable-isl-version-check \ - --enable-lto \ - --enable-libgomp \ - --disable-multilib \ - --enable-checking=release \ - --disable-rpath \ - --disable-win32-registry \ - --disable-werror \ - --disable-symvers \ - --with-libiconv \ - --with-system-zlib \ - --with-{gmp,mpfr,mpc,isl}=/usr \ - --with-gnu-as --with-gnu-ld \ - ${_conf} \ - CFLAGS="-O2 -pipe" \ - CXXFALGS="-O2 -pipe" - - make all + # use built-in SSP with Cygwin 2.10 + # FIXME: --disable-libssp should suffice in GCC 8 + export gcc_cv_libc_provides_ssp=yes + # configure tries to test SUSv4-compliant behaviour of + # realpath(..., NULL) via _XOPEN_VERSION + export glibcxx_cv_realpath=yes + ../${_realname}-${pkgver}/configure \ + --prefix=/opt \ + --build=${CHOST} \ + --host=${CHOST} \ + --target=${_target} \ + --libexecdir=/opt/lib \ + --disable-bootstrap \ + --with-arch=${_arch} \ + --with-tune=generic \ + --enable-languages=${_langs} \ + --enable-shared --enable-static \ + --enable-threads=${_threads} \ + --enable-graphite \ + --enable-fully-dynamic-string \ + --enable-libstdcxx-time=yes \ + --disable-libstdcxx-pch \ + --disable-libstdcxx-debug \ + --enable-cloog-backend=isl \ + --enable-version-specific-runtime-libs \ + --disable-isl-version-check \ + --enable-lto \ + --enable-libgomp \ + --disable-multilib \ + --enable-checking=release \ + --disable-rpath \ + --disable-win32-registry \ + --disable-werror \ + --disable-symvers \ + --with-libiconv \ + --with-system-zlib \ + --with-{gmp,mpfr,mpc,isl}=/usr \ + --with-gnu-as --with-gnu-ld \ + ${_conf} \ + CFLAGS="-O2 -pipe" \ + CXXFALGS="-O2 -pipe" + + make all done } diff --git a/mingw-w64-cross-gcc/pr86138.patch b/mingw-w64-cross-gcc/pr86138.patch deleted file mode 100644 index a84e0e79..00000000 --- a/mingw-w64-cross-gcc/pr86138.patch +++ /dev/null @@ -1,176 +0,0 @@ -From 2cca047791a52015d63fd42e9791ed7dc237099d Mon Sep 17 00:00:00 2001 -From: redi -Date: Fri, 22 Jun 2018 15:58:38 +0000 -Subject: [PATCH] PR libstdc++/86138 prevent implicit instantiation of COW - empty rep - -The explicit instantiation declarations for std::basic_string are -disabled for C++17 (and later) so that basic_string symbols get -implicitly instantiated in every translation unit that needs them. On -targets that don't support STB_GNU_UNIQUE this leads to multiple copies -of the empty rep symbol for COW strings. In order to detect whether a -COW string needs to deallocate its storage it compares the address with -the empty rep. When there are multiple copies of the empty rep object -the address is not unique, and so string destructors try to delete the -empty rep, which crashes. - -In order to guarantee uniqueness of the _S_empty_rep_storage symbol this -patch adds an explicit instantiation declaration for just that symbol. -This means the other symbols are still implicitly instantiated in C++17 -code, but for the empty rep the definition in the library gets used. - -Separately, there is no need for C++17 code to implicitly instantiate -the I/O functions for strings, so this also restores the explicit -instantiation declarations for those functions. - -Backport from mainline -2018-06-22 Jonathan Wakely - - PR libstdc++/86138 - * include/bits/basic_string.tcc: - [__cplusplus > 201402 && !_GLIBCXX_USE_CXX11_ABI] - (basic_string::_Rep::_S_empty_rep_storage) - (basic_string::_Rep::_S_empty_rep_storage): Add explicit - instantiation declarations. - [__cplusplus > 201402] (operator>>, operator<<, getline): Re-enable - explicit instantiation declarations. - * testsuite/21_strings/basic_string/cons/char/86138.cc: New. - * testsuite/21_strings/basic_string/cons/wchar_t/86138.cc: New. - -git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261907 138bc75d-0d04-0410-961f-82ee72b054a4 ---- - libstdc++-v3/ChangeLog | 16 ++++++++++ - libstdc++-v3/include/bits/basic_string.tcc | 25 ++++++++++++++-- - .../basic_string/cons/char/86138.cc | 30 +++++++++++++++++++ - .../basic_string/cons/wchar_t/86138.cc | 30 +++++++++++++++++++ - 4 files changed, 98 insertions(+), 3 deletions(-) - create mode 100644 libstdc++-v3/testsuite/21_strings/basic_string/cons/char/86138.cc - create mode 100644 libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/86138.cc - -diff --git a/libstdc++-v3/include/bits/basic_string.tcc b/libstdc++-v3/include/bits/basic_string.tcc -index 41b7fa196b0..d185a54aaf0 100644 ---- a/libstdc++-v3/include/bits/basic_string.tcc -+++ b/libstdc++-v3/include/bits/basic_string.tcc -@@ -1597,8 +1597,21 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION - - // Inhibit implicit instantiations for required instantiations, - // which are defined via explicit instantiations elsewhere. --#if _GLIBCXX_EXTERN_TEMPLATE > 0 && __cplusplus <= 201402L -+#if _GLIBCXX_EXTERN_TEMPLATE > 0 -+ // The explicit instantiations definitions in src/c++11/string-inst.cc -+ // are compiled as C++14, so the new C++17 members aren't instantiated. -+ // Until those definitions are compiled as C++17 suppress the declaration, -+ // so C++17 code will implicitly instantiate std::string and std::wstring -+ // as needed. -+# if __cplusplus <= 201402L - extern template class basic_string; -+# elif ! _GLIBCXX_USE_CXX11_ABI -+ // Still need to prevent implicit instantiation of the COW empty rep, -+ // to ensure the definition in libstdc++.so is unique (PR 86138). -+ extern template basic_string::size_type -+ basic_string::_Rep::_S_empty_rep_storage[]; -+# endif -+ - extern template - basic_istream& - operator>>(basic_istream&, string&); -@@ -1613,7 +1626,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION - getline(basic_istream&, string&); - - #ifdef _GLIBCXX_USE_WCHAR_T -+# if __cplusplus <= 201402L - extern template class basic_string; -+# elif ! _GLIBCXX_USE_CXX11_ABI -+ extern template basic_string::size_type -+ basic_string::_Rep::_S_empty_rep_storage[]; -+# endif -+ - extern template - basic_istream& - operator>>(basic_istream&, wstring&); -@@ -1626,8 +1645,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION - extern template - basic_istream& - getline(basic_istream&, wstring&); --#endif --#endif -+#endif // _GLIBCXX_USE_WCHAR_T -+#endif // _GLIBCXX_EXTERN_TEMPLATE > 0 - - _GLIBCXX_END_NAMESPACE_VERSION - } // namespace std -diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/86138.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/86138.cc -new file mode 100644 -index 00000000000..a85fd9c82c9 ---- /dev/null -+++ b/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/86138.cc -@@ -0,0 +1,30 @@ -+// Copyright (C) 2018 Free Software Foundation, Inc. -+// -+// This file is part of the GNU ISO C++ Library. This library is free -+// software; you can redistribute it and/or modify it under the -+// terms of the GNU General Public License as published by the -+// Free Software Foundation; either version 3, or (at your option) -+// any later version. -+ -+// This library is distributed in the hope that it will be useful, -+// but WITHOUT ANY WARRANTY; without even the implied warranty of -+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+// GNU General Public License for more details. -+ -+// You should have received a copy of the GNU General Public License along -+// with this library; see the file COPYING3. If not see -+// . -+ -+// { dg-options "-std=gnu++17" } -+// { dg-do compile { target c++1z } } -+// { dg-final { scan-assembler-not "_ZNSs4_Rep20_S_empty_rep_storageE:" } } -+ -+#undef _GLIBCXX_USE_CXX11_ABI -+#define _GLIBCXX_USE_CXX11_ABI 0 -+#include -+ -+void -+test01(std::string* s) -+{ -+ s->~basic_string(); -+} -diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/86138.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/86138.cc -new file mode 100644 -index 00000000000..d77922976d0 ---- /dev/null -+++ b/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/86138.cc -@@ -0,0 +1,30 @@ -+// Copyright (C) 2018 Free Software Foundation, Inc. -+// -+// This file is part of the GNU ISO C++ Library. This library is free -+// software; you can redistribute it and/or modify it under the -+// terms of the GNU General Public License as published by the -+// Free Software Foundation; either version 3, or (at your option) -+// any later version. -+ -+// This library is distributed in the hope that it will be useful, -+// but WITHOUT ANY WARRANTY; without even the implied warranty of -+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+// GNU General Public License for more details. -+ -+// You should have received a copy of the GNU General Public License along -+// with this library; see the file COPYING3. If not see -+// . -+ -+// { dg-options "-std=gnu++17" } -+// { dg-do compile { target c++1z } } -+// { dg-final { scan-assembler-not "_ZNSbIwSt11char_traitsIwESaIwEE4_Rep20_S_empty_rep_storageE:" } } -+ -+#undef _GLIBCXX_USE_CXX11_ABI -+#define _GLIBCXX_USE_CXX11_ABI 0 -+#include -+ -+void -+test01(std::wstring* s) -+{ -+ s->~basic_string(); -+} --- -2.18.0 -