[regressions in GCC/libjava testsuite] Re: Patch to make bfd compile with -Wc++-compat

Alan Modra amodra@bigpond.net.au
Wed Sep 30 23:48:00 GMT 2009


On Thu, Oct 01, 2009 at 01:23:33AM +0200, Matthias Klose wrote:
> It's the one applied to the binutils subdirectory.

It is probably the addr2line.c change.  Try this:

Index: binutils/addr2line.c
===================================================================
RCS file: /cvs/src/src/binutils/addr2line.c,v
retrieving revision 1.34
diff -u -p -r1.34 addr2line.c
--- binutils/addr2line.c	10 Sep 2009 13:40:44 -0000	1.34
+++ binutils/addr2line.c	30 Sep 2009 23:47:53 -0000
@@ -107,9 +107,9 @@ slurp_symtab (bfd *abfd)
   if ((bfd_get_file_flags (abfd) & HAS_SYMS) == 0)
     return;
 
-  symcount = bfd_read_minisymbols (abfd, FALSE, &minisyms, &size);
+  symcount = bfd_read_minisymbols (abfd, FALSE, minisyms, &size);
   if (symcount == 0)
-    symcount = bfd_read_minisymbols (abfd, TRUE /* dynamic */, &minisyms, &size);
+    symcount = bfd_read_minisymbols (abfd, TRUE /* dynamic */, minisyms, &size);
 
   if (symcount < 0)
     bfd_fatal (bfd_get_filename (abfd));

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Java mailing list