Commit 0c26b18a by Philippe De Muyter Committed by Jeff Law

tlink.c (symbol_hash_lookup): Do not prefix functions used as function parameters with `&'.

        * tlink.c (symbol_hash_lookup): Do not prefix functions used as
        function parameters with `&'.
        (file_hash_lookup, demangled_hash_lookup, tlink_init): Ditto.

From-SVN: r28485
parent 6d368e86
Wed Aug 4 01:40:43 1999 Philippe De Muyter <phdm@macqel.be>
* tlink.c (symbol_hash_lookup): Do not prefix functions used as
function parameters with `&'.
(file_hash_lookup, demangled_hash_lookup, tlink_init): Ditto.
Wed Aug 4 01:08:44 1999 Jeffrey A Law (law@cygnus.com) Wed Aug 4 01:08:44 1999 Jeffrey A Law (law@cygnus.com)
* flow.c (delete_unreachable_blocks): Do not call merge_blocks * flow.c (delete_unreachable_blocks): Do not call merge_blocks
......
...@@ -141,7 +141,7 @@ symbol_hash_lookup (string, create) ...@@ -141,7 +141,7 @@ symbol_hash_lookup (string, create)
{ {
return ((struct symbol_hash_entry *) return ((struct symbol_hash_entry *)
hash_lookup (&symbol_table, (hash_table_key) string, hash_lookup (&symbol_table, (hash_table_key) string,
create, &string_copy)); create, string_copy));
} }
static struct hash_table file_table; static struct hash_table file_table;
...@@ -178,7 +178,7 @@ file_hash_lookup (string) ...@@ -178,7 +178,7 @@ file_hash_lookup (string)
{ {
return ((struct file_hash_entry *) return ((struct file_hash_entry *)
hash_lookup (&file_table, (hash_table_key) string, true, hash_lookup (&file_table, (hash_table_key) string, true,
&string_copy)); string_copy));
} }
static struct hash_table demangled_table; static struct hash_table demangled_table;
...@@ -213,7 +213,7 @@ demangled_hash_lookup (string, create) ...@@ -213,7 +213,7 @@ demangled_hash_lookup (string, create)
{ {
return ((struct demangled_hash_entry *) return ((struct demangled_hash_entry *)
hash_lookup (&demangled_table, (hash_table_key) string, hash_lookup (&demangled_table, (hash_table_key) string,
create, &string_copy)); create, string_copy));
} }
/* Stack code. */ /* Stack code. */
...@@ -298,12 +298,12 @@ tlink_init () ...@@ -298,12 +298,12 @@ tlink_init ()
{ {
char *p; char *p;
hash_table_init (&symbol_table, symbol_hash_newfunc, &string_hash, hash_table_init (&symbol_table, symbol_hash_newfunc, string_hash,
&string_compare); string_compare);
hash_table_init (&file_table, file_hash_newfunc, &string_hash, hash_table_init (&file_table, file_hash_newfunc, string_hash,
&string_compare); string_compare);
hash_table_init (&demangled_table, demangled_hash_newfunc, hash_table_init (&demangled_table, demangled_hash_newfunc,
&string_hash, &string_compare); string_hash, string_compare);
obstack_begin (&symbol_stack_obstack, 0); obstack_begin (&symbol_stack_obstack, 0);
obstack_begin (&file_stack_obstack, 0); obstack_begin (&file_stack_obstack, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment