Fix aliasing violations

Daniel Jacobowitz drow@false.org
Sat Oct 23 18:37:00 GMT 2004


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  <schwab@suse.de>
> 
> 	* 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



More information about the Gdb-patches mailing list