From 82c51a8ac6c4a8fba127402d96f8269492f3a115 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 2 Apr 2015 13:16:23 -0400 Subject: 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. --- Utilities/cmliblzma/liblzma/lzma/lzma_encoder_optimum_normal.c | 3 +++ 1 file changed, 3 insertions(+) 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" -- cgit v0.12