Changeset: 8ebbfd337e71 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8ebbfd337e71
Modified Files:
buildtools/conf/MonetDB.m4
Branch: Oct2010
Log Message:
use clang-supported optimization options with CC=clang & --enable-optimize
diffs (36 lines):
diff -r 5c48688e711b -r 8ebbfd337e71 buildtools/conf/MonetDB.m4
--- a/buildtools/conf/MonetDB.m4 Tue Dec 07 23:26:46 2010 +0100
+++ b/buildtools/conf/MonetDB.m4 Wed Dec 08 00:44:33 2010 +0100
@@ -1804,7 +1804,11 @@
JAVACFLAGS="`echo "$JAVACFLAGS" | sed -e 's| -g | |g' -e 's| -g:[[a-z]]* |
|g' -e 's|^ ||' -e 's| $||'`"
dnl Optimization flags
JAVACFLAGS="$JAVACFLAGS -g:none -O"
- if test "x$GCC" = xyes; then
+ case "$GCC-$CC" in
+ yes-*clang*)
+ CFLAGS="$CFLAGS -O3 -fomit-frame-pointer
-finline-functions"
+ ;;
+ yes-*)
dnl -fomit-frame-pointer crashes memprof
case "$host-$gcc_ver" in
x86_64-*-*-3.[[2-9]]*|i*86-*-*-3.[[2-9]]*|x86_64-*-*-4.*|i*86-*-*-4.*)
@@ -1863,7 +1867,8 @@
;;
*) CFLAGS="$CFLAGS -O6 -fomit-frame-pointer
-finline-functions";;
esac
- else
+ ;;
+ *)
case "$host-$icc_ver" in
dnl handle non-Intel compilers ($icc_ver=""), first
*solaris*-) CFLAGS="$CFLAGS -xO5"
@@ -1933,7 +1938,8 @@
dnl hence, we use only "-O2", here.
;;
esac
- fi
+ ;;
+ esac
fi
fi
AC_SUBST(CFLAGS_NO_OPT)
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list