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]

Provide fallback for check-abi


check-abi only has a few names.  IMO We should unify the names of the
directories and find the right one in case that somebody gives a
different name to configure.  Also the i586-linux and i686-linux ABIs
should be the same.

The following patch has been tested on i686-suse-linux-gnu with
configure i686-suse-linux-gnu and gave the expected result.

Ok to commit?

Andreas

2003-06-09  Andreas Jaeger  <aj@suse.de>

	* libstdc++-v3/configure.host: Check for host triplet in
	abi_baseline_triplet and provide fallbacks.

============================================================
Index: libstdc++-v3/configure.host
--- libstdc++-v3/configure.host	23 May 2003 02:31:07 -0000	1.5
+++ libstdc++-v3/configure.host	9 Jun 2003 14:57:05 -0000
@@ -59,6 +59,27 @@ else
     cpu_include_dir="cpu/generic"
 fi
 
+# Check whether ABI baseline file exists, if not try to guess name
+if test ! -e ${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}//baseline_symbols.txt ; then
+  case "${host}" in
+    alpha*-*-linux-gnu)
+  	abi_baseline_triplet="alphaev67-unknown-linux-gnu"
+  	;;
+    i*86-*-freebsd4)
+  	abi_baseline_triplet="i386-unknown-freebsd4"
+  	;;
+    i*86-*-linux-gnu)
+  	abi_baseline_triplet="i686-pc-linux-gnu"
+  	;;
+    ia64-*-linux-gnu)
+  	abi_baseline_triplet="ia64-unknown-linux-gnu"
+  	;;
+    x86_64-*-linux-gnu)
+  	abi_baseline_triplet="x86_64-unknown-linux-gnu"
+  	;;
+  esac  
+fi
+
 
 # HOST-SPECIFIC OVERRIDES
 # Set any CPU-dependent bits.

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


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