From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22091 invoked by alias); 1 Oct 2009 22:09:33 -0000 Received: (qmail 22072 invoked by uid 22791); 1 Oct 2009 22:09:31 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.157) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 01 Oct 2009 22:09:27 +0000 Received: from baal.u-strasbg.fr (baal.u-strasbg.fr [IPv6:2001:660:2402::41]) by mailhost.u-strasbg.fr (8.14.2/jtpda-5.5pre1) with ESMTP id n91M9OsL088227 for ; Fri, 2 Oct 2009 00:09:24 +0200 (CEST) (envelope-from muller@ics.u-strasbg.fr) Received: from mailserver.u-strasbg.fr (ms1.u-strasbg.fr [IPv6:2001:660:2402:d::10]) by baal.u-strasbg.fr (8.14.0/jtpda-5.5pre1) with ESMTP id n91M9OXG031337 for ; Fri, 2 Oct 2009 00:09:24 +0200 (CEST) (envelope-from muller@ics.u-strasbg.fr) Received: from d620muller (lec67-4-82-230-53-140.fbx.proxad.net [82.230.53.140]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id n91M9NYG078367 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Fri, 2 Oct 2009 00:09:23 +0200 (CEST) (envelope-from muller@ics.u-strasbg.fr) From: "Pierre Muller" To: Subject: [RFA] testsuite: Avoid auto-import warning on cygwin/mingw Date: Thu, 01 Oct 2009 22:09:00 -0000 Message-ID: <000f01ca42e3$e13cad60$a3b60820$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-10/txt/msg00035.txt.bz2 Several tests fail on cygwin because of: gdb compile failed, /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin /bin/ld: warning: auto-importing has been activated without --enable-auto-import specified on the command line. This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.Info: resolving _sg by linking to __imp__sg (auto-impor t) UNTESTED: gdb.base/shlib-call.exp: Could not compile /usr/local/src/gdbcvs/build -normal/gdb/testsuite/gdb.base/shr1.sl, /usr/local/src/gdbcvs/build-normal/gdb/t estsuite/gdb.base/shr2.sl, or ../../../src/gdb/testsuite/gdb.base/shmain.c. Adding --enable-auto-import to link stage fixes this problem. Is this OK? Pierre Muller Pascal language support maintainer for GDB 2009-10-02 Pierre Muller * lib/gdb.exp (gdb_compile): Add --enable-auto-import option for mingw and cygwin targets. Index: lib/gdb.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v retrieving revision 1.119 diff -u -p -r1.119 gdb.exp --- lib/gdb.exp 13 Jul 2009 19:24:18 -0000 1.119 +++ lib/gdb.exp 1 Oct 2009 22:03:25 -0000 @@ -1731,7 +1731,10 @@ proc gdb_compile {source dest type optio lappend options "additional_flags=-L${outdir}" } elseif { [istarget "mips-sgi-irix*"] } { lappend options "additional_flags=-rpath ${outdir}" - } + } elseif { ([istarget "*-*-mingw*"] + || [istarget *-*-cygwin*]) } { + lappend new_options "additional_flags=-Wl,--enable-auto-import" + } } } elseif { $opt == "shlib_load" } { if { ([istarget "*-*-mingw*"]