Bug 45524 - r163815/r163816 produces new regressions on x86_64-apple-darwin10
Summary: r163815/r163816 produces new regressions on x86_64-apple-darwin10
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.6.0
: P3 normal
Target Milestone: 4.6.0
Assignee: Not yet assigned to anyone
URL: http://gcc.gnu.org/ml/gcc-patches/201...
Keywords:
: 45547 45561 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-03 17:32 UTC by Jack Howarth
Modified: 2010-09-06 17:18 UTC (History)
8 users (show)

See Also:
Host: x86_64-apple-darwin10
Target: x86_64-apple-darwin10
Build: x86_64-apple-darwin10
Known to work:
Known to fail:
Last reconfirmed: 2010-09-04 15:14:04


Attachments
gcc/config.log from x86_64-apple-darwin10 (16.04 KB, text/plain)
2010-09-03 18:53 UTC, Jack Howarth
Details
gcc/autohost.h from x86_64-apple-darwin10 (7.61 KB, text/plain)
2010-09-03 18:54 UTC, Jack Howarth
Details
Move definition of ENABLE_DECIMAL_FLOAT to 1 into config/dfp.m4. (603 bytes, patch)
2010-09-04 14:38 UTC, Jack Howarth
Details | Diff
A patch (934 bytes, patch)
2010-09-04 15:13 UTC, H.J. Lu
Details | Diff
A regenerated patch (966 bytes, patch)
2010-09-04 15:19 UTC, H.J. Lu
Details | Diff
A new patch (1.28 KB, patch)
2010-09-04 16:07 UTC, H.J. Lu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jack Howarth 2010-09-03 17:32:57 UTC
The new commits...


Author: krebbel
Date: Fri Sep  3 13:14:14 2010
New Revision: 163815

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163815
Log:
gcc/

2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	    * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
	    * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
	    * configure: Regenerate.
	    * aclocal.m4: Regenerate.

config/

2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	    * dfp.m4: New file.

libdecnumber/

2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	    * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
	    * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
	    * configure: Regenerate.
	    * aclocal.m4: Regenerate.

libgcc/

2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	    * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
	    Include dfp.m4.
	    * configure: Regenerate.

Author: krebbel
Date: Fri Sep  3 13:16:24 2010
New Revision: 163816

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163816
Log:
gcc/

2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	    * configure: Regenerate.
	    * aclocal.m4: Regenerate.

libdecnumber/

2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	    * configure: Regenerate.
	    * aclocal.m4: Regenerate.

libgcc/

2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	    * configure: Regenerate.

produce new regressions at -m32/-m64 on x86_64-apple-darwin10 of...


FAIL: c-c++-common/dfp/func-vararg-mixed-2.c (test for excess errors)
WARNING: c-c++-common/dfp/func-vararg-mixed-2.c compilation failed to produce executable
FAIL: c-c++-common/dfp/pr36800.c (test for excess errors)
WARNING: c-c++-common/dfp/pr36800.c compilation failed to produce executable
FAIL: c-c++-common/dfp/pr39034.c (test for excess errors)
WARNING: c-c++-common/dfp/pr39034.c compilation failed to produce executable
FAIL: c-c++-common/dfp/pr39035.c (test for excess errors)
WARNING: c-c++-common/dfp/pr39035.c compilation failed to produce executable
FAIL: gcc.target/i386/pr32065-2.c (test for excess errors)
WARNING: gcc.target/i386/pr32065-2.c compilation failed to produce executable

These are of the form...


Executing on host: /Users/howarth/darwin_objdir/gcc/xgcc -B/Users/howarth/darwin_objdir/gcc/ /Users/howarth/gcc/gcc/testsuite/c-c++-common/dfp/func-vararg-mixed-2.c   -mpreferred-stack-boundary=2  -lm   -m32 -o ./func-vararg-mixed-2.exe    (timeout = 300)
Undefined symbols:
  "___dpd_truncddsd2", referenced from:
      _vararg_d64 in ccSemHJT.o
  "___dpd_nesd2", referenced from:
      _main in ccSemHJT.o
  "___dpd_nedd2", referenced from:
      _main in ccSemHJT.o
  "___dpd_netd2", referenced from:
      _main in ccSemHJT.o
  "___dpd_extendsddd2", referenced from:
      _main in ccSemHJT.o
ld: symbol(s) not found
Comment 1 Jack Howarth 2010-09-03 18:53:33 UTC
Created attachment 21688 [details]
gcc/config.log from x86_64-apple-darwin10
Comment 2 Jack Howarth 2010-09-03 18:54:43 UTC
Created attachment 21689 [details]
gcc/autohost.h from x86_64-apple-darwin10
Comment 3 Jack Howarth 2010-09-03 18:56:18 UTC
Added gcc/config.log and gcc/autohost.h files from a build on x86_64-apple-darwin10 configured with...

../gcc/configure --prefix=/Users/howarth/dist --with-gmp=/sw --with-libiconv-prefix=/sw --with-ppl=/sw --with-cloog=/sw --with-mpc=/sw --with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --enable-checking=yes --enable-languages=c --enable-lto
Comment 4 Jack Howarth 2010-09-03 20:06:19 UTC
Looking at a build previous to r163815/r163816, I find that config.log has...

enable_decimal_float='no'

in the libgcc build subdirectories, but config.log shows...

enable_decimal_float='dpd'

everywhere else in the build tree. Now after r163815/r163816, enable_decimal_float='dpd'  appears in config.log of the libgcc subdirectory as well.
Comment 5 Jack Howarth 2010-09-03 21:58:32 UTC
Okay the problem is that pre-r163815/r163816, we had in gcc/configure.ac...

# x86's use BID format instead of DPD
case x$enable_decimal_float in
  xyes)
    case $target in
      i?86*-*-linux* | x86_64*-*-linux*)
        enable_decimal_float=bid
        ;;
      *)
        enable_decimal_float=dpd
        ;;
    esac
    ;;
  xno)
    # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
    # dependency on libdecnumber.
    enable_decimal_float=dpd
    ;;
esac

whereas in libgcc/configure.ac, we had a special case of just...

# x86's use BID format instead of DPD
if test x$enable_decimal_float = xyes; then
  case $host in
    i?86*-*-linux* | x86_64*-*-linux*)
      enable_decimal_float=bid
      ;;
    *)
      enable_decimal_float=dpd
      ;;
  esac
fi

that did nothing in the case of enable_decimal_float=no.

Our problem is that dfp.m4 is too coarse of a solution as it forces the same test to be used everywhere...


# x86's use BID format instead of DPD
case x$enable_decimal_float in
  xyes)
    case $target in
      i?86*-*-* | x86_64*-*-*)
        enable_decimal_float=bid
        ;;
      *)
        enable_decimal_float=dpd
        ;;
    esac
    ;;
  xno)
    # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
    # dependency on libdecnumber.
    enable_decimal_float=dpd
    ;;
esac

and invalidly sets enable_decimal_float=dpd for libgcc.
Comment 6 Jack Howarth 2010-09-03 22:12:12 UTC
Of course this bug impacts all non-linux targets so it should be a P1.
Comment 7 Dominique d'Humieres 2010-09-04 00:02:36 UTC
Apparently the configure option '--enable-decimal-float=no' is not even working:


[macbook] f90/bug% gfc -v
Using built-in specs.
COLLECT_GCC=gfc
COLLECT_LTO_WRAPPER=/opt/gcc/gcc4.6w/libexec/gcc/x86_64-apple-darwin10.4.0/4.6.0/lto-wrapper
Target: x86_64-apple-darwin10.4.0
Configured with: ../work/configure --prefix=/opt/gcc/gcc4.6w --enable-languages=c,c++,fortran,objc,obj-c++,java,lto --with-gmp=/opt/sw64 --with-libiconv-prefix=/opt/sw64 --with-system-zlib --with-cloog=/opt/sw64 --enable-decimal-float=no
Thread model: posix
gcc version 4.6.0 20100903 (experimental) [trunk revision 163847p4] (GCC) 
[macbook] gcc/build_w% grep -r enable_decimal_float */config.log
gcc/config.log:enable_decimal_float='dpd'
libdecnumber/config.log:enable_decimal_float='dpd'
prev-gcc/config.log:enable_decimal_float='dpd'
prev-libdecnumber/config.log:enable_decimal_float='dpd'
stage1-gcc/config.log:enable_decimal_float='dpd'
stage1-libdecnumber/config.log:enable_decimal_float='dpd'
Comment 8 Jack Howarth 2010-09-04 01:26:01 UTC
Reverting and regenerating libgcc/configure.ac is insufficient to eliminate the failures. I will try reverting both libgcc/configure.ac and libdecnumber/configure.ac next. I suspect the changes in r163815/r163816  are misguided in that it wasn't appreciated how the behavior of dfp.m4 had to be modulated for each location. This being the case, the advantage of merging these configure.ac code into a single m4 file seems nullified.
Comment 9 Jack Howarth 2010-09-04 02:09:02 UTC
To make clearer the subtleties being lost in a single dfp.m4 file, here are the diffs of the lines replaced out of configure.ac from each location (gcc, libgcc and libdecnumber).

--- gcc	2010-09-03 22:04:53.000000000 -0400
+++ libgcc	2010-09-03 22:01:16.000000000 -0400
@@ -11,34 +11,26 @@
   esac
 ],
 [
-  case $target in
+  case $host in
     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
       enable_decimal_float=yes
       ;;
     *)
-      AC_MSG_WARN(decimal float is not supported for this target, ignored)
       enable_decimal_float=no
       ;;
   esac
 ])
+
 # x86's use BID format instead of DPD
-case x$enable_decimal_float in
-  xyes)
-    case $target in
-      i?86*-*-linux* | x86_64*-*-linux*)
-        enable_decimal_float=bid
-        ;;
-      *)
-        enable_decimal_float=dpd
-        ;;
-    esac
-    ;;
-  xno)
-    # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
-    # dependency on libdecnumber.
-    enable_decimal_float=dpd
-    ;;
-esac
+if test x$enable_decimal_float = xyes; then
+  case $host in
+    i?86*-*-linux* | x86_64*-*-linux*)
+      enable_decimal_float=bid
+      ;;
+    *)
+      enable_decimal_float=dpd
+      ;;
+  esac
+fi
 AC_SUBST(enable_decimal_float)
 
-

--- gcc	2010-09-03 22:04:53.000000000 -0400
+++ libdecnumber	2010-09-03 21:59:43.000000000 -0400
@@ -1,3 +1,6 @@
+# Default decimal format
+# If you change the defaults here, be sure to change them in the GCC directory also
+AC_MSG_CHECKING([for decimal floating point])
 AC_ARG_ENABLE(decimal-float,
 [  --enable-decimal-float={no,yes,bid,dpd}
                         enable decimal float extension to C.  Selecting 'bid'
@@ -16,29 +19,22 @@
       enable_decimal_float=yes
       ;;
     *)
-      AC_MSG_WARN(decimal float is not supported for this target, ignored)
       enable_decimal_float=no
       ;;
   esac
 ])
-# x86's use BID format instead of DPD
-case x$enable_decimal_float in
-  xyes)
-    case $target in
-      i?86*-*-linux* | x86_64*-*-linux*)
-        enable_decimal_float=bid
-        ;;
-      *)
-        enable_decimal_float=dpd
-        ;;
-    esac
-    ;;
-  xno)
-    # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
-    # dependency on libdecnumber.
-    enable_decimal_float=dpd
-    ;;
-esac
-AC_SUBST(enable_decimal_float)
 
+# x86's use BID format instead of DPD
+# In theory --enable-decimal-float=no should not compile anything
+# For the sake of simplicity, just use the default format in this directory
+if test x$enable_decimal_float = xyes -o x$enable_decimal_float = xno; then
+  case $target in
+    i?86*-*-linux* | x86_64*-*-linux*)
+      enable_decimal_float=bid
+      ;;
+    *)
+      enable_decimal_float=dpd
+      ;;
+  esac
+fi
 
Comment 10 Andrew Pinski 2010-09-04 02:13:28 UTC
(In reply to comment #9)> 
> --- gcc 2010-09-03 22:04:53.000000000 -0400
> +++ libgcc      2010-09-03 22:01:16.000000000 -0400
> @@ -11,34 +11,26 @@
>    esac
>  ],
>  [
> -  case $target in
> +  case $host in

This is correct as libgcc is a target library so the host there is what we originally had as the target.
Comment 11 Jack Howarth 2010-09-04 02:27:49 UTC
I am not worried about $host vs $target but rather the nuances in the xno case for x$enable_decimal_float in the original code. For gcc/configure.ac, this sets...

enable_decimal_float=dpd

but that case is not handled in gcc/configure.ac. Likewise comparing gcc/configure.ac to libdecnumber.ac,that case is also ignored but there also is a wrapping test around the entire case statement of...

if test x$enable_decimal_float = xyes -o x$enable_decimal_float = xno; then

these subtleties have not been extended into dfp.m4 nor has the underlying reason for them been addressed.
Comment 12 Jack Howarth 2010-09-04 02:28:50 UTC
(In reply to comment #11)

> but that case is not handled in gcc/configure.ac. Likewise comparing


but that case is not handled in libgcc/configure.ac. Likewise comparing
Comment 13 Jack Howarth 2010-09-04 03:39:53 UTC
Reverting both libgcc/configure.ac and libdecnumber/configure.ac and regenerating these files is insufficient as well to eliminate the regressions on darwin. Looking at the remaining changes in gcc/configure.ac it is obvious way this change badly breaks non-linux targets.

http://gcc.gnu.org/viewcvs/trunk/gcc/configure.ac?r1=163815&r2=163814&pathrev=163815

The author cut out two sections from gcc/configure.ac and pasted them together in dfp.m4. The intervening section...

 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
 AC_DEFINE_UNQUOTED(ENABLE_DECIMAL_FLOAT, $dfp,
 [Define to 1 to enable decimal float extension to C.])

is now moved to the end, breaking the original logic. This is without even considering the other subtleties in the same code from libgcc/configure.ac and libdecnumber/configure.ac that has been simply ignored.
Comment 14 Jack Howarth 2010-09-04 05:21:56 UTC
The original patch introduce this minor variations in the code copied for dfp.m4 in the gcc/configure.ac, libgcc/configure.ac and libdecnumber.ac is found here...

http://gcc.gnu.org/ml/gcc-patches/2007-03/msg01608.html

and committed here...

http://gcc.gnu.org/ml/gcc-cvs/2007-03/msg00776.html
Comment 15 Paolo Bonzini 2010-09-04 09:08:28 UTC
Please revert the patch in both gcc and src.  It's clear that the way to go is to first write small patch to smooth out the nuances you pointed out, and then introduce the new macro in a way that doesn't change the semantics.  Sorry for the spotty review. :/
Comment 16 Dominique d'Humieres 2010-09-04 10:16:53 UTC
Could someone check that revisions 163815 and 163816 are not exposing a more serious latent bug: I have configured gcc with --enable-decimal-float=no and --disable-decimal-float without disabling -decimal-float. 

Are these options working on linux?
Comment 17 jsm-csl@polyomino.org.uk 2010-09-04 11:05:02 UTC
Subject: Re:  r163815/r163816 produces new regressions on
 x86_64-apple-darwin10

On Sat, 4 Sep 2010, bonzini at gnu dot org wrote:

> Please revert the patch in both gcc and src.  It's clear that the way to go is
> to first write small patch to smooth out the nuances you pointed out, and then
> introduce the new macro in a way that doesn't change the semantics.  Sorry for
> the spotty review. :/

Since the differences are generally deliberate, what's actually wanted is 
a macro that preserves them.  The basic information of which targets 
support DFP by default / at all and what the default format is on each 
target should be in a single place.  The information about whether $target 
or $host is relevant, and about what the configuration variables should be 
set to if DFP is disabled, should be passed as arguments to the macro.

Comment 18 Dominique d'Humieres 2010-09-04 11:51:19 UTC
See also http://gcc.gnu.org/ml/gcc-testresults/2010-09/msg00342.html for a non-darwin platform.
Comment 19 Dave Korn 2010-09-04 11:54:34 UTC
(In reply to comment #18)
> See also http://gcc.gnu.org/ml/gcc-testresults/2010-09/msg00342.html for a
> non-darwin platform.
> 

  Yep, it's all the same kind of undefined symbol problems as in Jack's original description of the bug.  I configured using plain --enable-decimal-float, I imagine that explicitly specifying --enable-decimal-float=bid would help.  (Shall give it a try.)
Comment 20 Dave Korn 2010-09-04 11:57:49 UTC
(In reply to comment #19)
> (In reply to comment #18)
> > See also http://gcc.gnu.org/ml/gcc-testresults/2010-09/msg00342.html for a
> > non-darwin platform.
> > 
> 
>   Yep, it's all the same kind of undefined symbol problems as in Jack's
> original description of the bug.  

Note however that it's before the revision where this patch was applied, and wouldn't have shown up without my explictly adding the --enable option.

Comment 21 Jack Howarth 2010-09-04 13:08:54 UTC
Index: gcc/configure.ac
===================================================================
--- gcc/configure.ac	(revision 163853)
+++ gcc/configure.ac	(working copy)
@@ -608,10 +608,6 @@
 # Enable C extension for decimal float if target supports it.
 GCC_AC_ENABLE_DECIMAL_FLOAT([$target])
 
-dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
-AC_DEFINE_UNQUOTED(ENABLE_DECIMAL_FLOAT, $dfp,
-[Define to 1 to enable decimal float extension to C.])
-
 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
 AC_DEFINE_UNQUOTED(ENABLE_DECIMAL_BID_FORMAT, $bid,
 [Define to 1 to specify that we are using the BID decimal floating

Index: config/dfp.m4
===================================================================
--- config/dfp.m4	(revision 163853)
+++ config/dfp.m4	(working copy)
@@ -30,6 +30,10 @@
   esac
 ])
 
+ dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
+ AC_DEFINE_UNQUOTED(ENABLE_DECIMAL_FLOAT, $dfp,
+ [Define to 1 to enable decimal float extension to C.])
+
 # x86's use BID format instead of DPD
 case x$enable_decimal_float in
   xyes)
@@ -50,4 +54,4 @@
 esac
 AC_SUBST(enable_decimal_float)
 
-])
\ No newline at end of file
+])

which restore the original code sequencing, eliminates the decimal float failures on x86_64-apple-darwin10. However, I don't know what this does to linux due to the remaining differences being omitted.
Comment 22 Jack Howarth 2010-09-04 13:39:51 UTC
I should note that one probe I am using to monitor how this builds is what "grep decimal_float config.log" reports in the gcc, libdecnumber and libgcc build directories. Pre-r163815/r163816, on darwin this was..

enable_decimal_float='dpd'

for gcc and libdecnumber but...

decimal_float='no'
enable_decimal_float='no'

in the libgcc build directory. With the patch in comment 21, this is changed to...

decimal_float='no'
enable_decimal_float='dpd'

Note that this compares to what we got in libgcc with r163815/r163816 of...

decimal_float='yes'
enable_decimal_float='dpd'




Comment 23 Jack Howarth 2010-09-04 14:26:06 UTC
The patch in comment 21 seems to work on x86_64-unknown-linux-gnu for a stock build. Iin the libgcc build directory before and after the patch, I get...

decimal_float='yes'
enable_decimal_float='bid'
Comment 24 Jack Howarth 2010-09-04 14:38:18 UTC
Created attachment 21695 [details]
Move definition of ENABLE_DECIMAL_FLOAT to 1 into config/dfp.m4.
Comment 25 H.J. Lu 2010-09-04 15:13:32 UTC
Created attachment 21696 [details]
A patch

Please try this one.
Comment 26 H.J. Lu 2010-09-04 15:19:07 UTC
Created attachment 21697 [details]
A regenerated patch

I really don't like autconf cache.
Comment 27 Jack Howarth 2010-09-04 15:44:30 UTC
Both patches fail on a x86_64-apple-darwin10 bootstrap with..

make[3]: *** No rule to make target `../../gcc-4.6-20100904/gcc/../libdecnumber/no/decimal32.h', needed by `dfp.o'.  Stop
Comment 28 H.J. Lu 2010-09-04 16:07:26 UTC
Created attachment 21698 [details]
A new patch

Try this one.
Comment 29 Jack Howarth 2010-09-04 16:32:04 UTC
(In reply to comment #28)
> Created an attachment (id=21698) [edit]
> A new patch
> 
> Try this one.
> 

This bootstraps. Regtesting next.
Comment 30 Paolo Bonzini 2010-09-04 16:41:48 UTC
> > It's clear that the way to go is to first write
> > small patch to smooth out the nuances you pointed out, and then
> > introduce the new macro in a way that doesn't change the semantics.
> 
> Since the differences are generally deliberate, what's actually wanted is 
> a macro that preserves them.

Sure, I meant "leaving the differences in semantics to the single configure scripts".  This is what H.J.'s patch does more or less, and I like it.

I'm not sure whether the patches remove the need for the other patch in comment #21 though.  Jack, can you post what you are exactly testing (without the regenerated files, which are unnecessary)?
Comment 31 Jack Howarth 2010-09-04 16:58:39 UTC
(In reply to comment #30)

> I'm not sure whether the patches remove the need for the other patch in comment
> #21 though.  Jack, can you post what you are exactly testing (without the
> regenerated files, which are unnecessary)?
> 

Testing H.J.'s gcc-pr45524-3.patch as it is the first in his series which bootstraps on x86_64-apple-darwin10.
Comment 32 Jack Howarth 2010-09-04 18:12:13 UTC
I can confirm that gcc-pr45524-3.patch bootstraps and eliminates the regressions caused by r163815/r163816 on x86_64-apple-darwin10.
Comment 33 H.J. Lu 2010-09-05 03:22:08 UTC
A patch is posted at

http://gcc.gnu.org/ml/gcc-patches/2010-09/msg00375.html
Comment 34 Jack Howarth 2010-09-05 04:57:36 UTC
Regression result for gcc-pr45524-3.patch on x86_64-apple-darwin10.

http://gcc.gnu.org/ml/gcc-testresults/2010-09/msg00410.html
Comment 35 H.J. Lu 2010-09-05 15:58:30 UTC
*** Bug 45547 has been marked as a duplicate of this bug. ***
Comment 36 Dominique d'Humieres 2010-09-05 21:39:32 UTC
I confirm that the patch in comment #28 fixes this pr. However using the tip in comment #22, I get

[macbook] gcc/p_build% grep -r decimal_ */config.log
gcc/config.log:enable_decimal_float='dpd'
libdecnumber/config.log:enable_decimal_float='dpd'
prev-gcc/config.log:enable_decimal_float='dpd'
prev-libdecnumber/config.log:enable_decimal_float='dpd'
stage1-gcc/config.log:enable_decimal_float='dpd'
stage1-libdecnumber/config.log:enable_decimal_float='dpd'

Is there a better way to know if decimal_float has been installed or not?
Comment 37 H.J. Lu 2010-09-05 22:27:55 UTC
(In reply to comment #36)
> I confirm that the patch in comment #28 fixes this pr. However using the tip in
> comment #22, I get
> 
> [macbook] gcc/p_build% grep -r decimal_ */config.log
> gcc/config.log:enable_decimal_float='dpd'
> libdecnumber/config.log:enable_decimal_float='dpd'
> prev-gcc/config.log:enable_decimal_float='dpd'
> prev-libdecnumber/config.log:enable_decimal_float='dpd'
> stage1-gcc/config.log:enable_decimal_float='dpd'
> stage1-libdecnumber/config.log:enable_decimal_float='dpd'
> 

This how DFP is implemented.
Comment 38 Andreas Krebbel 2010-09-06 07:49:16 UTC
(In reply to comment #33)
> A patch is posted at
> 
> http://gcc.gnu.org/ml/gcc-patches/2010-09/msg00375.html
> 
Thanks for fixing it. And sorry for not testing it thoroughly.
Comment 39 hjl@gcc.gnu.org 2010-09-06 14:54:09 UTC
Subject: Bug 45524

Author: hjl
Date: Mon Sep  6 14:52:54 2010
New Revision: 163921

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163921
Log:
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.

Modified:
    trunk/config/ChangeLog
    trunk/config/dfp.m4
    trunk/gcc/ChangeLog
    trunk/gcc/configure
    trunk/gcc/configure.ac
    trunk/libdecnumber/ChangeLog
    trunk/libdecnumber/configure
    trunk/libdecnumber/configure.ac
    trunk/libgcc/ChangeLog
    trunk/libgcc/configure

Comment 40 H.J. Lu 2010-09-06 17:10:04 UTC
*** Bug 45561 has been marked as a duplicate of this bug. ***
Comment 41 H.J. Lu 2010-09-06 17:18:51 UTC
Fixed.