mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-25 13:32:01 +00:00
Cleaned up the x86 compiler setting stuff.
This commit is contained in:
parent
cea0adf4ff
commit
1369e3f28c
1 changed files with 3 additions and 16 deletions
19
configure.in
19
configure.in
|
@ -977,25 +977,12 @@ if test "x$optimize" = xyes; then
|
||||||
if test "x$GCC" = xyes; then
|
if test "x$GCC" = xyes; then
|
||||||
CFLAGS="$CFLAGS -O6 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations"
|
CFLAGS="$CFLAGS -O6 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations"
|
||||||
AC_MSG_CHECKING(for special compiler settings)
|
AC_MSG_CHECKING(for special compiler settings)
|
||||||
case "${host}" in
|
case "${host_cpu}" in
|
||||||
i386-*-*)
|
i?86)
|
||||||
MORE_CFLAGS="-malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
|
||||||
;;
|
|
||||||
i486-*-*)
|
|
||||||
MORE_CFLAGS="-m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
|
||||||
;;
|
|
||||||
i586-*-*)
|
|
||||||
if test "x$HAVE_AMD" = "xyes"; then
|
if test "x$HAVE_AMD" = "xyes"; then
|
||||||
MORE_CFLAGS="-march=k6 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
MORE_CFLAGS="-march=k6 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
||||||
else
|
else
|
||||||
MORE_CFLAGS="-mpentium -march=pentium -malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
MORE_CFLAGS="-march=${host_cpu} -malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
||||||
fi
|
|
||||||
;;
|
|
||||||
i686-*-*)
|
|
||||||
if test "x$HAVE_AMD" = "xyes"; then
|
|
||||||
MORE_CFLAGS="-march=k6 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
|
||||||
else
|
|
||||||
MORE_CFLAGS="-mpentiumpro -march=pentiumpro -malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Reference in a new issue