[PATH] fix bootstrap failure on ppc-darwin

Andrew Pinski pinskia@physics.uc.edu
Sun May 18 18:03:00 GMT 2003


This patch fixes a fall out by Gabriel Dos Reis's patch:
+2003-05-18  Gabriel Dos Reis  <gdr@integrable-solutions.net>
+
+	* cp-tree.h (struct lang_type_class): Replace data member tags
+	with hash-table nested_udts.
+	(CLASSTYPE_NESTED_UTDS): Rename from CLASSTYPE_TAGS.
+	* class.c (unreverse_member_declarations): Don't touch
+	CLASSTYPE_TAGS.
+	(pushclass): Use cxx_remember_type_decls.
+	* decl.c (struct cp_binding_level): Replace data member tags with
+	hash-table type_decls.
+	(pop_binding_level): Handle level->type_decls.
+	(kept_level_p): Adjust.
....

It also speeds up the freeing of binding_table and also fixes a speed 
problem
introduced by my patch that fixed a bootstrap failure caused by Gabriel 
Dos Reis's
earlier patch that introduced name-lookup.c.

ChangeLog:

2003-05-18  Andrew Pinski <pinskia@physics.uc.edu>

	* name-lookup.c (free_binding_entry): fix where the GTY markers are.
	(binding_entry_make): Make entry->chain NULL after getting an entry.
	fix the spelling of chain in a comment.
	(binding_table_free): speed up by having temporary variable.
	(binding_table_new): set table->chain to be NULL after allocating a 
table.
	(cxx_binding_make): use gcc_alloc instead of ggc_alloc_cleared and set
	binding->previous to NULL after getting an binding for speed.

Patch:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: temp.diff
Type: application/octet-stream
Size: 2352 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030518/c6ce47cd/attachment.obj>
-------------- next part --------------



Thanks,
Andrew Pinski


More information about the Gcc-patches mailing list