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 | |
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>
-rw-r--r-- | Modules/Compiler/XL-ASM.cmake | 3 | ||||
-rw-r--r-- | Modules/Compiler/XL-C.cmake | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/Modules/Compiler/XL-ASM.cmake b/Modules/Compiler/XL-ASM.cmake index 07507f9..212179e 100644 --- a/Modules/Compiler/XL-ASM.cmake +++ b/Modules/Compiler/XL-ASM.cmake @@ -1,9 +1,8 @@ set(CMAKE_ASM_VERBOSE_FLAG "-V") # -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_ASM_FLAGS_INIT "-qthreaded -qalias=noansi -qhalt=e -qsourcetype=assembler") +set(CMAKE_ASM_FLAGS_INIT "-qthreaded -qhalt=e -qsourcetype=assembler") set(CMAKE_ASM_FLAGS_DEBUG_INIT "-g") set(CMAKE_ASM_FLAGS_RELEASE_INIT "-O -DNDEBUG") 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") |