This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A little portability patch for BFD


On Mon, 17 Apr 2000, Michael Sokolov wrote:

> A small portability patch in BFD for K&R C compilers. While compiling under
> 4.3BSD for the m68k-elf target, I bumped into these two problems:

I checked the following in:

Index: ieee.c
===================================================================
RCS file: /cvs/src/src/bfd/ieee.c,v
retrieving revision 1.7
diff -u -p -r1.7 ieee.c
--- ieee.c	2000/03/11 23:09:42	1.7
+++ ieee.c	2000/04/19 10:51:31
@@ -1009,8 +1009,17 @@ ieee_get_symtab (abfd, location)
   ieee_symbol_type *symp;
   static bfd dummy_bfd;
   static asymbol empty_symbol =
-  /* the_bfd, name, value, attr, section */
-  {&dummy_bfd, " ieee empty", (symvalue) 0, BSF_DEBUGGING, bfd_abs_section_ptr, { 0 }};
+  {
+    &dummy_bfd,
+    " ieee empty",
+    (symvalue) 0,
+    BSF_DEBUGGING,
+    bfd_abs_section_ptr
+#ifdef __STDC__
+    /* K&R compilers can't initialise unions.  */
+    , { 0 }
+#endif
+  };
 
   if (abfd->symcount)
     {
Index: dwarf2.c
===================================================================
RCS file: /cvs/src/src/bfd/dwarf2.c,v
retrieving revision 1.13
diff -u -p -r1.13 dwarf2.c
--- dwarf2.c	2000/04/07 18:36:04	1.13
+++ dwarf2.c	2000/04/19 10:51:34
@@ -700,8 +700,8 @@ concat_filename (table, file)
 
   if (file - 1 >= table->num_files)
     {
-      (*_bfd_error_handler) (_("Dwarf Error: mangled line number "
-			       "section (bad file number)."));
+      (*_bfd_error_handler)
+	(_("Dwarf Error: mangled line number section (bad file number)."));
       return "<unknown>";
     }
 
-- 
Linuxcare.  Support for the Revolution.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]