This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


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

[dmj+@andrew.cmu.edu: Re: with_cross_host vs cross-hosted]


As per the discussion on gdb-bugs, could someone approve this?

----- Forwarded message from Daniel Jacobowitz <dmj+@andrew.cmu.edu> -----

Date: Thu, 5 Jul 2001 14:32:54 -0700
From: Daniel Jacobowitz <dmj+@andrew.cmu.edu>
Subject: Re: with_cross_host vs cross-hosted
To: DJ Delorie <dj@redhat.com>
Cc: gcc-bugs@gcc.gnu.org
Mail-Followup-To: DJ Delorie <dj@redhat.com>, gcc-bugs@gcc.gnu.org

On Thu, Jul 05, 2001 at 05:05:23PM -0400, DJ Delorie wrote:
> 
> > >   if test "$build $with_cross_host" = "$host "; then
> > 
> > Well, I'd just like to express a preference for a more explicit test
> > statement:
> > 
> > if test x"$with_cross_host" = x && test x"$build" = x"$host"
> 
> Oops, sorry.  That test was for the first test, not the second, and
> should read != not =.  We need an "or" condition, not "and", for that
> test.

How does this look?  Neither NATIVE nor NULL_TARGET was checked
anywhere, and it was not precisely clear what either was supposed to
mean, so I simply removed them.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

2001-07-05  Daniel Jacobowitz  <drow@mvista.com>
	* configure.in: Remove NATIVE, NULL_TARGET.
	Set CANADIAN only for Canadian crosses.  Set xcompiling
	for both Canadian crosses and host-x-host crosses.
	* configure: Regenerated.

Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/configure.in,v
retrieving revision 1.55
diff -u -r1.55 configure.in
--- configure.in	2001/02/26 21:47:59	1.55
+++ configure.in	2001/07/05 21:29:13
@@ -69,22 +69,21 @@
 GLIBCPP_ENABLE_THREADS
 GLIBCPP_ENABLE_CXX_FLAGS([none])
 
-if test -n "$with_cross_host"; then
+if test -n "$with_cross_host" || test x"$build" != x"$host"; then
 
-  # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
-  # may not work correctly, because the compiler may not be able to
-  # link executables.
+  # We are being configured with some form of cross compiler.                                         
+  # mknumeric_limits may not work correctly, either because the                                       
+  # compiler may not run on this machine, may not be able to link                                     
+  # executables, or may produce executables we can't run on this                                      
+  # machine.                                                                                          
   xcompiling=1
-  NATIVE=no
 
   # If Canadian cross, then don't pick up tools from the build
   # directory.
-  if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
+  if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
     CANADIAN=yes
-    NULL_TARGET=yes
   else
     CANADIAN=no
-    NULL_TARGET=no
   fi
 
   case "$target_alias" in
@@ -198,9 +197,7 @@
   # that include AC_TRY_COMPILE now, as the linker is assumed to be
   # working.
   xcompiling=0
-  NATIVE=yes
   CANADIAN=no
-  NULL_TARGET=no
 
   # Check for available headers.
   AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
@@ -232,8 +229,6 @@
 include/bits/ctype_noninline.h)
 AC_LINK_FILES($ATOMICITYH/bits/atomicity.h, include/bits/atomicity.h)
 
-AM_CONDITIONAL(NULL_TARGET, test "$NULL_TARGET" = yes)
-AM_CONDITIONAL(NATIVE, test "$NATIVE" = yes || test "$NULL_TARGET" = yes)
 AM_CONDITIONAL(CANADIAN, test "$CANADIAN" = yes)
  
 AC_CACHE_SAVE


----- End forwarded message -----

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


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