Try fixing nocona issue without breaking everything else!!

This commit is contained in:
wbhart 2009-03-14 19:38:14 +00:00
parent 07cbd98824
commit 9daa2d7376

View File

@ -149,6 +149,16 @@ esac],
[enable_mpbsd=no])
AM_CONDITIONAL(WANT_MPBSD, test "$enable_mpbsd" = "yes")
AC_ARG_ENABLE(gmplink,
AC_HELP_STRING([--enable-gmplink],
[create symbolic links named gmp that point to mpir [[default=no]]]),
[case $enableval in
yes|no) ;;
*) AC_MSG_ERROR([bad value $enableval for --enable-gmplink, need yes or no]) ;;
esac],
[enable_gmplink=no])
AM_CONDITIONAL(WANT_GMPLINK, test "$enable_gmplink" = "yes")
AC_ARG_ENABLE(nails,
AC_HELP_STRING([--enable-nails],[use nails on limbs [[default=no]]]),
@ -2065,7 +2075,7 @@ done
# enough assembler.
#
case $host in
X86_PATTERN | x86_64-*-* | core2-*-* | k10-*-*)
X86_PATTERN | x86_64-*-* | core2-*-* | k10-*-* | nocona-*-*)
if test "$ABI" = 32; then
case "$path $fat_path" in
*mmx*) GMP_ASM_X86_MMX( , [GMP_STRIP_PATH(*mmx*)]) ;;
@ -2583,7 +2593,7 @@ DECL_$tmp_fbase (__MPN(${tmp_fbase}_init));" >>fat.h
echo "/* variable thresholds */" >>fat.h
for tmp_tn in $fat_thresholds; do
echo "#undef $tmp_tn" >>fat.h
echo "#define $tmp_tn CPUVEC_THRESHOLD (`echo $tmp_tn | tr A-Z a-z`)" >>fat.h
echo "#define $tmp_tn CPUVEC_THRESHOLD (`echo $tmp_tn | tr '[A-Z]' '[a-z]'`)" >>fat.h
done
echo "
@ -2599,7 +2609,7 @@ DECL_$tmp_fbase (__MPN(${tmp_fbase}_init));" >>fat.h
echo " p->$tmp_fbase = vec.$tmp_fbase; \\" >>fat.h
done
for tmp_tn in $fat_thresholds; do
tmp_field_name=`echo $tmp_tn | tr A-Z a-z`
tmp_field_name=`echo $tmp_tn | tr '[[A-Z]]' '[[a-z]]'`
echo " p->$tmp_field_name = vec.$tmp_field_name; \\" >>fat.h
done
echo " } while (0)" >>fat.h
@ -2613,7 +2623,7 @@ DECL_$tmp_fbase (__MPN(${tmp_fbase}_init));" >>fat.h
echo " ASSERT (vec.$tmp_fbase != NULL); \\" >>fat.h
done
for tmp_tn in $fat_thresholds; do
tmp_field_name=`echo $tmp_tn | tr A-Z a-z`
tmp_field_name=`echo $tmp_tn | tr '[[A-Z]]' '[[a-z]]'`
echo " ASSERT (vec.$tmp_field_name != 0); \\" >>fat.h
done
echo " } while (0)" >>fat.h
@ -2623,7 +2633,7 @@ DECL_$tmp_fbase (__MPN(${tmp_fbase}_init));" >>fat.h
#define ITERATE_FAT_THRESHOLDS() \\
do { \\" >>fat.h
for tmp_tn in $fat_thresholds; do
tmp_field_name=`echo $tmp_tn | tr A-Z a-z`
tmp_field_name=`echo $tmp_tn | tr '[[A-Z]]' '[[a-z]]'`
echo " ITERATE ($tmp_tn, $tmp_field_name); \\" >>fat.h
done
echo " } while (0)" >>fat.h
@ -2659,7 +2669,7 @@ DECL_$tmp_fbase (__MPN(${tmp_fbase}_init));" >>fat.h
if test -n "$tmp_thresh"; then
THRESH_ASM_SETUP=["${THRESH_ASM_SETUP}define($tmp_tn,$tmp_thresh)
"]
CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.`echo $tmp_tn | tr A-Z a-z` = $tmp_thresh; \\
CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.`echo $tmp_tn | tr '[[A-Z]]' '[[a-z]]'` = $tmp_thresh; \\
"
eval tmp_limit=\$${tmp_tn}_LIMIT
if test -z "$tmp_limit"; then
@ -3059,7 +3069,7 @@ if test "$gmp_asm_syntax_testing" != no; then
;;
esac
;;
X86_PATTERN | x86_64-*-* | k10-*-* | core2-*-* | nonona-*-*)
X86_PATTERN | x86_64-*-* | k10-*-* | core2-*-*)
GMP_ASM_ALIGN_FILL_0x90
case $ABI in
32)