From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11404 invoked by alias); 23 Oct 2004 18:37:31 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 11395 invoked from network); 23 Oct 2004 18:37:30 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 23 Oct 2004 18:37:30 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1CLQld-0007aD-9O; Sat, 23 Oct 2004 14:37:29 -0400 Date: Sat, 23 Oct 2004 18:37:00 -0000 From: Daniel Jacobowitz To: Andreas Schwab Cc: gdb-patches@sources.redhat.com Subject: Re: Fix aliasing violations Message-ID: <20041023183729.GA4783@nevyn.them.org> Mail-Followup-To: Andreas Schwab , gdb-patches@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-10/txt/msg00385.txt.bz2 On Sat, Oct 23, 2004 at 08:26:28PM +0200, Andreas Schwab wrote: > The macro GROW_VECT in ada-lang.h violates the C aliasing rules. > > Andreas. > > 2004-10-23 Andreas Schwab > > * ada-lang.c (grow_vect): Return the new array instead of > expecting pointer to pointer to avoid violation of aliasing rules. > * ada-lang.h (GROW_VECT): Adapt call to grow_vect. I assume newer versions of GCC warn about this? This patch is OK. -- Daniel Jacobowitz