From: "Pierre Muller" <muller@ics.u-strasbg.fr>
To: "'Pedro Alves'" <pedro@codesourcery.com>
Cc: <tromey@redhat.com>, <gdb-patches@sourceware.org>
Subject: RE: [RFA-v2] testsuite: Avoid auto-import warning on cygwin/mingw
Date: Fri, 02 Oct 2009 22:27:00 -0000 [thread overview]
Message-ID: <000901ca43af$7c096a10$741c3e30$@u-strasbg.fr> (raw)
In-Reply-To: <200910022318.56590.pedro@codesourcery.com>
> > This confirms that the current additions to options
> > are finally discarded by the
> > set options $new_options
> > a few lines down,
> > and that my patch is correct, no?
>
> Yes. I would prefer then that the dead code isn't made
> live and untested for no good reason. I'd rather having it
> removed, or if you prefer, go ahead apply the patch you
> had before, the one that didn't touch the aix and irix bits, and
> I'll remove the dead code afterwards.
Ok,
Pierre
For the record, here is what I finally committed:
$ cvs diff -up ChangeLog commit.txt lib/gdb.exp
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/ChangeLog,v
retrieving revision 1.1979
diff -u -p -r1.1979 ChangeLog
--- ChangeLog 2 Oct 2009 21:28:34 -0000 1.1979
+++ ChangeLog 2 Oct 2009 22:22:38 -0000
@@ -1,4 +1,9 @@
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.
+
+2009-10-02 Pierre Muller <muller@ics.u-strasbg.fr>
Pedro Alves <pedro@codesourcery.com>
* lib/gdb.exp (gdb_compile): Avoid adding
Index: lib/gdb.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v
retrieving revision 1.120
diff -u -p -r1.120 gdb.exp
--- lib/gdb.exp 2 Oct 2009 21:28:34 -0000 1.120
+++ lib/gdb.exp 2 Oct 2009 22:22:39 -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-impo
rt"
+ }
}
} elseif { $opt == "shlib_load" } {
if { ([istarget "*-*-mingw*"]
prev parent reply other threads:[~2009-10-02 22:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-01 22:09 [RFA] " Pierre Muller
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 [this message]
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='000901ca43af$7c096a10$741c3e30$@u-strasbg.fr' \
--to=muller@ics.u-strasbg.fr \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.com \
--cc=tromey@redhat.com \
/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