[Cmake-commits] CMake branch, next, updated. v3.1.0-1461-g1fac291

2015-01-01 Thread Stephen Kelly
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project CMake.

The branch, next has been updated
   via  1fac2911e1008224c9c0f0676e0e2b90d0cc25d4 (commit)
   via  998e9c10943ef361785e6f15cab1fa61172b1c24 (commit)
   via  ec31926d24ac2cf9a8aef4cfbcbeaaca0c99b717 (commit)
  from  03a66cff114687d0d9e71a289b05a66259853d47 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=1fac2911e1008224c9c0f0676e0e2b90d0cc25d4
commit 1fac2911e1008224c9c0f0676e0e2b90d0cc25d4
Merge: 03a66cf 998e9c1
Author: Stephen Kelly steve...@gmail.com
AuthorDate: Thu Jan 1 12:48:39 2015 -0500
Commit: CMake Topic Stage kwro...@kitware.com
CommitDate: Thu Jan 1 12:48:39 2015 -0500

Merge topic 'WCDH-thread_local-portability' into next

998e9c10 WCDH: Add feature portability for thread_local.
ec31926d CMake Nightly Date Stamp


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=998e9c10943ef361785e6f15cab1fa61172b1c24
commit 998e9c10943ef361785e6f15cab1fa61172b1c24
Author: Stephen Kelly steve...@gmail.com
AuthorDate: Thu Jan 1 17:56:01 2015 +0100
Commit: Stephen Kelly steve...@gmail.com
CommitDate: Thu Jan 1 18:20:10 2015 +0100

WCDH: Add feature portability for thread_local.

AppleClang does not support the cxx_thread_local feature, even
though it is based on a Clang version which does support the
feature.

 http://stackoverflow.com/a/23850891/2428389

A possible reason for that is that thread_local might be used as
a variable in existing Apple SDK headers.

Extend the WriteCompilerDetectionHeader module to generate a define
for that feature with portability fallbacks.  For the avoidance of
making it easy to write code which looks correct but which has odd
runtime behavior, don't set the define symbol at all if no
equivalent keyword is known.

diff --git a/Help/release/dev/WCDH-thread_local.rst 
b/Help/release/dev/WCDH-thread_local.rst
new file mode 100644
index 000..44516a7
--- /dev/null
+++ b/Help/release/dev/WCDH-thread_local.rst
@@ -0,0 +1,7 @@
+WriteCompilerDetectionHeader thread_local portability
+-
+
+* The :module:`WriteCompilerDetectionHeader` module learned to
+  create a define for portability of the cxx_thread_local feature. The define
+  expands to either the C++11 ``thread_local`` keyword, or a
+  pre-standardization compiler-specific equivalent, as appropriate.
diff --git a/Modules/WriteCompilerDetectionHeader.cmake 
b/Modules/WriteCompilerDetectionHeader.cmake
index 36b9706..d61358f 100644
--- a/Modules/WriteCompilerDetectionHeader.cmake
+++ b/Modules/WriteCompilerDetectionHeader.cmake
@@ -194,6 +194,7 @@
 # ``cxx_static_assert``  ``PREFIX_STATIC_ASSERT_MSG``   
``static_assert``
 # ``cxx_attribute_deprecated``   ``PREFIX_DEPRECATED``  
``[[deprecated]]``
 # ``cxx_attribute_deprecated``   ``PREFIX_DEPRECATED_MSG``  
``[[deprecated]]``
+# ``cxx_thread_local``   ``PREFIX_THREAD_LOCAL``
``thread_local``
 # =  
=
 #
 # A use-case which arises with such deprecation macros is the deprecation
@@ -573,6 +574,20 @@ function(write_compiler_detection_header
 #  endif
 \n)
   endif()
+  if (feature STREQUAL cxx_thread_local)
+set(def_value ${prefix_arg}_THREAD_LOCAL)
+set(file_content ${file_content}
+#  if ${def_name}
+#define ${def_value} thread_local
+#  elif ${prefix_arg}_COMPILER_IS_GNU || ${prefix_arg}_COMPILER_IS_Clang || 
${prefix_arg}_COMPILER_IS_AppleClang
+#define ${def_value} __thread
+#  elif ${prefix_arg}_COMPILER_IS_MSVC
+#define ${def_value} __declspec(thread)
+#  else
+// ${def_value} not defined for this configuration.
+#  endif
+\n)
+  endif()
   if (feature STREQUAL cxx_attribute_deprecated)
 set(def_name ${prefix_arg}_${feature_PP})
 set(def_value ${prefix_arg}_DEPRECATED)

---

Summary of changes:
 Help/release/dev/WCDH-thread_local.rst |7 +++
 Modules/WriteCompilerDetectionHeader.cmake |   15 +++
 Source/CMakeVersion.cmake  |2 +-
 3 files changed, 23 insertions(+), 1 deletion(-)
 create mode 100644 Help/release/dev/WCDH-thread_local.rst


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, next, updated. v3.1.0-1452-gc583500

2015-01-01 Thread Stephen Kelly
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project CMake.

The branch, next has been updated
   via  c58350078e22ec7706a0eae99ae2b57950f12328 (commit)
   via  f07d96ccf4c0b09b544efadaac47cd79f9298b89 (commit)
   via  5a8b9437c24e1548ad15ed816e0f252e912812e1 (commit)
  from  a1839ec4124605ff90885bdcae3e06de946747cc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=c58350078e22ec7706a0eae99ae2b57950f12328
commit c58350078e22ec7706a0eae99ae2b57950f12328
Merge: a1839ec f07d96c
Author: Stephen Kelly steve...@gmail.com
AuthorDate: Thu Jan 1 06:46:46 2015 -0500
Commit: CMake Topic Stage kwro...@kitware.com
CommitDate: Thu Jan 1 06:46:46 2015 -0500

Merge topic 'drop-GNU-2.95' into next

f07d96cc Remove workaround for GCC  3 ios_base absence.
5a8b9437 Remove GCC 2.95 support macros in favor of template versions.


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f07d96ccf4c0b09b544efadaac47cd79f9298b89
commit f07d96ccf4c0b09b544efadaac47cd79f9298b89
Author: Stephen Kelly steve...@gmail.com
AuthorDate: Wed Dec 31 18:48:34 2014 +0100
Commit: Stephen Kelly steve...@gmail.com
CommitDate: Thu Jan 1 12:45:54 2015 +0100

Remove workaround for GCC  3 ios_base absence.

diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index c6788d3..e4f5760 100644
--- a/Source/cmStandardIncludes.h
+++ b/Source/cmStandardIncludes.h
@@ -146,11 +146,6 @@ extern int putenv (char *__string) __THROW;
 #define for if(false) {} else for
 #endif
 
-// Provide std::ios_base on ancient GCC 2.9x
-#if defined(__GNUC__)  __GNUC__  3
-namespace std { typedef ios ios_base; }
-#endif
-
 // check for the 720 compiler on the SGI
 // which has some strange properties that I don't think are worth
 // checking for in a general way in configure

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=5a8b9437c24e1548ad15ed816e0f252e912812e1
commit 5a8b9437c24e1548ad15ed816e0f252e912812e1
Author: Stephen Kelly steve...@gmail.com
AuthorDate: Wed Dec 31 18:47:37 2014 +0100
Commit: Stephen Kelly steve...@gmail.com
CommitDate: Thu Jan 1 12:44:11 2015 +0100

Remove GCC 2.95 support macros in favor of template versions.

GCC  3 is no longer supported as a host compiler.

diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index 6b85634..c6788d3 100644
--- a/Source/cmStandardIncludes.h
+++ b/Source/cmStandardIncludes.h
@@ -393,20 +393,6 @@ inline bool cmHasLiteralSuffixImpl(const char* str1,
   return len = N  strcmp(str1 + len - N, str2) == 0;
 }
 
-#if defined(__GNUC__)  __GNUC__  3
-
-#define cmArrayBegin(a) a
-#define cmArraySize(a) (sizeof(a)/sizeof(*a))
-#define cmArrayEnd(a) a + cmArraySize(a)
-
-#define cmHasLiteralPrefix(STR1, STR2) \
-  cmHasLiteralPrefixImpl(STR1,  STR2 , sizeof(STR2) - 1)
-
-#define cmHasLiteralSuffix(STR1, STR2) \
-  cmHasLiteralSuffixImpl(STR1,  STR2 , sizeof(STR2) - 1)
-
-#else
-
 templatetypename T, size_t N
 const T* cmArrayBegin(const T (a)[N]) { return a; }
 templatetypename T, size_t N
@@ -426,8 +412,6 @@ bool cmHasLiteralSuffix(T str1, const char (str2)[N])
   return cmHasLiteralSuffixImpl(str1, str2, N - 1);
 }
 
-#endif
-
 struct cmStrCmp {
   cmStrCmp(const char *test) : m_test(test) {}
   cmStrCmp(const std::string test) : m_test(test) {}

---

Summary of changes:
 Source/cmStandardIncludes.h |   21 -
 1 file changed, 21 deletions(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, master, updated. v3.1.0-595-g07cbe36

2015-01-01 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project CMake.

The branch, master has been updated
   via  07cbe3640e3afc879a07b6510de4c6e437f43f3e (commit)
   via  f881c6bafaab2c62617259c86f044b05cefe21c2 (commit)
  from  ec31926d24ac2cf9a8aef4cfbcbeaaca0c99b717 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=07cbe3640e3afc879a07b6510de4c6e437f43f3e
commit 07cbe3640e3afc879a07b6510de4c6e437f43f3e
Merge: ec31926 f881c6b
Author: Brad King brad.k...@kitware.com
AuthorDate: Thu Jan 1 13:00:19 2015 -0500
Commit: CMake Topic Stage kwro...@kitware.com
CommitDate: Thu Jan 1 13:00:19 2015 -0500

Merge topic 'copyright-year'

f881c6ba Copyright.txt: Update year range to end in 2015


---

Summary of changes:
 Copyright.txt |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, next, updated. v3.1.0-1463-g1b96758

2015-01-01 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project CMake.

The branch, next has been updated
   via  1b9675850c4df397a517b7c72448f51c9ef717eb (commit)
   via  07cbe3640e3afc879a07b6510de4c6e437f43f3e (commit)
  from  1fac2911e1008224c9c0f0676e0e2b90d0cc25d4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=1b9675850c4df397a517b7c72448f51c9ef717eb
commit 1b9675850c4df397a517b7c72448f51c9ef717eb
Merge: 1fac291 07cbe36
Author: Brad King brad.k...@kitware.com
AuthorDate: Thu Jan 1 13:00:36 2015 -0500
Commit: Brad King brad.k...@kitware.com
CommitDate: Thu Jan 1 13:00:36 2015 -0500

Merge branch 'master' into next


---

Summary of changes:


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, next, updated. v3.1.0-1465-gaf5d9cd

2015-01-01 Thread Stephen Kelly
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project CMake.

The branch, next has been updated
   via  af5d9cd265bea1b7fedffdcd38f94bd9e92687ed (commit)
   via  998ed4ca0a922faf08c7ee3e95f337ff9e8f02c1 (commit)
  from  1b9675850c4df397a517b7c72448f51c9ef717eb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=af5d9cd265bea1b7fedffdcd38f94bd9e92687ed
commit af5d9cd265bea1b7fedffdcd38f94bd9e92687ed
Merge: 1b96758 998ed4c
Author: Stephen Kelly steve...@gmail.com
AuthorDate: Thu Jan 1 16:08:47 2015 -0500
Commit: CMake Topic Stage kwro...@kitware.com
CommitDate: Thu Jan 1 16:08:47 2015 -0500

Merge topic 'record-GNU-5-features' into next

998ed4ca Features: Record cxx_variable_templates for GNU 5.0.


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=998ed4ca0a922faf08c7ee3e95f337ff9e8f02c1
commit 998ed4ca0a922faf08c7ee3e95f337ff9e8f02c1
Author: Stephen Kelly steve...@gmail.com
AuthorDate: Thu Jan 1 22:00:49 2015 +0100
Commit: Stephen Kelly steve...@gmail.com
CommitDate: Thu Jan 1 22:00:49 2015 +0100

Features: Record cxx_variable_templates for GNU 5.0.

diff --git a/Modules/Compiler/GNU-CXX-FeatureTests.cmake 
b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
index 9c98e44..6de06dd 100644
--- a/Modules/Compiler/GNU-CXX-FeatureTests.cmake
+++ b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
@@ -1,8 +1,15 @@
 
 # Reference: http://gcc.gnu.org/projects/cxx0x.html
+# http://gcc.gnu.org/projects/cxx1y.html
 
 set(_cmake_oldestSupported (__GNUC__ * 100 + __GNUC_MINOR__) = 407)
 
+set(GNU50_CXX14 (__GNUC__ * 100 + __GNUC_MINOR__) = 500  __cplusplus = 
201402L)
+set(_cmake_feature_test_cxx_variable_templates ${GNU50_CXX14})
+
+# GNU 4.9 in c++14 mode sets __cplusplus to 201300L, so don't test for the
+# correct value of it below.
+# https://patchwork.ozlabs.org/patch/382470/
 set(GNU49_CXX14 (__GNUC__ * 100 + __GNUC_MINOR__) = 409  __cplusplus  
201103L)
 set(_cmake_feature_test_cxx_contextual_conversions ${GNU49_CXX14})
 set(_cmake_feature_test_cxx_attribute_deprecated ${GNU49_CXX14})

---

Summary of changes:
 Modules/Compiler/GNU-CXX-FeatureTests.cmake |7 +++
 1 file changed, 7 insertions(+)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, master, updated. v3.1.0-596-g24dfa74

2015-01-01 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project CMake.

The branch, master has been updated
   via  24dfa74214bba9ac80e675e0cf7d13d72474f652 (commit)
  from  07cbe3640e3afc879a07b6510de4c6e437f43f3e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=24dfa74214bba9ac80e675e0cf7d13d72474f652
commit 24dfa74214bba9ac80e675e0cf7d13d72474f652
Author: Kitware Robot kwro...@kitware.com
AuthorDate: Fri Jan 2 00:01:08 2015 -0500
Commit: Kitware Robot kwro...@kitware.com
CommitDate: Fri Jan 2 00:01:08 2015 -0500

CMake Nightly Date Stamp

diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake
index e2e79ed..2b99f8a 100644
--- a/Source/CMakeVersion.cmake
+++ b/Source/CMakeVersion.cmake
@@ -1,5 +1,5 @@
 # CMake version number components.
 set(CMake_VERSION_MAJOR 3)
 set(CMake_VERSION_MINOR 1)
-set(CMake_VERSION_PATCH 20150101)
+set(CMake_VERSION_PATCH 20150102)
 #set(CMake_VERSION_RC 1)

---

Summary of changes:
 Source/CMakeVersion.cmake |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits