Skip to content

Commit

Permalink
Fixed|GCC: Crashes in Ubuntu 16.10 (GCC 6.2.0 20161005)
Browse files Browse the repository at this point in the history
Disabling tree FRE optimization seems to help.
  • Loading branch information
skyjake committed Oct 20, 2016
1 parent 3dc4b2b commit 671947b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doomsday/cmake/PlatformUnix.cmake
Expand Up @@ -12,3 +12,10 @@ add_definitions (
-DDENG_BASE_DIR="${CMAKE_INSTALL_PREFIX}/${DENG_INSTALL_DATA_DIR}"
-DDENG_LIBRARY_DIR="${CMAKE_INSTALL_PREFIX}/${DENG_INSTALL_PLUGIN_DIR}"
)

if (CMAKE_COMPILER_IS_GNUCXX)
# The tree FRE optimization causes crashes with GCC 6 (Yakkety).
append_unique (CMAKE_CXX_FLAGS_RELEASE -fno-tree-fre)
append_unique (CMAKE_CXX_FLAGS_RELWITHDEBINFO -fno-tree-fre)
append_unique (CMAKE_CXX_FLAGS_MINSIZEREL -fno-tree-fre)
endif ()

0 comments on commit 671947b

Please sign in to comment.