[llvm-commits] [Review request][Win64] Patches for Mingw-w64(and mingw64-clang)

NAKAMURA Takumi geek4civic at gmail.com
Mon Jan 31 16:28:59 PST 2011


Oscar, I am afraid of any misunderstanding.
I am sorry, I mistook to compress ./configure and config.h.in together
as "Regenerated".

I attach 3 generated config.h.in(s).

* 0005-include-llvm-Config-config.h.in-Regenerate.patch.txt
  - Corresponds to;
    * 0004-autoconf-define-HAVE_DECL_SETINFORMATIONJOBOBJEC.patch.txt
    * 0005-Regenerate-configure-and-config.h.in.patch.txt.gz

* 0010-include-llvm-Config-config.h.in-Regenerate.patch.txt
  - Corresponds to;
    * 0008-Autoconf-may-check-symbols-in-libgcc.a-for-JIT-o.patch.txt
    * 0009-Regenerate-configure-and-include-llvm-Config-con.patch.txt.gz

* 0015-include-llvm-Config-config.h.in-Regenerate.patch.txt
  - Corresponds to;
    * 0012-autoconf-Seek-strerror_s-with-AC_CHECK_DECLS.patch.txt
    * 0013-Regenerate-configure-and-include-llvm-Config-con.patch.txt.gz


2011/2/1 Óscar Fuentes <ofv at wanadoo.es>:
>> +/* Define to 1 if you have the declaration of `SetInformationJobObject', and
>> +   to 0 if you don't. */
>
> The above should read:
>
> /* Define to 1 if you have the declaration of `SetInformationJobObject'. */
>
> Same for other macros you introduced into config.h.cmake.

They are copypasto from config.h.in.
Autoconf's AC_CHECK_DECL has behavior, IIRC,

  - defined as 1 if the decl was found
  - defined as 0 if the decl was not found
  - undefined if the test was not executed

I will re-investigate behavior of CMake's check_{function|symbol}_exists.

Thank you, ...Takumi
-------------- next part --------------
From dab81dc13b2c0d91d5ca06f01530baaa73f1824f Mon Sep 17 00:00:00 2001
From: NAKAMURA Takumi <geek4civic at gmail.com>
Date: Tue, 1 Feb 2011 09:09:41 +0900
Subject: [PATCH 05/18] include/llvm/Config/config.h.in: Regenerate.

---
 include/llvm/Config/config.h.in |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/llvm/Config/config.h.in b/include/llvm/Config/config.h.in
index b38ee62..66fd5d2 100644
--- a/include/llvm/Config/config.h.in
+++ b/include/llvm/Config/config.h.in
@@ -78,6 +78,10 @@
 /* Define to 1 if you have the <ctype.h> header file. */
 #undef HAVE_CTYPE_H
 
+/* Define to 1 if you have the declaration of `SetInformationJobObject', and
+   to 0 if you don't. */
+#undef HAVE_DECL_SETINFORMATIONJOBOBJECT
+
 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
    */
 #undef HAVE_DIRENT_H
-- 
1.7.1.GIT

-------------- next part --------------
From 73ee829f14eed71758afc6343dd2dd1ef5d0ca54 Mon Sep 17 00:00:00 2001
From: NAKAMURA Takumi <geek4civic at gmail.com>
Date: Tue, 1 Feb 2011 09:10:50 +0900
Subject: [PATCH 10/18] include/llvm/Config/config.h.in: Regenerate.

---
 include/llvm/Config/config.h.in |   48 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 48 insertions(+), 0 deletions(-)

diff --git a/include/llvm/Config/config.h.in b/include/llvm/Config/config.h.in
index 66fd5d2..2688795 100644
--- a/include/llvm/Config/config.h.in
+++ b/include/llvm/Config/config.h.in
@@ -474,9 +474,57 @@
 /* Define if the xdot.py program is available */
 #undef HAVE_XDOT_PY
 
+/* Have host's _alloca */
+#undef HAVE__ALLOCA
+
+/* Have host's __alloca */
+#undef HAVE___ALLOCA
+
+/* Have host's __ashldi3 */
+#undef HAVE___ASHLDI3
+
+/* Have host's __ashrdi3 */
+#undef HAVE___ASHRDI3
+
+/* Have host's __chkstk */
+#undef HAVE___CHKSTK
+
+/* Have host's __cmpdi2 */
+#undef HAVE___CMPDI2
+
+/* Have host's __divdi3 */
+#undef HAVE___DIVDI3
+
 /* Define to 1 if you have the `__dso_handle' function. */
 #undef HAVE___DSO_HANDLE
 
+/* Have host's __fixdfdi */
+#undef HAVE___FIXDFDI
+
+/* Have host's __fixsfdi */
+#undef HAVE___FIXSFDI
+
+/* Have host's __floatdidf */
+#undef HAVE___FLOATDIDF
+
+/* Have host's __lshrdi3 */
+#undef HAVE___LSHRDI3
+
+/* Have host's __main */
+#undef HAVE___MAIN
+
+/* Have host's __moddi3 */
+#undef HAVE___MODDI3
+
+/* Have host's __udivdi3 */
+#undef HAVE___UDIVDI3
+
+/* Have host's __umoddi3 */
+#undef HAVE___UMODDI3
+
+/* Have host's ___chkstk */
+#undef HAVE____CHKSTK
+
 /* Linker version detected at compile time. */
 #undef HOST_LINK_VERSION
 
-- 
1.7.1.GIT

-------------- next part --------------
From ffa6deabe4490424e414724587b490a446dde186 Mon Sep 17 00:00:00 2001
From: NAKAMURA Takumi <geek4civic at gmail.com>
Date: Tue, 1 Feb 2011 09:12:36 +0900
Subject: [PATCH 15/18] include/llvm/Config/config.h.in: Regenerate.

---
 include/llvm/Config/config.h.in |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/llvm/Config/config.h.in b/include/llvm/Config/config.h.in
index 2688795..1f83d99 100644
--- a/include/llvm/Config/config.h.in
+++ b/include/llvm/Config/config.h.in
@@ -82,6 +82,10 @@
    to 0 if you don't. */
 #undef HAVE_DECL_SETINFORMATIONJOBOBJECT
 
+/* Define to 1 if you have the declaration of `strerror_s', and to 0 if you
+   don't. */
+#undef HAVE_DECL_STRERROR_S
+
 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
    */
 #undef HAVE_DIRENT_H
@@ -388,9 +392,6 @@
 /* Define to 1 if you have the `strerror_r' function. */
 #undef HAVE_STRERROR_R
 
-/* Define to 1 if you have the `strerror_s' function. */
-#undef HAVE_STRERROR_S
-
 /* Define to 1 if you have the <strings.h> header file. */
 #undef HAVE_STRINGS_H
 
-- 
1.7.1.GIT



More information about the llvm-commits mailing list