Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Keith Seitz <keiths@redhat.com>
Cc: "gdb-patches@sourceware.org ml" <gdb-patches@sourceware.org>
Subject: [commit] gdb.cp/converts.exp FAIL on gcc-4.1  [Re: Testsuite regression gdb.cp/converts.exp  [Re: [RFA] gdb/13483]]
Date: Sun, 16 Sep 2012 17:32:00 -0000	[thread overview]
Message-ID: <20120916173144.GA11321@host2.jankratochvil.net> (raw)
In-Reply-To: <50511AD0.6000702@redhat.com>

On Thu, 13 Sep 2012 01:29:20 +0200, Keith Seitz wrote:
> 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.

It compiles OK now but it FAILs on:
	p foo1_7(MY_A)^M
	No symbol "MY_A" in current context.^M
	(gdb) FAIL: gdb.cp/converts.exp: p foo1_7(MY_A)

Checked in.


Thanks,
Jan


http://sourceware.org/ml/gdb-cvs/2012-09/msg00074.html

--- src/gdb/testsuite/ChangeLog	2012/09/14 21:23:45	1.3373
+++ src/gdb/testsuite/ChangeLog	2012/09/16 17:30:47	1.3374
@@ -1,3 +1,8 @@
+2012-09-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	Fix compatibility with old GCC (~4.1).
+	* gdb.cp/converts.cc (my_enum_var): New variable.
+
 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
 
 	* gdb.xml/tdesc-regs.exp: Update expected output for new
--- src/gdb/testsuite/gdb.cp/converts.cc	2012/09/12 23:29:05	1.6
+++ src/gdb/testsuite/gdb.cp/converts.cc	2012/09/16 17:30:48	1.7
@@ -12,6 +12,10 @@
 
 enum my_enum {MY_A, MY_B, MY_C, MY_D};
 
+/* Without this variable older 'enum my_enum' incl. its 'MY_A' would be omitted
+   by older versions of GCC (~4.1) failing the testcase using it below.  */
+enum my_enum my_enum_var;
+
 int foo0_1 (TA1)  { return 1; }
 int foo0_2 (TA3)  { return 2; }
 int foo0_3 (A***) { return 3; }


      reply	other threads:[~2012-09-16 17:32 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
2012-09-16 17:32             ` Jan Kratochvil [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=20120916173144.GA11321@host2.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=keiths@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