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]
Other format: [Raw text]

Re: configure.target: overwrites known cpu's to generic


Andreas Jaeger writes:
> Matthias Klose <doko@cs.tu-berlin.de> writes:
> 
> > libstdc++'s configure.target does overwrite any "known" cpu to
> > generic:
> >
> > - i486 is overwritten to generic
> >
> > - i386 has it's own abi, it's not i486, overwritten to generic anyway
> >
> > - s390 is overwritten to generic
> >
> > - all other cpu's not handled in the switch are overwritten to generic
> >   (i.e. mips/mipsel)
> >
> > checked on the branch only.
> 
> Can you check whether the appended patch fixes this for you, please?
> 
> If this does not fix it, please explain a bit more which variable is
> wrong.  Perhaps I'm looking at the wrong place :-(

hmm, the "*)" catch-all in the switch following your patch overwrites
try_cpu.

I'm testing now the patch attached.

--- src/libstdc++-v3/configure.target~	2003-06-19 19:55:35.000000000 +0200
+++ src/libstdc++-v3/configure.target	2003-06-20 09:11:35.000000000 +0200
@@ -59,9 +59,6 @@
 # Here we override defaults and catch more general cases due to naming
 # conventions (e.g., chip_name* to catch all variants).
 # THIS TABLE IS SORTED.  KEEP IT THAT WAY.
-if test -d ${glibcpp_srcdir}/config/cpu/${host_cpu}; then
-  try_cpu=${host_cpu}
-fi
 
 case "${target_cpu}" in
   alpha*)
@@ -86,7 +83,11 @@
     try_cpu=sparc
     ;;
   *)
-    try_cpu=generic
+    if test -d ${glibcpp_srcdir}/config/cpu/${target_cpu}; then
+      try_cpu=${target_cpu}
+    else
+      try_cpu=generic
+    fi
     ;;
 esac
 


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