On Sat, Mar 24, 2007 at 07:01:40PM +0000, Martin Michlmayr wrote:
> The following change broke --disable-multilib:
> 
> 2007-03-23  Michael Meissner  <[EMAIL PROTECTED]>
>             H.J. Lu  <[EMAIL PROTECTED]>
> 
> ../src/configure --enable-languages=c --disable-multilib x86_64-linux-gnu
> 
> /home/tbm/build/gcc-snapshot-20070324/build/./gcc/xgcc 
> -B/home/tbm/build/gcc-snapshot-20070324/build/./gcc/ 
> -B/usr/lib/gcc-snapshot/x86_64-linux-gnu/bin/ 
> -B/usr/lib/gcc-snapshot/x86_64-linux-gnu/lib/ -isystem 
> /usr/lib/gcc-snapshot/x86_64-linux-gnu/include -isystem 
> /usr/lib/gcc-snapshot/x86_64-linux-gnu/sys-include -g -fkeep-inline-functions 
> -O2  -O2 -g -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes 
> -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g 
> -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. -I. 
> -I../.././gcc -I../../../src/libgcc -I../../../src/libgcc/. 
> -I../../../src/libgcc/../gcc -I../../../src/libgcc/../include 
> -I../../../src/libgcc/../libdecnumber/no 
> -I../../../src/libgcc/../libdecnumber -I../../libdecnumber -o decLibrary.o 
> -MT decLibrary.o -MD -MP -MF decLibrary.dep -c 
> ../../../src/libgcc/../libdecnumber/decLibrary.c
> ../../../src/libgcc/../libdecnumber/decLibrary.c:32:24: error: decimal128.h: 
> No such file or directory
> ../../../src/libgcc/../libdecnumber/decLibrary.c:33:23: error: decimal64.h: 
> No such file or directory
> ../../../src/libgcc/../libdecnumber/decLibrary.c:34:23: error: decimal32.h: 
> No such file or directory
> ../../../src/libgcc/../libdecnumber/decLibrary.c:36: error: expected 
> declaration specifiers or '...' before 'decimal32'
> ../../../src/libgcc/../libdecnumber/decLibrary.c:37: error: expected 
> declaration specifiers or '...' before 'decimal64'
> ../../../src/libgcc/../libdecnumber/decLibrary.c:38: error: expected 
> declaration specifiers or '...' before 'decimal128'
> ../../../src/libgcc/../libdecnumber/decLibrary.c: In function 'isinfd32':
> ...
> 
> -- 
> Martin Michlmayr
> http://www.cyrius.com/
> 

Note, the gcc mailing list is perhaps not the best place to post bug reports
(following up to the mail with the patch in gcc-patches or posting in gcc-bugs
may be better places to post this).

As I replied in gcc-patches, I think the following patch fixes the problem,
simpler than using AC_CANONICAL.  Sorry, I always build with canonical names,
and didn't notice that x86_64-linux-gnu wouldn't build:

libgcc/
2007-03-26  Michael Meissner  <[EMAIL PROTECTED]>

        * configure.ac (--enable-decimal-float): Change x86 targets to
        just x86_64*-linux* and i?86*-linux* so that a non-canonical
        target of x86_64-linux will be handled.
        * configure: Regenerate.

--- libgcc/configure.ac.~1~     2007-03-24 13:25:28.593802000 -0400
+++ libgcc/configure.ac 2007-03-26 13:17:46.577488000 -0400
@@ -121,7 +121,7 @@ Valid choices are 'yes', 'bid', 'dpd', a
 ],
 [
   case $target in
-    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
+    powerpc*-*-linux* | i?86*-linux* | x86_64*-linux*)
       enable_decimal_float=yes
       ;;
     *)
@@ -133,7 +133,7 @@ Valid choices are 'yes', 'bid', 'dpd', a
 # x86's use BID format instead of DPD
 if test x$enable_decimal_float = xyes; then
   case $target in
-    i?86*-*-linux* | x86_64*-*-linux*)
+    i?86*-linux* | x86_64*-linux*)
       enable_decimal_float=bid
       ;;
     *)
--- libgcc/configure.~1~        2007-03-26 13:17:14.691407000 -0400
+++ libgcc/configure    2007-03-26 13:17:55.282777000 -0400
@@ -3306,7 +3306,7 @@ Valid choices are 'yes', 'bid', 'dpd', a
 else
 
   case $target in
-    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
+    powerpc*-*-linux* | i?86*-linux* | x86_64*-linux*)
       enable_decimal_float=yes
       ;;
     *)
@@ -3319,7 +3319,7 @@ fi;
 # x86's use BID format instead of DPD
 if test x$enable_decimal_float = xyes; then
   case $target in
-    i?86*-*-linux* | x86_64*-*-linux*)
+    i?86*-linux* | x86_64*-linux*)
       enable_decimal_float=bid
       ;;
     *)


-- 
Michael Meissner, AMD
90 Central Street, MS 83-29, Boxborough, MA, 01719, USA
[EMAIL PROTECTED]


Reply via email to