This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
New warning in 2.13 (comming from 2.12)
- From: "David O'Brien" <obrien at FreeBSD dot org>
- To: GNU Binutils mailing list <binutils at sources dot redhat dot com>
- Date: Fri, 11 Oct 2002 20:43:25 -0700
- Subject: New warning in 2.13 (comming from 2.12)
- Organization: The NUXI BSD Group
- Reply-to: obrien at FreeBSD dot org
On FreeBSD 64-bit platforms:
src/contrib/binutils/gas/config/tc-ia64.c:4830: warning: initialization from incompatible pointer type
The cast that tc-i386.c and tc-ppc.c has: {"file", (void (*) PARAMS
((int))) dwarf2_directive_file, 0}, is also needed on ia64 and sparc64.
2002-10-11 David O'Brien <obrien@FreeBSD.org>
* config/tc-alpha.h (TC_INIT_FIX_DATA): info is of type struct
alpha_reloc_tag.
* config/tc-ia64.c: Cast dwarf2_directive_file to int.
* config/tc-sparc.c: Likewise.
Index: config/tc-alpha.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-alpha.h,v
retrieving revision 1.12.4.1
diff -u -r1.12.4.1 tc-alpha.h
--- config/tc-alpha.h 23 Sep 2002 22:14:22 -0000 1.12.4.1
+++ config/tc-alpha.h 12 Oct 2002 03:31:20 -0000
@@ -152,7 +152,7 @@
#define TC_INIT_FIX_DATA(fixP) \
do { \
fixP->tc_fix_data.next_reloc = (struct fix *)0; \
- fixP->tc_fix_data.info = (struct alpha_literal_tag *)0; \
+ fixP->tc_fix_data.info = (struct alpha_reloc_tag *)1; \
} while (0)
/* Work with DEBUG5 to print fields in tc_fix_type. */
Index: config/tc-ia64.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ia64.c,v
retrieving revision 1.69
diff -u -r1.69 tc-ia64.c
--- config/tc-ia64.c 23 May 2002 13:12:47 -0000 1.69
+++ config/tc-ia64.c 12 Oct 2002 03:31:22 -0000
@@ -4827,7 +4827,7 @@
{ "body", dot_body, 0 },
{ "prologue", dot_prologue, 0 },
{ "endp", dot_endp, 0 },
- { "file", dwarf2_directive_file, 0 },
+ { "file", (void (*) PARAMS ((int))) dwarf2_directive_file, 0 },
{ "loc", dwarf2_directive_loc, 0 },
{ "fframe", dot_fframe, 0 },
Index: config/tc-sparc.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-sparc.c,v
retrieving revision 1.41
diff -u -r1.41 tc-sparc.c
--- config/tc-sparc.c 8 Jun 2002 07:37:15 -0000 1.41
+++ config/tc-sparc.c 12 Oct 2002 03:31:23 -0000
@@ -159,7 +159,7 @@
{"uaword", s_uacons, 4},
{"uaxword", s_uacons, 8},
#ifdef OBJ_ELF
- {"file", dwarf2_directive_file, 0},
+ {"file", (void (*) PARAMS ((int))) dwarf2_directive_file, 0},
{"loc", dwarf2_directive_loc, 0},
/* These are specific to sparc/svr4. */
{"2byte", s_uacons, 2},