summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorknarf <knarf@17b73243-c579-4c4c-a9d2-2d5706c11dac>2013-10-28 17:40:17 +0000
committerknarf <knarf@17b73243-c579-4c4c-a9d2-2d5706c11dac>2013-10-28 17:40:17 +0000
commit919238ad36d8e29c8329e96ce1e417d16fc8b530 (patch)
tree0836cd104cfe3d98652ff034221a0d5839756bd3
parent2d2f8abcb713638b70f46539ee0bc0bd39497668 (diff)
disable restrict for all versions past 20121010, and add comment why including which versions have actually been tested.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@5049 17b73243-c579-4c4c-a9d2-2d5706c11dac
-rw-r--r--lib/make/cctk_Config.h.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/make/cctk_Config.h.in b/lib/make/cctk_Config.h.in
index d20e6ad2..9bbff426 100644
--- a/lib/make/cctk_Config.h.in
+++ b/lib/make/cctk_Config.h.in
@@ -170,9 +170,13 @@
#undef CCTK_REAL4
/* Disable 'restrict' for compiler versions known to be buggy */
+/* Note that at the time of writing this comment, only versions up to and
+ * including 20130313 have been tested. Newer versions might actually not
+ * show this bug and the workaround could then be removed. At the moment
+ * the workaround is enabled for any version >= 20121010 to be on the
+ * safe side.
# if (defined __INTEL_COMPILER && \
__INTEL_COMPILER_BUILD_DATE >= 20121010 && \
- __INTEL_COMPILER_BUILD_DATE <= 20130313 && \
!defined CCTK_INTEL_COMPILER_DONT_DISABLE_RESTRICT )
#define CCTK_DISABLE_RESTRICT 1
#endif