]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libffi-db.exp (load_gcc_lib): New function.
authorRichard Earnshaw <rearnsha@arm.com>
Wed, 27 Oct 2004 10:56:06 +0000 (10:56 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Wed, 27 Oct 2004 10:56:06 +0000 (10:56 +0000)
* testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
(libffi_exit): New function.
(libffi_init): Build the testglue wrapper if needed.

From-SVN: r89636

libffi/ChangeLog
libffi/testsuite/lib/libffi-dg.exp

index ea883fc4c0b26d789927ce7999c06b66545d663f..fa47aeb63dea4f61f1f728ea399ae1407082a834 100644 (file)
@@ -1,3 +1,9 @@
+2004-10-27  Richard Earnshaw  <rearnsha@arm.com>
+
+       * testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
+       (libffi_exit): New function.
+       (libffi_init): Build the testglue wrapper if needed.
+
 2004-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        PR other/18138
index b8ada00cc294a2ac15e465ee201bd73e5cedb5e2..b31a95f7f480b4c3d780b4e01d6f7227ea628071 100644 (file)
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
+proc load_gcc_lib { filename } {
+    global srcdir
+    load_file $srcdir/../../gcc/testsuite/lib/$filename
+}
+
 load_lib dg.exp
 load_lib libgloss.exp
-
+load_gcc_lib wrapper.exp
 
 
 # Define libffi callbacks for dg.exp.
@@ -71,6 +76,7 @@ proc libffi-init { args } {
     global gluefile wrap_flags;
     global srcdir
     global blddirffi
+    global objdir
     global blddircxx
     global TOOL_OPTIONS
     global tool
@@ -148,6 +154,16 @@ proc libffi-init { args } {
            }
        }
     }
+    libffi_maybe_build_wrapper "${objdir}/testglue.o"
+}
+
+proc libffi_exit { } {
+    global gluefile;
+
+    if [info exists gluefile] {
+       file_on_build delete $gluefile;
+       unset gluefile;
+    }
 }
 
 proc libffi_target_compile { source dest type options } {