From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18663 invoked by alias); 16 Jul 2007 18:08:02 -0000 Received: (qmail 18654 invoked by uid 22791); 16 Jul 2007 18:08:02 -0000 X-Spam-Check-By: sourceware.org Received: from sccrmhc12.comcast.net (HELO sccrmhc12.comcast.net) (204.127.200.82) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 16 Jul 2007 18:07:59 +0000 Received: from lucon.org ([24.6.230.138]) by comcast.net (sccrmhc12) with ESMTP id <2007071618075701200odh84e>; Mon, 16 Jul 2007 18:07:58 +0000 Received: by lucon.org (Postfix, from userid 500) id 91029F824D; Mon, 16 Jul 2007 11:07:57 -0700 (PDT) Date: Mon, 16 Jul 2007 18:22:00 -0000 From: "H.J. Lu" To: GDB Cc: dan@codesourcery.com Subject: PATCH: Work around another gcc 3.4 alias warning bug Message-ID: <20070716180757.GA15193@lucon.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.14 (2007-02-12) 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: 2007-07/txt/msg00213.txt.bz2 Hi, Here is a patch to work around another gcc 3.4 alias warning bug similar to: http://sourceware.org/ml/gdb-patches/2007-06/msg00395.html OK to install? Thanks. H.J. ---- 2007-07-16 H.J. Lu * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias warning bug. --- gdb/i386-linux-nat.c.const 2007-06-19 08:44:06.000000000 -0700 +++ gdb/i386-linux-nat.c 2007-07-16 11:02:35.000000000 -0700 @@ -246,6 +246,7 @@ static void fetch_regs (struct regcache *regcache, int tid) { elf_gregset_t regs; + elf_gregset_t *regs_p = ®s; if (ptrace (PTRACE_GETREGS, tid, 0, (int) ®s) < 0) { @@ -260,7 +261,7 @@ fetch_regs (struct regcache *regcache, i perror_with_name (_("Couldn't get registers")); } - supply_gregset (regcache, (const elf_gregset_t *) ®s); + supply_gregset (regcache, (const elf_gregset_t *) regs_p); } /* Store all valid general-purpose registers in GDB's register array