summaryrefslogtreecommitdiffstats
path: root/Utilities/cmliblzma
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-04-02 17:16:23 (GMT)
committerBrad King <brad.king@kitware.com>2015-04-02 17:17:57 (GMT)
commit82c51a8ac6c4a8fba127402d96f8269492f3a115 (patch)
tree8732d8a693c68a36949af04072d4baf29b1d966d /Utilities/cmliblzma
parentaf61d6cb60a38069fb82f54bd7f2eb2b798bf4dc (diff)
downloadCMake-82c51a8ac6c4a8fba127402d96f8269492f3a115.zip
CMake-82c51a8ac6c4a8fba127402d96f8269492f3a115.tar.gz
CMake-82c51a8ac6c4a8fba127402d96f8269492f3a115.tar.bz2
liblzma: Disable XL compiler optimizations in one source to avoid crash
Somehow optimizations of lzma_lzma_optimum_normal by the IBM XL C compiler cause it to crash. Simply disable optimizations of this source file with a pragma.
Diffstat (limited to 'Utilities/cmliblzma')
-rw-r--r--Utilities/cmliblzma/liblzma/lzma/lzma_encoder_optimum_normal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Utilities/cmliblzma/liblzma/lzma/lzma_encoder_optimum_normal.c b/Utilities/cmliblzma/liblzma/lzma/lzma_encoder_optimum_normal.c
index d3a6348..fc54d8d 100644
--- a/Utilities/cmliblzma/liblzma/lzma/lzma_encoder_optimum_normal.c
+++ b/Utilities/cmliblzma/liblzma/lzma/lzma_encoder_optimum_normal.c
@@ -8,6 +8,9 @@
// You can do whatever you want with this file.
//
///////////////////////////////////////////////////////////////////////////////
+#if defined(__IBMC__)
+# pragma options optimize=0
+#endif
#include "lzma_encoder_private.h"
#include "fastpos.h"