+2014-12-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix MinGW compilation.
+       * compile/compile.c (get_compile_file_tempdir): Call error if
+       !HAVE_MKDTEMP.
+       * config.in: Regenerate.
+       * configure: Regenerate.
+       * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
+
 2014-12-17  Doug Evans  <xdje42@gmail.com>
 
        * valops.c (value_maybe_namespace_elt): Remove redundant call to
 
 
   strcpy (tname, TEMPLATE);
 #undef TEMPLATE
+#ifdef HAVE_MKDTEMP
   tempdir_name = mkdtemp (tname);
+#else
+  error (_("Command not supported on this host."));
+#endif
   if (tempdir_name == NULL)
     perror_with_name (_("Could not make temporary directory"));
 
 
 /* Define to 1 if you have the <memory.h> header file. */
 #undef HAVE_MEMORY_H
 
+/* Define to 1 if you have the `mkdtemp' function. */
+#undef HAVE_MKDTEMP
+
 /* Define to 1 if you have a working `mmap' system call. */
 #undef HAVE_MMAP
 
 
                sigaction sigprocmask sigsetmask socketpair \
                ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
                setrlimit getrlimit posix_madvise waitpid \
-               ptrace64 sigaltstack
+               ptrace64 sigaltstack mkdtemp
 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"
 
                sigaction sigprocmask sigsetmask socketpair \
                ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
                setrlimit getrlimit posix_madvise waitpid \
-               ptrace64 sigaltstack])
+               ptrace64 sigaltstack mkdtemp])
 AM_LANGINFO_CODESET
 GDB_AC_COMMON
 
 
+2014-12-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix MinGW compilation.
+       * gdb.compile/compile-ops.exp: Update untested message if
+       !skip_compile_feature_tests.
+       * gdb.compile/compile-setjmp.exp: Likewise.
+       * gdb.compile/compile-tls.exp: Likewise.
+       * gdb.compile/compile.exp: Likewise.
+       * lib/gdb.exp (skip_compile_feature_tests): Check also "Command not
+       supported on this host".
+
 2014-12-16  Doug Evans  <xdje42@gmail.com>
 
        * boards/stabs.exp: New file.
 
 }
 
 if {[skip_compile_feature_tests]} {
-    untested "could not find libcc1 shared library"
+    untested "compile command not supported (could not find libcc1 shared library?)"
     return -1
 }
 
 
 }
 
 if {[skip_compile_feature_tests]} {
-    untested "could not find libcc1 shared library"
+    untested "compile command not supported (could not find libcc1 shared library?)"
     return -1
 }
 
 
 }
 
 if {[skip_compile_feature_tests]} {
-    untested "could not find libcc1 shared library"
+    untested "compile command not supported (could not find libcc1 shared library?)"
     return -1
 }
 
 
 }
 
 if {[skip_compile_feature_tests]} {
-    untested "could not find libcc1 shared library"
+    untested "compile command not supported (could not find libcc1 shared library?)"
     return -1
 }
 
 
        "Could not load libcc1.*\r\n$gdb_prompt $" {
            set result 1
        }
+       -re "Command not supported on this host\\..*\r\n$gdb_prompt $" {
+           set result 1
+       }
        -re "\r\n$gdb_prompt $" {
        }
     }