This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: 4.3 bootstrap broken when configured as i386-linux


On Mon, Mar 26, 2007 at 06:53:16PM +0200, Andreas Schwab wrote:
> "H. J. Lu" <hjl@lucon.org> writes:
> 
> > There is nothing wrong to use AC_CANONICAL_SYSTEM for target
> > library.
> 
> Actually there is, AC_CANONICAL_SYSTEM is obsolete.
> 
> Andreas.
> 
> -- 
> Andreas Schwab, SuSE Labs, schwab@suse.de
> SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
> PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> "And now for something completely different."

Rather than using AC_CANONICAL and friends, a simpler patch follows.  Any
comments on the patch, particularly from the libgcc maintainers?


libgcc/
2007-03-26  Michael Meissner  <michael.meissner@amd.com>

	* 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
michael.meissner@amd.com



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]