Use libiberty hash in gas/read.c.

* read.c (struct po_entry): New.
	(hash_po_entry): Likewise.
	(eq_po_entry): Likewise.
	(po_entry_alloc): Likewise.
	(po_entry_find): Likewise.
	(pop_insert): Likewise.
	(pobegin): Use htab hash table.
	(read_a_source_file): Likewise.
	(s_macro): Likewise.
	(read_print_statistics): Likewise.
	* config/tc-m68k.c (m68k_conditional_pseudoop): Add const qualifier.
	* config/tc-m68k.h (m68k_conditional_pseudoop): Likewise.
This commit is contained in:
Martin Liska
2020-08-15 19:47:35 +02:00
committed by Alan Modra
parent 2b272f449e
commit 32e4c1c2d7
4 changed files with 77 additions and 15 deletions

View File

@@ -5560,7 +5560,7 @@ s_proc (int ignore ATTRIBUTE_UNUSED)
alignment is needed. */
int
m68k_conditional_pseudoop (pseudo_typeS *pop)
m68k_conditional_pseudoop (const pseudo_typeS *pop)
{
return (pop->poc_handler == s_mri_if
|| pop->poc_handler == s_mri_else);