mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
new option: --enable-strict-aliasing which adds -fstrict-aliasing to the
gcc CFLAGS when optimizing. This does /very/ nice things to the progs code and seems to work in general (which means gcc 2.96 shouldsn't be such a cow), but I am not yet confident enough to enable it by default (would probably need gcc version chedking for it anyway).
This commit is contained in:
parent
025d520522
commit
60289d86e4
1 changed files with 5 additions and 0 deletions
|
@ -1109,6 +1109,10 @@ if test "x$optimize" = xyes; then
|
||||||
BUILD_TYPE="$BUILD_TYPE Optimize"
|
BUILD_TYPE="$BUILD_TYPE Optimize"
|
||||||
if test "x$GCC" = xyes; then
|
if test "x$GCC" = xyes; then
|
||||||
CFLAGS="$CFLAGS -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations"
|
CFLAGS="$CFLAGS -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations"
|
||||||
|
AC_ARG_ENABLE(strict-aliasing,
|
||||||
|
[ --enable-strict-aliasing enable the -fstrict-aliasing ooption of gcc],
|
||||||
|
CFLAGS="$CFLAGS -fstrict-aliasing"
|
||||||
|
)
|
||||||
AC_MSG_CHECKING(for special compiler settings)
|
AC_MSG_CHECKING(for special compiler settings)
|
||||||
case "${host_cpu}" in
|
case "${host_cpu}" in
|
||||||
i?86)
|
i?86)
|
||||||
|
@ -1734,6 +1738,7 @@ AC_MSG_RESULT([
|
||||||
IPv6 networking : $NETTYPE_IPV6
|
IPv6 networking : $NETTYPE_IPV6
|
||||||
Compression support: $HAVE_ZLIB
|
Compression support: $HAVE_ZLIB
|
||||||
Compiler version : $CCVER
|
Compiler version : $CCVER
|
||||||
|
Compiler flags : $CFLAGS
|
||||||
|
|
||||||
Shared game data directory: $sharepath
|
Shared game data directory: $sharepath
|
||||||
Per-user game data directory: $userpath
|
Per-user game data directory: $userpath
|
||||||
|
|
Loading…
Reference in a new issue