This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATH] fix bootstrap failure on ppc-darwin


Andrew Pinski <pinskia@physics.uc.edu> writes:

| 	(binding_table_new): set table->chain to be NULL after
| allocating a table.

Contrary to what I said earlier, that cannot be causing the bootstrap
failure because just after allocating a table, I call binding_table_new()
which sets table->chain properly:

   static inline void
   binding_table_construct (binding_table table, size_t chain_count)
   {
     table->chain_count = chain_count;
     table->entry_count = 0;
     table->chain = ggc_alloc_cleared
       (table->chain_count * sizeof (binding_entry));
   }


| 	(cxx_binding_make): use gcc_alloc instead of ggc_alloc_cleared and set
| 	binding->previous to NULL after getting an binding for speed.

At the time, I didn't reacted but that was not the right way to fix
problem, 

Anyway, thanks!

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]