* PATCH Fix objdump.c warning
@ 2005-03-25 16:45 Aaron W. LaFramboise
2005-03-28 22:52 ` Alan Modra
0 siblings, 1 reply; 2+ messages in thread
From: Aaron W. LaFramboise @ 2005-03-25 16:45 UTC (permalink / raw)
To: binutils; +Cc: dannysmith
[-- Attachment #1: Type: text/plain, Size: 1058 bytes --]
On Windows, I get this error on build with GCC 3.4.3.
gcc -DHAVE_CONFIG_H -I.
-I/aaronwl/cs/compilers/binutils/src/cvs/src/binutils -I
. -D_GNU_SOURCE -I.
-I/aaronwl/cs/compilers/binutils/src/cvs/src/binutils -I../b
fd -I/aaronwl/cs/compilers/binutils/src/cvs/src/binutils/../bfd
-I/aaronwl/cs/co
mpilers/binutils/src/cvs/src/binutils/../include -D__USE_MINGW_FSEEK
-I/aaronwl/
cs/compilers/binutils/src/cvs/src/binutils/../intl -I../intl
-DLOCALEDIR="\"/aar
onwl/cs/env/mingw-head/20040323/share/locale\""
-Dbin_dummy_emulation=bin_vanill
a_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror
-g -O2
-c /aaronwl/cs/compilers/binutils/src/cvs/src/binutils/objdump.c
/aaronwl/cs/compilers/binutils/src/cvs/src/binutils/objdump.c: In
function `disa
ssemble_bytes':
/aaronwl/cs/compilers/binutils/src/cvs/src/binutils/objdump.c:1379:
warning: der
eferencing type-punned pointer will break strict-aliasing rules
make[4]: *** [objdump.o] Error 1
The warning appears to be spurious, but just removing the unneeded cast
makes it go away. OK?
[-- Attachment #2: binutils-head-20050324-sfile.patch --]
[-- Type: text/plain, Size: 941 bytes --]
2005-03-24 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
* objdump.c (disassemble_bytes): Remove cast.
Index: objdump.c
===================================================================
RCS file: /cvs/src/src/binutils/objdump.c,v
retrieving revision 1.102
diff -c -3 -p -r1.102 objdump.c
*** objdump.c 18 Mar 2005 16:28:13 -0000 1.102
--- objdump.c 25 Mar 2005 00:31:21 -0000
*************** disassemble_bytes (struct disassemble_in
*** 1376,1382 ****
{
sfile.pos = 0;
info->fprintf_func = (fprintf_ftype) objdump_sprintf;
! info->stream = (FILE *) &sfile;
info->bytes_per_line = 0;
info->bytes_per_chunk = 0;
info->flags = 0;
--- 1376,1382 ----
{
sfile.pos = 0;
info->fprintf_func = (fprintf_ftype) objdump_sprintf;
! info->stream = &sfile;
info->bytes_per_line = 0;
info->bytes_per_chunk = 0;
info->flags = 0;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-28 10:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-25 16:45 PATCH Fix objdump.c warning Aaron W. LaFramboise
2005-03-28 22:52 ` Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).