Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Pierre Muller" <muller@ics.u-strasbg.fr>
To: <gdb-patches@sourceware.org>
Subject: [RFA] testsuite: Avoid auto-import warning on cygwin/mingw
Date: Thu, 01 Oct 2009 22:09:00 -0000	[thread overview]
Message-ID: <000f01ca42e3$e13cad60$a3b60820$@u-strasbg.fr> (raw)

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  <muller@ics.u-strasbg.fr>

	* 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*"]


             reply	other threads:[~2009-10-01 22:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-01 22:09 Pierre Muller [this message]
2009-10-02  0:24 ` Pedro Alves
2009-10-02  7:29   ` [RFA-v2] " Pierre Muller
2009-10-02 18:09     ` Pedro Alves
2009-10-02 20:57       ` Tom Tromey
2009-10-02 21:35         ` Pierre Muller
2009-10-02 22:19           ` Pedro Alves
2009-10-02 22:27             ` Pierre Muller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000f01ca42e3$e13cad60$a3b60820$@u-strasbg.fr' \
    --to=muller@ics.u-strasbg.fr \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox