aboutsummaryrefslogtreecommitdiff
path: root/libdecnumber
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2010-09-06 14:52:54 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2010-09-06 07:52:54 -0700
commitcc0ae0cacb1f9b1f38f1028411f004b7fcbbfc7a (patch)
treeedc47ab3c02efb97ac46e7117b77aa9d6a0da762 /libdecnumber
parent6f295bbf7668c24e115715fec04ecc7d4024cb03 (diff)
downloadgcc-cc0ae0cacb1f9b1f38f1028411f004b7fcbbfc7a.zip
gcc-cc0ae0cacb1f9b1f38f1028411f004b7fcbbfc7a.tar.gz
gcc-cc0ae0cacb1f9b1f38f1028411f004b7fcbbfc7a.tar.bz2
Don't set enable_decimal_float to dpd if DFP is disabled.
config/ 2010-09-06 H.J. Lu <hongjiu.lu@intel.com> PR target/45524 * dfp.m4: Don't set enable_decimal_float to dpd if DFP is disabled. Set default_decimal_float. gcc/ 2010-09-06 H.J. Lu <hongjiu.lu@intel.com> PR target/45524 * configure.ac (enable_decimal_float): Set to $default_decimal_float. * configure: Regenerated. libdecnumber/ 2010-09-06 H.J. Lu <hongjiu.lu@intel.com> PR target/45524 * configure.ac (enable_decimal_float): Set to $default_decimal_float. * configure: Regenerated. libgcc/ 2010-09-06 H.J. Lu <hongjiu.lu@intel.com> PR target/45524 * configure: Regenerated. From-SVN: r163921
Diffstat (limited to 'libdecnumber')
-rw-r--r--libdecnumber/ChangeLog7
-rwxr-xr-xlibdecnumber/configure8
-rw-r--r--libdecnumber/configure.ac3
3 files changed, 16 insertions, 2 deletions
diff --git a/libdecnumber/ChangeLog b/libdecnumber/ChangeLog
index 351c251..2690ea5 100644
--- a/libdecnumber/ChangeLog
+++ b/libdecnumber/ChangeLog
@@ -1,3 +1,10 @@
+2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR target/45524
+ * configure.ac (enable_decimal_float): Set to
+ $default_decimal_float.
+ * configure: Regenerated.
+
2010-09-06 Andreas Schwab <schwab@redhat.com>
* configure: Regenerate.
diff --git a/libdecnumber/configure b/libdecnumber/configure
index 134c257..f94f680 100755
--- a/libdecnumber/configure
+++ b/libdecnumber/configure
@@ -4594,7 +4594,7 @@ $as_echo_n "checking for decimal floating point... " >&6; }
if test "${enable_decimal_float+set}" = set; then :
enableval=$enable_decimal_float;
case $enable_decimal_float in
- yes | no | bid | dpd) ;;
+ yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
*) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
esac
@@ -4626,17 +4626,21 @@ case x$enable_decimal_float in
enable_decimal_float=dpd
;;
esac
+ default_decimal_float=$enable_decimal_float
;;
xno)
# ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
# dependency on libdecnumber.
- enable_decimal_float=dpd
+ default_decimal_float=dpd
;;
esac
+# Use default_decimal_float for dependency.
+enable_decimal_float=$default_decimal_float
+
# If BID is being used, additional objects should be linked in.
if test x$enable_decimal_float = xbid; then
ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(bid_OBJS)"
diff --git a/libdecnumber/configure.ac b/libdecnumber/configure.ac
index a4cbf55..87820bf 100644
--- a/libdecnumber/configure.ac
+++ b/libdecnumber/configure.ac
@@ -78,6 +78,9 @@ AC_MSG_CHECKING([for decimal floating point])
GCC_AC_ENABLE_DECIMAL_FLOAT([$target])
+# Use default_decimal_float for dependency.
+enable_decimal_float=$default_decimal_float
+
# If BID is being used, additional objects should be linked in.
if test x$enable_decimal_float = xbid; then
ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(bid_OBJS)"