From: Keith Seitz <keiths@redhat.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: "gdb-patches@sourceware.org ml" <gdb-patches@sourceware.org>
Subject: Re: Testsuite regression gdb.cp/converts.exp [Re: [RFA] gdb/13483]
Date: Wed, 12 Sep 2012 23:29:00 -0000 [thread overview]
Message-ID: <50511AD0.6000702@redhat.com> (raw)
In-Reply-To: <20120912195845.GA16888@host2.jankratochvil.net>
On 09/12/2012 12:58 PM, Jan Kratochvil wrote:
> Yes, I agree. Although rather to replace it in .c by an explanatory comment
> like
>
> /* .exp file contains line
> gdb_test "p foo1_7(&foo1_7)" " = 17"
> which is not compiled here for verification as older GCCs (~4.1) fail the
> compilation due to:
> warning: the address of 'int foo1_7(bool)', will always evaluate as 'true'
> */
Sure. For the record, here is what I committed:
2012-09-12 Keith Seitz <keiths@redhat.com>
* gdb.cp/converts.cc (main): Comment out the pointer to boolean
conversion statement.
Index: gdb.cp/converts.cc
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.cp/converts.cc,v
retrieving revision 1.5
diff -u -p -r1.5 converts.cc
--- gdb.cp/converts.cc 10 Sep 2012 17:12:52 -0000 1.5
+++ gdb.cp/converts.cc 12 Sep 2012 23:27:03 -0000
@@ -78,7 +78,15 @@ int main()
foo1_7 (long_int); // long to boolean
foo1_7 (*a); // char to boolean
foo1_7 (MY_A); // unscoped enum to boolean
+ /* converts.exp tests the next statement directly. It is not compiled
+ here for verification because older versions of GCC (~4.1) fail to
+ compile it:
+
+ warning: the address of 'int foo1_7(bool)' will always evaluate as
true
+
foo1_7 (&foo1_7); // pointer to boolean
+ */
+
foo1_7 (&A::member_); // pointer to member to boolean
foo1_7 (a); // pointer to boolean
foo1_7 (fp); // float to boolean
Keith
next prev parent reply other threads:[~2012-09-12 23:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-31 21:06 [RFA] gdb/13483 Keith Seitz
2012-09-10 15:31 ` Tom Tromey
2012-09-10 17:33 ` Keith Seitz
[not found] ` <20120911054549.GA25093@host2.jankratochvil.net>
2012-09-12 19:38 ` Testsuite regression gdb.cp/converts.exp [Re: [RFA] gdb/13483] Keith Seitz
2012-09-12 19:59 ` Jan Kratochvil
2012-09-12 23:29 ` Keith Seitz [this message]
2012-09-16 17:32 ` [commit] gdb.cp/converts.exp FAIL on gcc-4.1 [Re: Testsuite regression gdb.cp/converts.exp [Re: [RFA] gdb/13483]] Jan Kratochvil
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=50511AD0.6000702@redhat.com \
--to=keiths@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@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