From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9027 invoked by alias); 16 Sep 2012 17:32:08 -0000 Received: (qmail 9012 invoked by uid 22791); 16 Sep 2012 17:32:07 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 16 Sep 2012 17:31:49 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q8GHVnlK001292 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 16 Sep 2012 13:31:49 -0400 Received: from host2.jankratochvil.net (ovpn-113-58.phx2.redhat.com [10.3.113.58]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q8GHVjOZ000429 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sun, 16 Sep 2012 13:31:47 -0400 Date: Sun, 16 Sep 2012 17:32:00 -0000 From: Jan Kratochvil To: Keith Seitz Cc: "gdb-patches@sourceware.org ml" Subject: [commit] gdb.cp/converts.exp FAIL on gcc-4.1 [Re: Testsuite regression gdb.cp/converts.exp [Re: [RFA] gdb/13483]] Message-ID: <20120916173144.GA11321@host2.jankratochvil.net> References: <5041274D.1050508@redhat.com> <87ehm9evyb.fsf@fleche.redhat.com> <504E2438.6020701@redhat.com> <20120911054549.GA25093@host2.jankratochvil.net> <5050E4A4.2080600@redhat.com> <20120912195845.GA16888@host2.jankratochvil.net> <50511AD0.6000702@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50511AD0.6000702@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-09/txt/msg00300.txt.bz2 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 > > * 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 + + Fix compatibility with old GCC (~4.1). + * gdb.cp/converts.cc (my_enum_var): New variable. + 2012-09-14 Andrew Burgess * 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; }