From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1103 invoked by alias); 27 May 2006 17:52:26 -0000 Received: (qmail 1087 invoked by uid 22791); 27 May 2006 17:52:25 -0000 X-Spam-Check-By: sourceware.org Received: from nile.gnat.com (HELO nile.gnat.com) (205.232.38.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 27 May 2006 17:52:24 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id 6077B48CEDA; Sat, 27 May 2006 13:52:16 -0400 (EDT) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21798-01-4; Sat, 27 May 2006 13:52:16 -0400 (EDT) Received: from takamaka.act-europe.fr (s142-179-108-108.bc.hsia.telus.net [142.179.108.108]) by nile.gnat.com (Postfix) with ESMTP id 1774B48CC1F; Sat, 27 May 2006 13:52:16 -0400 (EDT) Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 67F7F47E7F; Sat, 27 May 2006 10:52:15 -0700 (PDT) Date: Mon, 29 May 2006 12:23:00 -0000 From: Joel Brobecker To: Peter Schauer Cc: gdb@sourceware.org, gdb-patches@sources.redhat.com Subject: Re: gdb/m2-typeprint.c does not compile with older gcc versions Message-ID: <20060527175215.GH1062@adacore.com> References: <200605271112.k4RBCSts022936@licht.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200605271112.k4RBCSts022936@licht.localdomain> User-Agent: Mutt/1.4i Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00383.txt.bz2 On Sat, May 27, 2006 at 01:12:28PM +0200, Peter Schauer wrote: > gdb/m2-typeprint.c does not compile with older gcc versions, e.g. gcc-2.95.2. > It is caused by declarations after code, which is a gcc extension AFAIK. > The gdb-6.5 branch is affected as well. > Here is a fix: Thanks Peter. To me, this is an obvious fix, so I checked it in for you in both head and 6.5 branch. 2006-05-27 Joel Brobecker From Peter Schauer * m2-typeprint.c (m2_record_fields): Move variable declarations to the begining of the block. Tested by re-building GDB after patch. -- Joel