libstdc++.exp (v3-build_support): Delete libtestc++.a before creation.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Fri, 10 Dec 2010 16:24:48 +0000 (16:24 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Fri, 10 Dec 2010 16:24:48 +0000 (16:24 +0000)
* testsuite/lib/libstdc++.exp (v3-build_support): Delete
libtestc++.a before creation.

From-SVN: r167692

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/lib/libstdc++.exp

index b11c4c5259671300307fd192b69303b5bc2f3ac2..4faa52defc328862338be07fa2e0aa9e76143c56 100644 (file)
@@ -1,3 +1,8 @@
+2010-12-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * testsuite/lib/libstdc++.exp (v3-build_support): Delete
+       libtestc++.a before creation.
+
 2010-12-10  Jack Howarth  <howarth@bromo.med.uc.edu>
            Iain Sandoe  <iains@gcc.gnu.org>
 
index d94abfd8b6013e2c48e761ced7f5e0c9701e9c07..2b96e29048dcfdddec15d6c236d9beef28feb729 100644 (file)
@@ -589,6 +589,15 @@ proc v3-build_support { } {
     }
 
     # Collect into libtestc++.a
+    # Delete libtestc++.a first.  Mixed 32 and 64-bit archives cannot be
+    # linked on IRIX 6.
+    # Use same procedure as gcc-dg.exp (remove-build-file).
+    if [is_remote host] {
+       # Ensure the host knows the file is gone by deleting there
+       # first.
+       remote_file host delete "./libtestc++.a"
+       }
+    remote_file build delete "./libtestc++.a"
     if  [info exists env(AR)] {
        set ar $env(AR)
     } else {