This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Build regression on RHEL-5 [Re: [COMMIT PATCH] target.c: fix -Wpointer-sign]
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sun, 10 Mar 2013 19:55:22 +0100
- Subject: Build regression on RHEL-5 [Re: [COMMIT PATCH] target.c: fix -Wpointer-sign]
- References: <20130307235401.23019.61535.stgit@brno.lan>
On Fri, 08 Mar 2013 00:54:01 +0100, Pedro Alves wrote:
> gdb/
> 2013-03-07 Pedro Alves <palves@redhat.com>
>
> * target.c (target_read_stralloc, target_fileio_read_alloc):
> *Cast pointer to 'gdb_byte *' in target call.
53d2625aa5606dfd19ba3806eebeda54ce159f09
cc1: warnings being treated as errors
target.c: In function ‘target_read_stralloc’:
target.c:2370: warning: dereferencing type-punned pointer will break strict-aliasing rules
target.c: In function ‘target_fileio_read_stralloc’:
target.c:3534: warning: dereferencing type-punned pointer will break strict-aliasing rules
Tested on CentOS 5.9 x86_64 and i386.
Jan