986 |
|
fi |
987 |
|
fi |
988 |
|
|
989 |
+ |
dnl Store motion was introduced in 3.3-hammer branch and any gcc >= 3.4 |
990 |
+ |
dnl However, there are some corner cases exposed on x86-64 |
991 |
+ |
if [[ "x$HAVE_GCC27" = "xyes" ]]; then |
992 |
+ |
SAVED_CXXFLAGS="$CXXFLAGS" |
993 |
+ |
CXXFLAGS="$CXXFLAGS -fno-gcse-sm" |
994 |
+ |
AC_CACHE_CHECK([whether GCC supports store motion], ac_cv_gcc_store_motion, [ |
995 |
+ |
AC_LANG_SAVE |
996 |
+ |
AC_LANG_CPLUSPLUS |
997 |
+ |
AC_TRY_COMPILE([],[],[ac_cv_gcc_store_motion=yes],[ac_cv_gcc_store_motion=no]) |
998 |
+ |
AC_LANG_RESTORE |
999 |
+ |
]) |
1000 |
+ |
if [[ "x$ac_cv_gcc_store_motion" != "xyes" ]]; then |
1001 |
+ |
CXXFLAGS="$SAVED_CXXFLAGS" |
1002 |
+ |
fi |
1003 |
+ |
fi |
1004 |
+ |
|
1005 |
|
dnl Select appropriate CPU source and REGPARAM define. |
1006 |
|
ASM_OPTIMIZATIONS=none |
1007 |
|
CPUSRCS="cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp" |
1281 |
|
|
1282 |
|
dnl Remove the "-g" option if set for GCC. |
1283 |
|
if [[ "x$HAVE_GCC27" = "xyes" ]]; then |
1284 |
< |
CFLAGS=`echo $CFLAGS | sed -e 's/-g//g'` |
1285 |
< |
CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-g//g'` |
1284 |
> |
CFLAGS=`echo $CFLAGS | sed -e 's/-g\b//g'` |
1285 |
> |
CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-g\b//g'` |
1286 |
|
fi |
1287 |
|
|
1288 |
|
dnl Or if we have -IPA (MIPSPro compilers) |