Re: [cxx-conversion] Change uses of htab_t in gcc/config to hash_table.

2013-01-06 Thread Lawrence Crowl
On 1/6/13, Richard Biener wrote: > On Sun, Jan 6, 2013 at 6:55 AM, Xinliang David Li wrote: >> I noticed that the traverse and traverse_noresize method takes >> Argument as the first template parameter. It should be moved to be the >> second after the callback. In most of the cases, the type of t

Re: [cxx-conversion] Change uses of htab_t in gcc/config to hash_table.

2013-01-06 Thread Richard Biener
On Sun, Jan 6, 2013 at 6:55 AM, Xinliang David Li wrote: > I noticed that the traverse and traverse_noresize method takes > Argument as the first template parameter. It should be moved to be the > second after the callback. In most of the cases, the type of the > Argument can be deduced from the c

Re: [cxx-conversion] Change uses of htab_t in gcc/config to hash_table.

2013-01-05 Thread Xinliang David Li
I noticed that the traverse and traverse_noresize method takes Argument as the first template parameter. It should be moved to be the second after the callback. In most of the cases, the type of the Argument can be deduced from the callsite, so that the user only need to specify the callback: ht->

Re: [cxx-conversion] Change uses of htab_t in gcc/config to hash_table.

2012-12-19 Thread Diego Novillo
On Tue, Dec 18, 2012 at 11:02 PM, Lawrence Crowl wrote: > Tested on x86-64. > Tested with contrib/config-list.mk. > > > Okay for branch? OK. Diego.