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

Alan Modra <[email protected]>
Newsgroups gmane.comp.gnu.binutils,gmane.comp.gcc.java.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.