aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/ldlang.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 413deac..a8ec650 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2004-08-26 Alan Modra <amodra@bigpond.net.au>
+
+ * ldlang.c (lang_init): Don't compare with TRUE.
+
2004-08-25 Dmitry Diky <diwil@spec.ru>
* emulparams/msp430all.sh: Fix RAM sizes for all targets.
diff --git a/ld/ldlang.c b/ld/ldlang.c
index fc95ee8..5988635 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -506,8 +506,8 @@ lang_init (void)
simpler to re-use working machinery than using a linked list in terms
of code-complexity here in ld, besides the initialization which just
looks like other code here. */
- if (bfd_hash_table_init_n (&lang_definedness_table,
- lang_definedness_newfunc, 3) != TRUE)
+ if (!bfd_hash_table_init_n (&lang_definedness_table,
+ lang_definedness_newfunc, 3))
einfo (_("%P%F: out of memory during initialization"));
/* Callers of exp_fold_tree need to increment this. */