llvm.org GIT mirror llvm / 195d2de
configure: Fix default value for optimize_option, I messed up the test condition in r86005 and unintentionally changed the default from -O3 to -O2. - It's odd the things automated perf testing turns up! :) - Also, the configure diff is messed up slightly. It looks like someone either didn't regenerate configure correctly (or I didn't), or autoconf has some funnyness in it. Eric, any ideas? This has been at -O2 for so long, that I am slightly nervous that this change will uncover miscompiles of LLVM on other systems. If that is the case, I think we should just set the default universally at -O3, and let developers/vendors use -O3 if they want it and have tested it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100941 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 9 years ago
2 changed file(s) with 13 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
727727 case "$withval" in
728728 default)
729729 case "$llvm_cv_os_type" in
730 MingW) optimize_option=-O3 ;;
731 *) optimize_option=-O2 ;;
730 MingW) optimize_option=-O2 ;;
731 *) optimize_option=-O3 ;;
732732 esac ;;
733733 *) optimize_option="$withval" ;;
734734 esac
1313 ## M4sh Initialization. ##
1414 ## --------------------- ##
1515
16 # Be Bourne compatible.
16 # Be Bourne compatible
1717 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1818 emulate sh
1919 NULLCMD=:
21652165 llvm_cv_no_link_all_option="-Wl,-noall_load"
21662166 llvm_cv_os_type="Darwin"
21672167 llvm_cv_platform_type="Unix" ;;
2168 *-*-minix*)
2169 llvm_cv_link_all_option="-Wl,-all_load"
2170 llvm_cv_no_link_all_option="-Wl,-noall_load"
2171 llvm_cv_os_type="Minix"
2172 llvm_cv_platform_type="Unix" ;;
21682173 *-*-freebsd*)
21692174 llvm_cv_link_all_option="-Wl,--whole-archive"
21702175 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
22592264 llvm_cv_target_os_type="Cygwin" ;;
22602265 *-*-darwin*)
22612266 llvm_cv_target_os_type="Darwin" ;;
2267 *-*-minix*)
2268 llvm_cv_target_os_type="Minix" ;;
22622269 *-*-freebsd*)
22632270 llvm_cv_target_os_type="FreeBSD" ;;
22642271 *-*-openbsd*)
51615168 case "$withval" in
51625169 default)
51635170 case "$llvm_cv_os_type" in
5164 MingW) optimize_option=-O3 ;;
5165 *) optimize_option=-O2 ;;
5171 MingW) optimize_option=-O2 ;;
5172 *) optimize_option=-O3 ;;
51665173 esac ;;
51675174 *) optimize_option="$withval" ;;
51685175 esac
1115511162 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1115611163 lt_status=$lt_dlunknown
1115711164 cat > conftest.$ac_ext <
11158 #line 11159 "configure"
11165 #line 11166 "configure"
1115911166 #include "confdefs.h"
1116011167
1116111168 #if HAVE_DLFCN_H