1
1

Remove type punning warnings; tell gcc that it cannot assume that

strict anti-aliasing can occur

This commit was SVN r3702.
Этот коммит содержится в:
Jeff Squyres 2004-12-05 21:33:46 +00:00
родитель 76c9f486e5
Коммит 1adf5cb3a0

Просмотреть файл

@ -67,13 +67,21 @@ if test "$GCC" = "yes" -a "$WANT_PICKY_COMPILER" = 1; then
unset add
fi
# See if this version of gcc allows -finline-functions
# See if this version of gcc allows -finline-functions and/or
# -fno-strict-aliasing
if test "$GCC" = "yes"; then
CFLAGS_orig="$CFLAGS"
CFLAGS="$CFLAGS -finline-functions"
CFLAGS="$CFLAGS_orig -finline-functions"
add=
AC_TRY_COMPILE([], [], add=" -finline-functions")
CFLAGS="$CFLAGS_orig$add"
CFLAGS="$CFLAGS_orig -fno-strict-aliasing"
add=
AC_TRY_COMPILE([], [], add=" -fno-strict-aliasing")
CFLAGS="$CFLAGS_orig$add"
OMPI_UNIQ(CFLAGS)
AC_MSG_WARN([$add has been added to CFLAGS])
unset add