From: "Mark Kettenis" <mark.kettenis@xs4all.nl>
To: "Paul Brook" <paul@codesourcery.com>
Cc: "Mark Kettenis" <mark.kettenis@xs4all.nl>, gdb-patches@sourceware.org
Subject: Re: [patch] Avoid gcc specific compiler flags
Date: Tue, 07 Mar 2006 16:52:00 -0000 [thread overview]
Message-ID: <22344.192.87.1.22.1141741508.squirrel@webmail.xs4all.nl> (raw)
In-Reply-To: <200603071421.08416.paul@codesourcery.com>
> On Monday 06 March 2006 18:35, Mark Kettenis wrote:
>> > From: Paul Brook <paul@codesourcery.com>
>> > Date: Mon, 6 Mar 2006 15:18:23 +0000
>> >
>> > The attached patch allows a dejagnu target description to override the
>> > compiler flag used to disable warnings when running the gdb testsuite.
>> >
>> > Ok?
>>
>> Looks fine to me expect for a double $nowarnings in the gdb.exp bit.
>
> I don't understand this comment. Can you be more specific?
I was talking about the following fragment:
+ set nowarnings [lsearch -exact $options nowarnings]
+ if {$nowarnings != -1} {
+ if [target_info exists gdb,nowarnings_flag] {
+ set flag "additional_flags=[target_info gdb,nowarnings_flag]"
+ } else {
+ set flag "additional_flags=-w"
+ }
+ set options [lreplace $options $nowarnings $nowarnings $flag]
There's a double $nowarnings on that last line. or is that intentional?
In that case I don't understand this code completely, and it needs a
comment to explain it.
Mark
next prev parent reply other threads:[~2006-03-07 14:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-07 5:02 Paul Brook
2006-03-07 5:23 ` Mark Kettenis
2006-03-07 15:19 ` Paul Brook
2006-03-07 16:52 ` Mark Kettenis [this message]
2006-03-07 17:46 ` Paul Brook
2006-03-07 18:45 ` Mark Kettenis
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=22344.192.87.1.22.1141741508.squirrel@webmail.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=gdb-patches@sourceware.org \
--cc=paul@codesourcery.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