diff options
author | Brad King <brad.king@kitware.com> | 2015-07-02 13:20:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-07-02 13:20:14 (GMT) |
commit | a33fb493de9098a22c4a3bd58a49e32ee156f0f8 (patch) | |
tree | 8a5f2d9e724f44ee666d70c4af62c3fae52a13e7 /Modules/Compiler/XL-C.cmake | |
parent | 3ae8e84ef5c94e5fa250b4e2466aa6632a233bb2 (diff) | |
download | CMake-a33fb493de9098a22c4a3bd58a49e32ee156f0f8.zip CMake-a33fb493de9098a22c4a3bd58a49e32ee156f0f8.tar.gz CMake-a33fb493de9098a22c4a3bd58a49e32ee156f0f8.tar.bz2 |
XL: Drop -qalias=noansi from default C flags
This was added without explanation by commit v2.8.2~1138 (Add initial XL
C compiler flags for safer builds, 2009-09-30). It is not consistent
with our default C++ flags for XL and disables several optimizations, so
drop it from our default flags for C.
Suggested-by: Todd Gamblin <tgamblin@llnl.gov>
Diffstat (limited to 'Modules/Compiler/XL-C.cmake')
-rw-r--r-- | Modules/Compiler/XL-C.cmake | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/Compiler/XL-C.cmake b/Modules/Compiler/XL-C.cmake index 09a5529..97dd017 100644 --- a/Modules/Compiler/XL-C.cmake +++ b/Modules/Compiler/XL-C.cmake @@ -4,6 +4,5 @@ set(CMAKE_C_FLAGS_RELEASE_INIT "${CMAKE_C_FLAGS_RELEASE_INIT} -DNDEBUG") set(CMAKE_C_FLAGS_MINSIZEREL_INIT "${CMAKE_C_FLAGS_MINSIZEREL_INIT} -DNDEBUG") # -qthreaded = Ensures that all optimizations will be thread-safe -# -qalias=noansi = Turns off type-based aliasing completely (safer optimizer) # -qhalt=e = Halt on error messages (rather than just severe errors) -set(CMAKE_C_FLAGS_INIT "-qthreaded -qalias=noansi -qhalt=e") +set(CMAKE_C_FLAGS_INIT "-qthreaded -qhalt=e") |