GCC's -fstrict-aliasing makes code smaller, and it doesn't seem to go against

ECL's semantics.
This commit is contained in:
jjgarcia 2002-11-11 10:30:41 +00:00
parent bd2128aa27
commit e7f462c87e
2 changed files with 11 additions and 0 deletions

4
src/configure vendored
View file

@ -3944,6 +3944,10 @@ else
ECL_CC="${CXX}"
fi
if test "${GCC}" = "yes"; then
CFLAGS="${CFLAGS} -fstrict-aliasing"
fi
echo "$as_me:$LINENO: checking whether stack growns downwards" >&5
echo $ECHO_N "checking whether stack growns downwards... $ECHO_C" >&6

View file

@ -223,6 +223,13 @@ else
ECL_CC="${CXX}"
fi
dnl ---------------------------------------------------------------------
dnl This flag is an optimization for GNU
dnl ---------------------------------------------------------------------
if test "${GCC}" = "yes"; then
CFLAGS="${CFLAGS} -fstrict-aliasing"
fi
dnl ----------------------------------------------------------------------
dnl Study the call conventions
dnl