summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
012e885)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@716
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
## with individual -Wno-xxx flags, unlike -Wall
if test "x$enable_compile_warnings" = "xyes"; then
warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations \
## with individual -Wno-xxx flags, unlike -Wall
if test "x$enable_compile_warnings" = "xyes"; then
warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations \
- -finline-functions -Wshadow -Wpointer-arith -Wchar-subscripts -Wcomment\
- -Wformat=2 -Wno-unused-variable -Wno-unused-function -Wwrite-strings -Werror"
+ -finline-functions -Wshadow -Wpointer-arith -Wchar-subscripts -Wcomment \
+ -Wformat=2 -Wno-unused-variable -Wno-unused-function -Wwrite-strings \
+ -Werror"
optCFLAGS="-ffast-math -funroll-loops -fno-strict-aliasing"
case " $CFLAGS " in
*-O*) ;;
optCFLAGS="-ffast-math -funroll-loops -fno-strict-aliasing"
case " $CFLAGS " in
*-O*) ;;
+ *) optCFLAGS="$optCFLAGS -03" ;;
- AC_MSG_RESULT($complCFLAGS)
+ AC_MSG_RESULT($optCFLAGS)
# Take the right flags
if test "x$cflags_set" != "xyes" ; then
if test "x$enable_iso_c" != "xno"; then
# Take the right flags
if test "x$cflags_set" != "xyes" ; then
if test "x$enable_iso_c" != "xno"; then
- CFLAGS="$CFLAGS $complCFLAGS"
+ CFLAGS="$CFLAGS $complCFLAGS $optCFLAGS"
fi
if test "x$enable_compile_warnings" != "xno" ; then
fi
if test "x$enable_compile_warnings" != "xno" ; then
- CFLAGS="$CFLAGS $warnCFLAGS"
+ CFLAGS="$CFLAGS $warnCFLAGS $optCFLAGS"