summaryrefslogtreecommitdiff
path: root/libdecnumber
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-06 14:52:54 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-06 14:52:54 +0000
commita87eb01159126249fcdbde78b65c25b8b16b9c89 (patch)
treeedc47ab3c02efb97ac46e7117b77aa9d6a0da762 /libdecnumber
parent0a683683c5048a8a9c586809b0d6d319f259d1ac (diff)
downloadlinaro-gcc-a87eb01159126249fcdbde78b65c25b8b16b9c89.tar.gz
linaro-gcc-a87eb01159126249fcdbde78b65c25b8b16b9c89.tar.bz2
linaro-gcc-a87eb01159126249fcdbde78b65c25b8b16b9c89.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163921 138bc75d-0d04-0410-961f-82ee72b054a4
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 351c251ef3f..2690ea5b0ab 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 134c2574563..f94f6808190 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 a4cbf55f1a4..87820bf2205 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)"