summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-04-30 17:12:23 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-04-30 17:12:23 +0000
commite96fcbb08501b4060a419c954474bde6b064d5ca (patch)
tree4163e30f0173bcf0e34e7a733305e1a375aa0dda
parent2073fcac2dff506caab8e6a0ac6952a7b83fa2a9 (diff)
downloadbcm5719-llvm-e96fcbb08501b4060a419c954474bde6b064d5ca.tar.gz
bcm5719-llvm-e96fcbb08501b4060a419c954474bde6b064d5ca.zip
Default OPTIMIZE_OPTION to -O2 on FreeBSD, at the request of the Clang/FreeBSD
folks. LLVM/Clang is miscompiled by the standard GCC at -O3. llvm-svn: 102719
-rw-r--r--llvm/autoconf/configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/autoconf/configure.ac b/llvm/autoconf/configure.ac
index 49a140cdc4a..3b4019658cc 100644
--- a/llvm/autoconf/configure.ac
+++ b/llvm/autoconf/configure.ac
@@ -728,6 +728,7 @@ AC_MSG_CHECKING([optimization flags])
case "$withval" in
default)
case "$llvm_cv_os_type" in
+ FreeBSD) optimize_option=-O2 ;;
MingW) optimize_option=-O2 ;;
*) optimize_option=-O3 ;;
esac ;;
OpenPOWER on IntegriCloud