summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2000-04-19 11:13:16 +0000
committerAlan Modra <amodra@bigpond.net.au>2000-04-19 11:13:16 +0000
commitc731b0b0756755ae93c00d5782aac2e3b73a888c (patch)
tree5b561b65e2b1e2e4bb8c9fc7f2069e555d0a543b
parentf0a8f5af3d92877c263609c2775e60a7df851255 (diff)
downloadgdb-c731b0b0756755ae93c00d5782aac2e3b73a888c.tar.gz
K&R compiler fixes.
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/dwarf2.c4
-rw-r--r--bfd/ieee.c13
3 files changed, 19 insertions, 4 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index bd09f453e63..19aef0253f1 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
+
+ K&R compiler fixes.
+ * dwarf2.c (concat_filename): Avoid string literal concatenation.
+ * ieee.c (ieee_get_symtab): Don't initialise union in struct.
+
2000-04-12 Alan Modra <alan@linuxcare.com.au>
* dep-in.sed: Match space before file name, not after.
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 5710d1adbd0..b6de2612189 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -697,8 +697,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>";
}
diff --git a/bfd/ieee.c b/bfd/ieee.c
index 82b3bac8367..71b967ac418 100644
--- a/bfd/ieee.c
+++ b/bfd/ieee.c
@@ -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)
{