summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-12-12 14:28:19 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-12-12 14:28:19 +0000
commit9c971f93296a74aab9ad1cde3c878b84b5d93290 (patch)
tree2b65cf17e1ed02f06131ea1a23f5dacefdac033e /llvm
parent4204c1acc611bdd06250036d04a940745d6eb6c5 (diff)
downloadbcm5719-llvm-9c971f93296a74aab9ad1cde3c878b84b5d93290.tar.gz
bcm5719-llvm-9c971f93296a74aab9ad1cde3c878b84b5d93290.zip
Disable --icf=safe to avoid a bug.
Thanks to Sameer Sahasrabuddhe for the report! llvm-svn: 224123
Diffstat (limited to 'llvm')
-rw-r--r--llvm/cmake/modules/AddLLVM.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index 8be70a54d99..c8f1083be1f 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -161,7 +161,9 @@ function(add_link_opts target_name)
if(LLVM_LINKER_IS_GOLD)
# With gold gc-sections is always safe.
set_property(TARGET ${target_name} APPEND_STRING PROPERTY
- LINK_FLAGS " -Wl,--gc-sections -Wl,--icf=safe")
+ LINK_FLAGS " -Wl,--gc-sections")
+ # Note that there is a bug with -Wl,--icf=safe so it is not safe
+ # to enable. See https://sourceware.org/bugzilla/show_bug.cgi?id=17704.
endif()
if(NOT LLVM_NO_DEAD_STRIP)
OpenPOWER on IntegriCloud